diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-04 02:47:56 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-04 02:47:56 -0800 |
commit | 3c67852a7a53bfa87964d0330d9cc9dd20613ff0 (patch) | |
tree | 7e7fe5f80a8ec64a41cc80f094e32e65a88b072d | |
parent | 30387f6a8372b62160a6c2a4441a1b5909538055 (diff) | |
download | crawl-ref-3c67852a7a53bfa87964d0330d9cc9dd20613ff0.tar.gz crawl-ref-3c67852a7a53bfa87964d0330d9cc9dd20613ff0.zip |
Less blood from rotten corpses (due)
-rw-r--r-- | crawl-ref/source/monstuff.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 7eaf3133bb..3115ca8bb0 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -361,7 +361,12 @@ bool explode_corpse(item_def& corpse, const coord_def& where) corpse.base_type = OBJ_FOOD; corpse.sub_type = FOOD_CHUNK; - blood_spray(where, static_cast<monster_type>(corpse.plus), nchunks * 3); + int blood = nchunks * 3; + + if (food_is_rotten(corpse)) + blood /= 3; + + blood_spray(where, static_cast<monster_type>(corpse.plus), blood); while (nchunks > 0 && ntries < 10000) { |