diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-04 08:42:47 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-04 08:42:47 -0600 |
commit | f7c29d55ca91d539d64de5e120a5b2c301ccb938 (patch) | |
tree | c4c6909967778f25afd96ff314a7e14ed2fe48af /crawl-ref/source/monster.cc | |
parent | 2095831bd6147db1fd74e35e984953d5d01fd3e9 (diff) | |
download | crawl-ref-f7c29d55ca91d539d64de5e120a5b2c301ccb938.tar.gz crawl-ref-f7c29d55ca91d539d64de5e120a5b2c301ccb938.zip |
Remove some hardcoded monster flags.
Since insubstantial monsters all resist sticky flame, move the check for
insubstantiality into monsters::res_sticky_flame(), and remove the
MR_RES_STICKY_FLAME flag from such monsters.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index b3967e3547..4770e2fe9b 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -3041,6 +3041,8 @@ int monsters::res_poison() const int monsters::res_sticky_flame() const { int res = get_mons_resists(this).sticky_flame; + if (mons_is_insubstantial(type)) + res += 1; if (has_equipped(EQ_BODY_ARMOUR, ARM_MOTTLED_DRAGON_ARMOUR)) res += 1; return (res); |