diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-11-03 23:53:48 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-04 00:06:51 +0100 |
commit | e10d5cb12d979e733cedee3f71b021c553197bce (patch) | |
tree | 3724e66cd54b1307fee7fde326231fa280f9731e /crawl-ref/source/mon-util.cc | |
parent | 5770878427657e6317cb21c73666c9f2d36e0234 (diff) | |
download | crawl-ref-e10d5cb12d979e733cedee3f71b021c553197bce.tar.gz crawl-ref-e10d5cb12d979e733cedee3f71b021c553197bce.zip |
Cope with old saves with 0-piece slime creatures.
Can be reverted once CDO is updated or purged.
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 1b1db5653d..a389cd6c16 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1316,7 +1316,7 @@ int exper_value(const monsters *monster) // Hacks to make merged slime creatures not worth so much exp. We // will calculate the experience we would get for 1 blob, and then // just multiply it so that exp is linear with blobs merged. -cao - if (monster->mons_species() == MONS_SLIME_CREATURE) + if (monster->mons_species() == MONS_SLIME_CREATURE && monster->number) maxhp /= monster->number; // These are some values we care about. |