diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-10 01:01:12 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-10 01:02:11 -0500 |
commit | 2377eb11de1fd731380ea42f1ef0117ac53c1e15 (patch) | |
tree | cf6a9ddfd2e6791034f3394884b117d743966121 /crawl-ref/source/ouch.cc | |
parent | 5d7a50baaa1a688660fed5da400ff1ebd5c81049 (diff) | |
download | crawl-ref-2377eb11de1fd731380ea42f1ef0117ac53c1e15.tar.gz crawl-ref-2377eb11de1fd731380ea42f1ef0117ac53c1e15.zip |
Make Fedhas worshipers immune to spore food destruction.
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 3b81350a08..e7fca1e917 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -437,6 +437,14 @@ static bool _expose_invent_to_element(beam_type flavour, int strength) if (target_class == OBJ_UNASSIGNED) return (false); + // Fedhas worshipers are exempt from the food destruction effect + // of spores. + if(flavour == BEAM_SPORE + && you.religion == GOD_FEDHAS) + { + return false; + } + // Currently we test against each stack (and item in the stack) // independently at strength%... perhaps we don't want that either // because it makes the system very fair and removes the protection |