summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-27 15:07:57 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-27 15:07:57 +0000
commitf19d052c40434d78856bb0ba680f50bc55b2d009 (patch)
treeccb006ebe89bb8bf076e3f685db012616a6c6578 /crawl-ref/source/xom.cc
parentc8fe352afa5837de5f7afba5316f0f30ba274a5f (diff)
downloadcrawl-ref-f19d052c40434d78856bb0ba680f50bc55b2d009.tar.gz
crawl-ref-f19d052c40434d78856bb0ba680f50bc55b2d009.zip
And clean it up yet some more.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3901 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index aa80692a37..d5eaa1880e 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -114,10 +114,10 @@ static const char* _get_xom_speech(const std::string key)
if (result.empty())
result = getSpeakString("Xom general effect");
-
+
if (!result.empty())
return (result.c_str());
-
+
return ("Xom makes something happen.");
}
@@ -532,6 +532,7 @@ static bool xom_is_good(int sever)
|| (!is_demonic && hostiletype == 2))
{
mon->attitude = ATT_HOSTILE;
+ behaviour_event(mon, ME_ALERT, MHITYOU);
}
}
}