From 267aa98041462c6b387951e5f8e8fe1b112b6875 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 23 Aug 2008 22:09:06 +0000 Subject: Add miscellaneous minor fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6852 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index b3187aa42a..11cc2a9088 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -1208,20 +1208,6 @@ int player_res_magic(void) return rm; } -// If temp is set to false, temporary sources or resistance won't be counted. -int player_res_steam(bool calc_unid, bool temp, bool items) -{ - int res = 0; - - if (you.species == SP_PALE_DRACONIAN && you.experience_level > 5) - res += 2; - - if (items && player_equip(EQ_BODY_ARMOUR, ARM_STEAM_DRAGON_ARMOUR)) - res += 2; - - return (res + player_res_fire(calc_unid, temp, items) / 2); -} - bool player_can_smell() { return (you.species != SP_MUMMY); @@ -1299,6 +1285,19 @@ int player_res_fire(bool calc_unid, bool temp, bool items) return (rf); } +int player_res_steam(bool calc_unid, bool temp, bool items) +{ + int res = 0; + + if (you.species == SP_PALE_DRACONIAN && you.experience_level > 5) + res += 2; + + if (items && player_equip(EQ_BODY_ARMOUR, ARM_STEAM_DRAGON_ARMOUR)) + res += 2; + + return (res + player_res_fire(calc_unid, temp, items) / 2); +} + int player_res_cold(bool calc_unid, bool temp, bool items) { int rc = 0; @@ -1329,7 +1328,6 @@ int player_res_cold(bool calc_unid, bool temp, bool items) break; } - if (you.species == SP_VAMPIRE) { if (you.hunger_state <= HS_NEAR_STARVING) @@ -1383,8 +1381,7 @@ int player_res_acid(bool calc_unid, bool items) int res = 0; if (!transform_changed_physiology()) { - if (you.species == SP_YELLOW_DRACONIAN - && you.experience_level >= 7) + if (you.species == SP_YELLOW_DRACONIAN && you.experience_level > 6) res += 2; res += player_mutation_level(MUT_YELLOW_SCALES) * 2 / 3; @@ -1560,7 +1557,7 @@ int player_res_poison(bool calc_unid, bool temp, bool items) rp = 1; return (rp); -} // end player_res_poison() +} int player_spec_death() { -- cgit v1.2.3-54-g00ecf