From d9a793b72258ceb8f5465161acf8ba743ca26d89 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 18 Jan 2009 00:52:30 +0000 Subject: 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 --- crawl-ref/source/player.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'crawl-ref/source/player.cc') 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()); -- cgit v1.2.3-54-g00ecf