diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-06-10 05:22:10 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-06-10 05:22:10 +0200 |
commit | e8a7753c88541e45a1b9d1b80be2ad227b179e20 (patch) | |
tree | 86c27bce5845ad78d3ce526f5c8090d4ad797064 /src | |
parent | 83d2d89462f4b03419019e23d73665f0472b687b (diff) |
Lua: Move Vampire corruption handling to C
Diffstat (limited to 'src')
-rw-r--r-- | src/birth.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/birth.c b/src/birth.c index 41abe3ad..4734a189 100644 --- a/src/birth.c +++ b/src/birth.c @@ -1246,6 +1246,13 @@ static void player_outfit(void) identify_pack_fully(); } + if (streq(rmp_ptr->title + rmp_name, "Vampire")) + { + player_gain_corruption(CORRUPT_VAMPIRE_TEETH); + player_gain_corruption(CORRUPT_VAMPIRE_STRENGTH); + player_gain_corruption(CORRUPT_VAMPIRE_VAMPIRE); + } + process_hooks(HOOK_BIRTH_OBJECTS, "()"); meta_inertia_control_hook_birth_objects(); |