diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-08 13:04:46 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-08 13:04:46 -0600 |
commit | 302c451890468d0b0b9cafd83094fe38669be0d4 (patch) | |
tree | 766732f7a505f5e7f581504c18a0faede95e25fc /crawl-ref/source/monster.cc | |
parent | ae03dd1f95c850329c80fc541cbd1b9286bae7d4 (diff) | |
download | crawl-ref-302c451890468d0b0b9cafd83094fe38669be0d4.tar.gz crawl-ref-302c451890468d0b0b9cafd83094fe38669be0d4.zip |
Make monsters::body_weight() take merged slime creatures into account.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 5016684fb2..85306480ab 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -406,6 +406,10 @@ int monsters::body_weight() const if (type == MONS_SKELETON_SMALL || type == MONS_SKELETON_LARGE) weight /= 2; + // Slime creature weight is multiplied by the number merged. + if (type == MONS_SLIME_CREATURE) + weight *= number; + return (weight); } |