summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-10 21:02:45 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-10 21:02:45 +0200
commit7d12fa73c521994841f3339a363bc5748ea9cbc8 (patch)
tree77e615195c1e1199a2593ad47d3accb9844ebc56
parent2a7627098fd014fc7b835e67cf37a3b615dbf5c4 (diff)
Lua: Gods: Remove now-unused HOOK_SACRIFICE_GOD
-rw-r--r--src/cmd2.c8
-rw-r--r--src/defines.h1
-rw-r--r--src/util.pkg6
3 files changed, 3 insertions, 12 deletions
diff --git a/src/cmd2.c b/src/cmd2.c
index c38e874c..8c602db3 100644
--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -4703,14 +4703,12 @@ void do_cmd_sacrifice(void)
inc_stack_size(item, -1);
}
}
- else if (p_ptr->pgod == GOD_AULE)
+
+ GOD(GOD_AULE)
{
do_cmd_sacrifice_aule();
}
- else
- {
- process_hooks(HOOK_SACRIFICE_GOD, "()", "");
- }
+
}
}
}
diff --git a/src/defines.h b/src/defines.h
index 3fc34864..2375c852 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -4541,7 +4541,6 @@
#define HOOK_LOAD_END 61
#define HOOK_RECALL 62
#define HOOK_FOLLOW_GOD 63
-#define HOOK_SACRIFICE_GOD 64
#define HOOK_BODY_PARTS 65
#define HOOK_APPLY_MAGIC 66
#define HOOK_PLAYER_EXP 67
diff --git a/src/util.pkg b/src/util.pkg
index de84ac11..f9c94966 100644
--- a/src/util.pkg
+++ b/src/util.pkg
@@ -724,12 +724,6 @@ typedef unsigned int u32b;
*/
#define HOOK_FOLLOW_GOD 63
-/** @def HOOK_SACRIFICE_GOD
- * @brief Player sacrifices to a god.
- * @note (see file cmd2.c)
- */
-#define HOOK_SACRIFICE_GOD 64
-
/** @def HOOK_BODY_PARTS
* @brief Calculate which body parts the player has.
* @note (see file xtra1.c)