diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-18 00:52:30 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-18 00:52:30 +0000 |
commit | d9a793b72258ceb8f5465161acf8ba743ca26d89 (patch) | |
tree | a701f49d650bae28e019e511e0ba385a7c27606d /crawl-ref/source/player.cc | |
parent | 6817824379462ee5a1aab8267eb437d2b543504e (diff) | |
download | crawl-ref-d9a793b72258ceb8f5465161acf8ba743ca26d89.tar.gz crawl-ref-d9a793b72258ceb8f5465161acf8ba743ca26d89.zip |
Move cleansing flame (BEAM_HOLY) resistance to the actor interface.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8523 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index e567735c3a..4cdf592454 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6829,6 +6829,20 @@ int player::res_sticky_flame() const return (player_res_sticky_flame()); } +int player::res_cleansing_flame() const +{ + if (player_is_unholy()) + return (-2); + + if (is_evil_god(you.religion)) + return (-1); + + if (is_good_god(you.religion)) + return (1); + + return (0); +} + int player::res_negative_energy() const { return (player_prot_life()); |