diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-16 20:20:43 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-17 20:33:00 +0200 |
commit | ca30fc5a6f92d75ee1c7eec2dd863776fe7afb5f (patch) | |
tree | 8c784ba04736f5ee845ae42cba66d80194efa951 /src/cmd1.c | |
parent | cf9afa2063fa9123f8653e76d17404775a34313d (diff) |
Lua: Move "Geomancy" spell functions to C
Diffstat (limited to 'src/cmd1.c')
-rw-r--r-- | src/cmd1.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); |