summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 9cf81785db..8e8f8e8ae7 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -1284,22 +1284,6 @@ int player_res_fire(bool calc_unid, bool temp, bool items)
return (rf);
}
-int player_res_sticky_flame(bool calc_unid, bool temp, bool items)
-{
- int res = 0;
-
- if (you.species == SP_MOTTLED_DRACONIAN && you.experience_level > 5)
- res++;
-
- if (items && player_equip(EQ_BODY_ARMOUR, ARM_MOTTLED_DRAGON_ARMOUR))
- res++;
-
- if (res > 1)
- res = 1;
-
- return (res);
-}
-
int player_res_steam(bool calc_unid, bool temp, bool items)
{
int res = 0;
@@ -1574,6 +1558,22 @@ int player_res_poison(bool calc_unid, bool temp, bool items)
return (rp);
}
+int player_res_sticky_flame(bool calc_unid, bool temp, bool items)
+{
+ int rsf = 0;
+
+ if (you.species == SP_MOTTLED_DRACONIAN && you.experience_level > 5)
+ rsf++;
+
+ if (items && player_equip(EQ_BODY_ARMOUR, ARM_MOTTLED_DRAGON_ARMOUR))
+ rsf++;
+
+ if (rsf > 1)
+ rsf = 1;
+
+ return (rsf);
+}
+
int player_spec_death()
{
int sd = 0;