From 142d889bc748bdf7f21a5b04d3693a5bc8b48d5c Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 5 Nov 2009 20:15:50 -0600 Subject: Remove the M_EVIL flag from orc wizards. Also, properly anger monsters that start off non-evil, but level up into evil monsters. --- crawl-ref/source/mgrow.cc | 5 +++++ crawl-ref/source/mon-data.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/mgrow.cc b/crawl-ref/source/mgrow.cc index 6334387a82..3693e43dd4 100644 --- a/crawl-ref/source/mgrow.cc +++ b/crawl-ref/source/mgrow.cc @@ -9,6 +9,7 @@ #include "enum.h" #include "mgrow.h" #include "mon-util.h" +#include "monplace.h" #include "monstuff.h" #include "random.h" @@ -235,5 +236,9 @@ bool monsters::gain_exp(int exp) if (hit_dice < MAX_MONS_HD && experience >= mexplevs[hit_dice + 1]) experience = (mexplevs[hit_dice] + mexplevs[hit_dice + 1]) / 2; + // If the monster has leveled up to a monster that will be angered + // by the player, handle it properly. + player_angers_monster(this); + return (levels_gained > 0); } diff --git a/crawl-ref/source/mon-data.h b/crawl-ref/source/mon-data.h index 2d0409b1ba..a58cd34c73 100644 --- a/crawl-ref/source/mon-data.h +++ b/crawl-ref/source/mon-data.h @@ -1088,7 +1088,7 @@ static monsterentry mondata[] = { { MONS_ORC_WIZARD, 'o', MAGENTA, "orc wizard", - M_SPELLCASTER | M_ACTUAL_SPELLS | M_WARM_BLOOD | M_EVIL | M_SPEAKS, + M_SPELLCASTER | M_ACTUAL_SPELLS | M_WARM_BLOOD | M_SPEAKS, MR_NO_FLAGS, 600, 10, MONS_ORC, MONS_ORC, MH_NATURAL, -5, { {AT_HIT, AF_PLAIN, 5}, AT_NO_ATK, AT_NO_ATK, AT_NO_ATK }, -- cgit v1.2.3-54-g00ecf