diff options
-rw-r--r-- | lib/mods/theme/scpt/gods_new.lua | 6 | ||||
-rw-r--r-- | src/defines.h | 1 | ||||
-rw-r--r-- | src/util.pkg | 6 | ||||
-rw-r--r-- | src/xtra1.c | 16 |
4 files changed, 14 insertions, 15 deletions
diff --git a/lib/mods/theme/scpt/gods_new.lua b/lib/mods/theme/scpt/gods_new.lua index 3d01ec87..e9b9241e 100644 --- a/lib/mods/theme/scpt/gods_new.lua +++ b/lib/mods/theme/scpt/gods_new.lua @@ -21,12 +21,6 @@ GOD_VARDA = add_god }, ["hooks"] = { - [HOOK_CALC_LITE] = function() - if (player.pgod == GOD_VARDA) then - -- increase lite radius - player.cur_lite = player.cur_lite + 1 - end - end, }, } diff --git a/src/defines.h b/src/defines.h index 2375c852..92d7fa10 100644 --- a/src/defines.h +++ b/src/defines.h @@ -4545,7 +4545,6 @@ #define HOOK_APPLY_MAGIC 66 #define HOOK_PLAYER_EXP 67 #define HOOK_BIRTH 68 -#define HOOK_CALC_LITE 69 #define HOOK_LEARN_ABILITY 70 #define HOOK_MOVED 71 #define HOOK_GAME_START 72 diff --git a/src/util.pkg b/src/util.pkg index f9c94966..3e977785 100644 --- a/src/util.pkg +++ b/src/util.pkg @@ -760,12 +760,6 @@ typedef unsigned int u32b; */ #define HOOK_BIRTH 68 -/** @def HOOK_CALC_LITE - * @brief Calculate the lite radius. - * @note (see file xtra1.c) - */ -#define HOOK_CALC_LITE 69 - /** @def HOOK_LEARN_ABILITY * @brief Player learns an ability.\n * @param Number ab \n index of ability in ability (ab_info) array. 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 */ |