diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-14 21:44:04 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-14 22:13:09 +0100 |
commit | 8d5bc24353e3ae985238f97f21bbe8926c64c360 (patch) | |
tree | 46a693b29b020f55368c93f9ceb94b709734e5a1 /crawl-ref/source/xom.cc | |
parent | 3b2184fee6d00c53bb0751ec387a1e77f2feff49 (diff) | |
download | crawl-ref-8d5bc24353e3ae985238f97f21bbe8926c64c360.tar.gz crawl-ref-8d5bc24353e3ae985238f97f21bbe8926c64c360.zip |
Only allow Xom's animate weapon effect for xp 4 and upwards.
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r-- | crawl-ref/source/xom.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index 5a6b3941eb..ed45bc2cda 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -3169,8 +3169,9 @@ static int _xom_summon_hostiles(int sever, bool debug = false) const std::string speech = _get_xom_speech("hostile monster"); int result = XOM_DID_NOTHING; - // Nasty, but fun. - if (player_weapon_wielded() && one_chance_in(4)) + + // Nasty, but fun. Only allow for xp >= 4. + if (player_weapon_wielded() && you.max_level >= 4 && one_chance_in(4)) { if (debug) return (XOM_BAD_ANIMATE_WPN); |