diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-03 12:54:05 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-03 12:54:05 +0000 |
commit | 5894f27848d3bf7ca770c06c207ee1fc627dc983 (patch) | |
tree | abaa3faf4a4f99d23a15cc155ed1540c8f725f27 /crawl-ref/source/beam.cc | |
parent | 5ac1e751c170bbe8e7537959bfc6fe0b3ff6b876 (diff) | |
download | crawl-ref-5894f27848d3bf7ca770c06c207ee1fc627dc983.tar.gz crawl-ref-5894f27848d3bf7ca770c06c207ee1fc627dc983.zip |
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
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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) |