summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-05 23:43:10 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:26 +0200
commit0b42d7ebfc1abd8b8620109bb996e2cee18e9f79 (patch)
treeefed6c6362f48c2c745fbdf277cca4e71d0b3247
parent62e385cb769000cfefa052b1ab3e155314e7ac37 (diff)
Lua: Remove last bits of HOOK_CALC_BONUS
-rw-r--r--src/defines.h1
-rw-r--r--src/util.pkg6
-rw-r--r--src/xtra1.c3
3 files changed, 0 insertions, 10 deletions
diff --git a/src/defines.h b/src/defines.h
index 3b17211b..2677008a 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -4462,7 +4462,6 @@
#define HOOK_ACTIVATE 26
#define HOOK_ZAP 27
#define HOOK_READ 28
-#define HOOK_CALC_BONUS 29
#define HOOK_CALC_POWERS 30
#define HOOK_KEYPRESS 31
#define HOOK_CHAT 32
diff --git a/src/util.pkg b/src/util.pkg
index d3d1f041..ab2b6ce2 100644
--- a/src/util.pkg
+++ b/src/util.pkg
@@ -415,12 +415,6 @@ typedef unsigned int u32b;
*/
#define HOOK_READ 28
-/** @def HOOK_CALC_BONUS
- * @brief Calculate player "state" bonuses.
- * @note (see xtra1.c)
- */
-#define HOOK_CALC_BONUS 29
-
/** @def HOOK_CALC_POWERS
* @brief Calculate player powers.
* @note (see xtra1.c)
diff --git a/src/xtra1.c b/src/xtra1.c
index c30d6e4d..9a2c2d42 100644
--- a/src/xtra1.c
+++ b/src/xtra1.c
@@ -2986,9 +2986,6 @@ void calc_bonuses(bool_ silent)
calc_body_bonus();
}
- /* Let the scripts do what they need */
- process_hooks(HOOK_CALC_BONUS, "()");
-
/* Take care of spell schools */
calc_schools();