diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2010-02-26 12:57:00 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2010-02-26 13:03:04 +1000 |
commit | c5d0c19147cc3f4e92b4dacca341ca3c3eed10a7 (patch) | |
tree | d7bb4a06467377c0c660e9ab9903df08f34ff21d /crawl-ref/source/delay.h | |
parent | 78dc6631b38ce64f2863f52e75b5323d6147c117 (diff) | |
download | crawl-ref-c5d0c19147cc3f4e92b4dacca341ca3c3eed10a7.tar.gz crawl-ref-c5d0c19147cc3f4e92b4dacca341ca3c3eed10a7.zip |
Don't let friendlies animate corpses being butchered, or while hungry.
This prevents allies from using animate dead while the player is less
than satiated (this check could be improved to investigate
herbivoreness, etc; found in _animate_dead_okay in mon-cast.cc), or if
the player is currently butchering a corpse.
This does not alter enemy behaviour at all.
Diffstat (limited to 'crawl-ref/source/delay.h')
-rw-r--r-- | crawl-ref/source/delay.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/delay.h b/crawl-ref/source/delay.h index 12e0829bb0..ac3cc8910c 100644 --- a/crawl-ref/source/delay.h +++ b/crawl-ref/source/delay.h @@ -75,6 +75,7 @@ void finish_last_delay(); bool is_run_delay(int delay); bool is_being_butchered(const item_def &item, bool just_first = true); bool is_vampire_feeding(); +bool is_butchering(); bool player_stair_delay(); bool already_learning_spell(int spell); void stop_butcher_delay(); |