diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-23 22:09:06 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-23 22:09:06 +0000 |
commit | 267aa98041462c6b387951e5f8e8fe1b112b6875 (patch) | |
tree | 253440fda6b414823814579a69fe0c68e25e094c /crawl-ref/source/player.cc | |
parent | 6e6c763bff0de64d719090229fa3e92f80301e31 (diff) | |
download | crawl-ref-267aa98041462c6b387951e5f8e8fe1b112b6875.tar.gz crawl-ref-267aa98041462c6b387951e5f8e8fe1b112b6875.zip |
Add miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6852 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 33 |
1 files changed, 15 insertions, 18 deletions
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() { |