diff options
author | Neil Moore <neil@s-z.org> | 2013-02-17 17:08:34 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-02-17 17:08:34 -0500 |
commit | 2043ff63932f8fcedda450bcab6cb4eb2f05e6c9 (patch) | |
tree | f1b1c0f0d0b398441e8951ea023a82699225dd7e /crawl-ref/source/godprayer.h | |
parent | da7237664111ccceb0732c7ee7056331f2bcf6a5 (diff) | |
download | crawl-ref-2043ff63932f8fcedda450bcab6cb4eb2f05e6c9.tar.gz crawl-ref-2043ff63932f8fcedda450bcab6cb4eb2f05e6c9.zip |
Fix broken Jiyva bonuses for slurping large stacks (#6655).
Jiyva was giving piety for the entire stack, despite only a few of the
objects being eaten. This meant it was "optimal" to collect arrows,
stones, etc. and pile them into a single huge stack on a difficult
level, giving over 10000 HP worth of healing in chunks of hundreds of
HP at a time. This was particularly noticeable in Zig Sprint, with
the huge piles of ammo in the starting room.
Diffstat (limited to 'crawl-ref/source/godprayer.h')
-rw-r--r-- | crawl-ref/source/godprayer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/godprayer.h b/crawl-ref/source/godprayer.h index dfef4e507b..4917f8806e 100644 --- a/crawl-ref/source/godprayer.h +++ b/crawl-ref/source/godprayer.h @@ -11,7 +11,8 @@ string god_prayer_reaction(); void pray(); -piety_gain_t sacrifice_item_stack(const item_def& item, int *js = 0); +piety_gain_t sacrifice_item_stack(const item_def& item, int *js = 0, + int quantity = 0); bool check_nemelex_sacrificing_item_type(const item_def& item); int zin_tithe(item_def& item, int quant, bool quiet, bool converting = false); |