summaryrefslogtreecommitdiff
path: root/src/cmd1.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-16 20:20:43 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-17 20:33:00 +0200
commitca30fc5a6f92d75ee1c7eec2dd863776fe7afb5f (patch)
tree8c784ba04736f5ee845ae42cba66d80194efa951 /src/cmd1.c
parentcf9afa2063fa9123f8653e76d17404775a34313d (diff)
Lua: Move "Geomancy" spell functions to C
Diffstat (limited to 'src/cmd1.c')
-rw-r--r--src/cmd1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cmd1.c b/src/cmd1.c
index 49c0d38f..1184df0c 100644
--- a/src/cmd1.c
+++ b/src/cmd1.c
@@ -3098,6 +3098,17 @@ void move_player_aux(int dir, int do_pickup, int run, bool_ disarm)
/* Some hooks */
if (process_hooks(HOOK_MOVE, "(d,d)", y, x)) return;
+ if (p_ptr->dripping_tread > 0)
+ {
+ geomancy_random_floor(y, x, FALSE);
+ p_ptr->dripping_tread -= 1;
+ if (p_ptr->dripping_tread == 0)
+ {
+ msg_print("You stop dripping raw elemental energies.");
+ }
+ }
+
+
/* Get the monster */
m_ptr = &m_list[c_ptr->m_idx];
mr_ptr = race_inf(m_ptr);