From bb28231c541ca917387a4eb3f1318d8782c06fdb Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 8 Mar 2007 20:52:08 +0000 Subject: Fixed jellies not getting acid damage (Erik). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@995 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 5 +++++ crawl-ref/source/mon-data.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 835bdee2d8..8d02e0d622 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -508,6 +508,8 @@ bool melee_attack::player_attack() if (player_check_monster_died()) return (true); + player_sustain_passive_damage(); + if (damage_done < 1) no_damage_message = make_stringf("You %s %s.", @@ -2609,7 +2611,10 @@ void melee_attack::splash_monster_with_acid(int strength) void melee_attack::splash_defender_with_acid(int strength) { if (defender->atype() == ACT_PLAYER) + { + mpr("You are splashed with acid!"); splash_with_acid(strength); + } else splash_monster_with_acid(strength); } diff --git a/crawl-ref/source/mon-data.h b/crawl-ref/source/mon-data.h index c52a17913c..5e3a0b23f5 100644 --- a/crawl-ref/source/mon-data.h +++ b/crawl-ref/source/mon-data.h @@ -558,7 +558,7 @@ M_SEE_INVIS | M_SPLITS | M_AMPHIBIOUS | M_ACID_SPLASH, MR_RES_POISON | MR_RES_ASPHYX, 0, 13, MONS_JELLY, MONS_JELLY, MH_NATURAL, -3, - { {AT_HIT, AF_PLAIN, 8}, {AT_NONE, AF_PLAIN, 0}, {AT_NONE, AF_PLAIN, 0}, {AT_NONE, AF_PLAIN, 0} }, + { {AT_HIT, AF_ACID, 8}, {AT_NONE, AF_PLAIN, 0}, {AT_NONE, AF_PLAIN, 0}, {AT_NONE, AF_PLAIN, 0} }, { 3, 5, 5, 0 }, 0, 2, 9, 7, MST_NO_SPELLS, CE_NOCORPSE, Z_NOZOMBIE, S_SILENT, I_PLANT, MONUSE_EATS_ITEMS, SIZE_MEDIUM -- cgit v1.2.3-54-g00ecf