diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-06-19 08:54:13 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-06-19 12:09:55 -0400 |
commit | 61e7c1565861f7a89ca6f0554d135d64ec55a6fe (patch) | |
tree | 5bb02d34013d20e3e95c06b541467729eebf8557 /crawl-ref/source/actor.h | |
parent | df118164fecb6f63ba9eee7a6a750bee6b4b940f (diff) | |
download | crawl-ref-61e7c1565861f7a89ca6f0554d135d64ec55a6fe.tar.gz crawl-ref-61e7c1565861f7a89ca6f0554d135d64ec55a6fe.zip |
Try to reduce duplication in Recite code.
is_chaotic() and is_unclean() have been changed to return an int
roughly equal to what would have been returned before by the Zin
recite function. Some bool flags were added to the function to make
it still work right for the other uses (e.g. silver).
Prince Ribbit is no longer specially vulnerable to Recite, and insane/
sluggish uniques are unclean rather than chaotic, which seems more
consistent with the other uses of the terms.
The special case for nonliving and plant monsters to be unrecitable
is removed.
Diffstat (limited to 'crawl-ref/source/actor.h')
-rw-r--r-- | crawl-ref/source/actor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/actor.h b/crawl-ref/source/actor.h index e890ac9055..48ce6a7620 100644 --- a/crawl-ref/source/actor.h +++ b/crawl-ref/source/actor.h @@ -275,7 +275,7 @@ public: virtual bool is_holy(bool spells = true) const = 0; virtual bool is_unholy(bool spells = true) const = 0; virtual bool is_evil(bool spells = true) const = 0; - virtual bool is_chaotic() const = 0; + virtual int chaos(bool check_spells_god = false) const = 0; virtual bool is_artificial() const = 0; virtual bool is_unbreathing() const = 0; virtual bool is_insubstantial() const = 0; |