summaryrefslogtreecommitdiff
path: root/src/xtra2.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-10 21:36:59 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-10 21:37:26 +0200
commitac2d8a787a2345333e83227e9ab83b281a75d645 (patch)
tree370c4ad5859f295aa8329c3d4e350d098d085c70 /src/xtra2.c
parentf8d2b1c87281c1d48515f11b1ca2e98ef7aef827 (diff)
Lua: Gods: Move Ulmo's HOOK_MONSTER_DEATH to C
Diffstat (limited to 'src/xtra2.c')
-rw-r--r--src/xtra2.c54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/xtra2.c b/src/xtra2.c
index 5a9d8cb6..8d1f1867 100644
--- a/src/xtra2.c
+++ b/src/xtra2.c
@@ -2385,6 +2385,60 @@ static void monster_death_gods(int m_idx, monster_type *m_ptr)
inc_piety(GOD_ALL, -500);
}
}
+
+ if (p_ptr->pgod == GOD_ULMO)
+ {
+ /* He doesn't like it if you kill these monsters */
+ cptr MINOR_RACES[] = {
+ "Swordfish",
+ "Barracuda",
+ "Globefish",
+ "Aquatic bear",
+ "Pike",
+ "Electric eel",
+ "Giant crayfish",
+ "Mermaid",
+ "Leviathan",
+ "Box jellyfish",
+ "Giant piranha",
+ "Piranha",
+ "Ocean naga",
+ "Whale",
+ "Octopus",
+ "Giant octopus",
+ "Drowned soul",
+ "Tiger shark",
+ "Hammerhead shark",
+ "Great white shark",
+ "White shark",
+ "Stargazer",
+ "Flounder",
+ "Giant turtle",
+ "Killer whale",
+ "Water naga",
+ "Behemoth",
+ NULL,
+ };
+ /* These monsters earn higher penalties */
+ cptr MAJOR_RACES[] = {
+ "Seahorse",
+ "Aquatic elven warrior",
+ "Aquatic elven mage",
+ "Wavelord",
+ "The Watcher in the Water",
+ NULL,
+ };
+
+ if (monster_race_in_list_p(m_ptr, MINOR_RACES))
+ {
+ inc_piety(GOD_ALL, -20);
+ }
+
+ if (monster_race_in_list_p(m_ptr, MAJOR_RACES))
+ {
+ inc_piety(GOD_ALL, -500);
+ }
+ }
}
/*