From 5894f27848d3bf7ca770c06c207ee1fc627dc983 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 3 Apr 2007 12:54:05 +0000 Subject: Jellies now resist acid spit (adapted jlewis' patch). On Windows and DOS, prompt for a newline after printing an error message and exiting, since users on those systems seem to run executables by double-clicking on them, and cannot see error messages because the console disappears when the game exits. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1198 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index c9c77dbb2a..21dd4beac5 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1572,6 +1572,15 @@ int mons_adjust_flavoured( struct monsters *monster, struct bolt &pbolt, } break; + case BEAM_ACID: + if (mons_res_acid(monster)) + { + if (doFlavouredEffects) + simple_monster_message(monster, " appears unharmed."); + + hurted = 0; + } + break; case BEAM_POISON: if (mons_res_poison(monster) > 0) -- cgit v1.2.3-54-g00ecf