diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-10 21:59:44 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-10 21:59:44 +0200 |
commit | 5a310053e1ed6331155e4c4a3a645291c0a95650 (patch) | |
tree | b949f72655dd2056f90995c1a2625b2be5c711de /src/xtra1.c | |
parent | bc2f31566512bc0c41aa3ab5b19ce3e907b6c0cf (diff) |
Lua: Gods: Move Varda's HOOK_CALC_LITE to C
Diffstat (limited to 'src/xtra1.c')
-rw-r--r-- | src/xtra1.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/xtra1.c b/src/xtra1.c index c1189484..a2f64d0e 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -1969,6 +1969,18 @@ void calc_hitpoints(void) } +/* + * God hooks for light + */ +static void calc_torch_gods() +{ + if (p_ptr->pgod == GOD_VARDA) + { + /* increase lite radius */ + p_ptr->cur_lite += 1; + } +} + /* * Extract and set the current "lite radius" @@ -2018,8 +2030,8 @@ static void calc_torch(void) /* but does glow as an intrinsic. */ if (p_ptr->cur_lite == 0 && p_ptr->lite) p_ptr->cur_lite = 1; - /* Hooked powers */ - process_hooks(HOOK_CALC_LITE, "()"); + /* gods */ + calc_torch_gods(); /* end experimental mods */ |