diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-05 17:13:33 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-05 17:13:33 +0000 |
commit | a0b554fad45a8d736a8365e916e2d3982322262f (patch) | |
tree | 1ff78ce455c474c44610f0576b89427095e882cf /crawl-ref/source | |
parent | 5c54720bc1a4728c8091364ccf745d4c8f4140b7 (diff) | |
download | crawl-ref-a0b554fad45a8d736a8365e916e2d3982322262f.tar.gz crawl-ref-a0b554fad45a8d736a8365e916e2d3982322262f.zip |
Remove inaccurate comment and unneeded code in monsters::body_weight().
Water elementals aren't insubstantial, and should have their weight set
to 1500 by virtue of their size, so there's no need to hardcode it
there.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4884 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 2609560a67..cc21050843 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -2713,10 +2713,6 @@ int monsters::body_weight() const int weight = mons_weight(mclass); - // Water elementals are "insubstantial", but still have weight. - if (weight == 0 && type == MONS_WATER_ELEMENTAL) - weight = 1500; - // weight == 0 in the monster entry indicates "no corpse". Can't // use CE_NOCORPSE, because the corpse-effect field is used for // corpseless monsters to indicate what happens if their blood |