diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-02 06:39:09 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-02 06:39:09 +0000 |
commit | 00eb4216eab04d938358d9a382c4afacc4ff5a5f (patch) | |
tree | efad04e2ec0ac072dd4c77c6e3af9ed19febcd6b /crawl-ref/source/delay.h | |
parent | fa6393b63b270a07e02ce4c8333b23013b5ded75 (diff) | |
download | crawl-ref-00eb4216eab04d938358d9a382c4afacc4ff5a5f.tar.gz crawl-ref-00eb4216eab04d938358d9a382c4afacc4ff5a5f.zip |
Changed interrupted butchering behaviour as per Johanna's
suggestions/observations:
1) Get rid of option swap_when_safe and its behaviour.
2) If auto-swap butchery is interrupted by teleportation or chagning levels
(banishment) then auto-swap back if there's no monsters nearby.
2b) Do the same if butchery is interrupted and then later a large position
change happens.
3) If auto-swap butchery is interrupted by something like poison damage,
if the butchery is resumed and finished then swap back.
4) If auto-swap butchery is interrupted by a monster, then if the
new option prompt_for_swap is set the game will ask if you wish to
swap back from your butchering tool.
4b) Do the same if butchery is interrupted and then later a large
position change lands you near some hostile monsters.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7717 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.h')
-rw-r--r-- | crawl-ref/source/delay.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/delay.h b/crawl-ref/source/delay.h index dd47926e18..55cb7bd1d4 100644 --- a/crawl-ref/source/delay.h +++ b/crawl-ref/source/delay.h @@ -77,6 +77,9 @@ bool is_run_delay(int delay); bool is_being_butchered(const item_def &item, bool just_first = true); bool is_vampire_feeding( void ); void stop_butcher_delay(); +void handle_interrupted_swap(bool swap_if_safe = false, + bool force_unsafe = false); + void clear_macro_process_key_delay(); const char *activity_interrupt_name(activity_interrupt_type ai); |