diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-12 21:45:59 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-12 21:45:59 +0000 |
commit | 79c8875dd3844dcc3a027013d536b6d10ddc8480 (patch) | |
tree | 9324a33442c518451bea521cd0d0a9663abd63d8 | |
parent | 15a055a3c2c8b2d5dea8c4219ebeb03992c7340f (diff) | |
download | crawl-ref-79c8875dd3844dcc3a027013d536b6d10ddc8480.tar.gz crawl-ref-79c8875dd3844dcc3a027013d536b6d10ddc8480.zip |
A few tiny changes courtesy of dolorous.
1811785: mummy food/drink checks changed to US_UNDEAD check
1811735: vampires don't get holy weapons from acquirement
1811249: remove redundant poison resistance check for Ghouls
1810890: very minor comment fix
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2449 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/abl-show.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/delay.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/describe.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/effects.cc | 1 | ||||
-rw-r--r-- | crawl-ref/source/food.cc | 8 | ||||
-rw-r--r-- | crawl-ref/source/newgame.cc | 6 |
6 files changed, 10 insertions, 11 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index 0acfba776d..02b30258c2 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -382,7 +382,7 @@ const std::string make_cost_description( ability_type ability ) ret << " HP"; } - if (abil.food_cost && you.species != SP_MUMMY) + if (abil.food_cost && you.is_undead != US_UNDEAD) { if (!ret.str().empty()) ret << ", "; diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 326fa33151..55cfa4931e 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -390,7 +390,7 @@ void handle_delay( void ) delay.parm2 = 99; // don't give the message twice if (you.species != SP_VAMPIRE - && you.species != SP_MUMMY + && you.is_undead != US_UNDEAD && you.species != SP_GHOUL) { xom_check_corpse_waste(); diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index c0bed567fd..89a43389fe 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2191,7 +2191,7 @@ static std::string describe_food( const item_def &item ) { if (you.species == SP_GHOUL) description += "It looks nice and ripe. "; - else if (you.species != SP_MUMMY) + else if (you.is_undead != US_UNDEAD) { description += "In fact, it is " "rotting away before your eyes. " diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 77e3a93bcc..931f61498f 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1449,6 +1449,7 @@ bool acquirement(object_class_type class_wanted, int agent) case SP_DEMONSPAWN: case SP_MUMMY: case SP_GHOUL: + case SP_VAMPIRE: { int brand = get_weapon_brand( thing ); if (brand == SPWPN_HOLY_WRATH diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index 97d5319e7d..ec62aa9370 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -943,7 +943,7 @@ static void ghoul_consume_flesh(int chunk_type) { if (chunk_type == CE_ROTTEN) mpr("This rotting flesh tastes delicious!"); - else // CE_CONTAMINATED or CE_HCL + else // CE_CONTAMINATED mpr("This flesh tastes delicious!"); heal_from_food(hp_amt, 0, @@ -1389,7 +1389,6 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg, bool reqid, // understood why liches are hungry and not true undead beings ... {dlb}: static int determine_chunk_effect(int which_chunk_type, bool rotten_chunk) { - const int poison_resistance_level = player_res_poison(); int this_chunk_effect = which_chunk_type; // determine the initial effect of eating a particular chunk {dlb}: @@ -1405,9 +1404,8 @@ static int determine_chunk_effect(int which_chunk_type, bool rotten_chunk) break; case CE_POISONOUS: - if (you.species == SP_GHOUL - || you.attribute[ATTR_TRANSFORMATION] == TRAN_LICH - || poison_resistance_level > 0 && you.species != SP_VAMPIRE) + if (you.attribute[ATTR_TRANSFORMATION] == TRAN_LICH + || player_res_poison() > 0 && you.species != SP_VAMPIRE) { this_chunk_effect = CE_CLEAN; } diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 36db3870b1..0903200fed 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -2345,8 +2345,8 @@ static void give_random_scroll( int slot ) static void give_random_potion( int slot ) { - // Mummies can't quaff and don't care - if (you.species == SP_MUMMY) + // If you can't quaff, you don't care + if (you.is_undead == US_UNDEAD) return; you.inv[ slot ].quantity = 1; @@ -3554,7 +3554,7 @@ bool give_items_skills() newgame_make_item(1, EQ_BODY_ARMOUR, OBJ_ARMOUR, ARM_ROBE); - if (you.species != SP_MUMMY) + if (you.is_undead != US_UNDEAD) newgame_make_item(2, EQ_NONE, OBJ_POTIONS, POT_HEALING, 2); you.skills[SK_FIGHTING] = 2; |