diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2013-05-06 13:24:40 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2013-05-06 13:44:56 -0600 |
commit | 629ac6fd8609cfe2d2a737d4da93f55ac274a309 (patch) | |
tree | 233c48506e870adf58902370c1a40239785633ad /crawl-ref/source/ouch.h | |
parent | 90c4787c4664285433931426212b8081ffdb3ce9 (diff) | |
download | crawl-ref-629ac6fd8609cfe2d2a737d4da93f55ac274a309.tar.gz crawl-ref-629ac6fd8609cfe2d2a737d4da93f55ac274a309.zip |
Properly attribute draining and sticky flame deaths.
Inspired by the recent change to acid death attribution.
Diffstat (limited to 'crawl-ref/source/ouch.h')
-rw-r--r-- | crawl-ref/source/ouch.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/ouch.h b/crawl-ref/source/ouch.h index 6e0e7ee98d..885195ef48 100644 --- a/crawl-ref/source/ouch.h +++ b/crawl-ref/source/ouch.h @@ -62,7 +62,7 @@ enum kill_method_type int check_your_resists(int hurted, beam_type flavour, string source, bolt *beam = 0, bool doEffects = true); -void splash_with_acid(int acid_strength, int death_source, +void splash_with_acid(int acid_strength, int death_source, bool corrode_items = true, string hurt_msg = ""); class actor; @@ -75,8 +75,9 @@ void ouch(int dam, int death_source, kill_method_type death_type, const char *aux = NULL, bool see_source = true, const char *death_source_name = NULL); -void lose_level(void); -bool drain_exp(bool announce_full = true); +void lose_level(int death_source, const char* aux); +bool drain_exp(bool announce_full = true, int death_source = NON_MONSTER, + const char *aux = NULL); bool expose_items_to_element(beam_type flavour, const coord_def& where, int strength = 0); |