summaryrefslogtreecommitdiff
path: root/src/xtra1.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-10 21:59:44 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-10 21:59:44 +0200
commit5a310053e1ed6331155e4c4a3a645291c0a95650 (patch)
treeb949f72655dd2056f90995c1a2625b2be5c711de /src/xtra1.c
parentbc2f31566512bc0c41aa3ab5b19ce3e907b6c0cf (diff)
Lua: Gods: Move Varda's HOOK_CALC_LITE to C
Diffstat (limited to 'src/xtra1.c')
-rw-r--r--src/xtra1.c16
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 */