Difference between revisions of "Monster carrying capacity"
m (Quote marks) |
(rewrite article based on my reading of the source code and testing in wizard mode) |
||
Line 1: | Line 1: | ||
+ | A monster's carrying capacity is determined by the following procedure: | ||
− | {{ | + | <math>\text{maxload} = 1000 \times \frac{{\text{cwt}}}{1450}</math>, |
− | + | where cwt is the monster's [[weight]], if cwt is not 0. If the monster is [[strong]] and weighs less than a human (1450), then the monster's carrying capacity is set to 1000. | |
− | cwt | + | For a monster with a cwt of 0, its carrying capacity depends on its [[physical size]]: |
− | + | <math>\text{maxload} = \text{msize} \times 1000</math>, | |
− | + | where msize is 0 for tiny, 1 for small, 2 for medium, 3 for large, 4 for huge, and 7 for gigantic. | |
− | + | Finally, if the monster is not strong, then its carrying capacity is divided by 2: | |
− | + | <math>\text{maxload} = \frac{\text{maxload}}{2}</math>.{{refsrc|src/mon.c|1185|version=NetHack 3.6.6}} | |
+ | |||
+ | Note that despite the source code comment mentioning [[corpseless]] monsters, the formula based on monster size is only used for monsters with a cwt of 0. Thus, a corpseless [[lich]], with medium (2) size and 1200 weight, has a carrying capacity of 413, not 500. A [[wraith]], with medium size and 0 weight, has a carrying capacity of 500. | ||
+ | |||
+ | In effect, the carrying capacity of a non-zero-weight monster is <math>\frac{\text{cwt}}{2.9}</math> if a monster is not strong, and <math>\frac{\text{max}(\text{cwt}, 1450)}{1.45}</math> if a monster is strong. | ||
A few monsters' carrying capacity: | A few monsters' carrying capacity: | ||
Line 32: | Line 37: | ||
==References== | ==References== | ||
<references/> | <references/> | ||
− | |||
− | |||
− |
Revision as of 05:36, 23 February 2021
A monster's carrying capacity is determined by the following procedure:
,
where cwt is the monster's weight, if cwt is not 0. If the monster is strong and weighs less than a human (1450), then the monster's carrying capacity is set to 1000.
For a monster with a cwt of 0, its carrying capacity depends on its physical size:
,
where msize is 0 for tiny, 1 for small, 2 for medium, 3 for large, 4 for huge, and 7 for gigantic.
Finally, if the monster is not strong, then its carrying capacity is divided by 2:
.[1]
Note that despite the source code comment mentioning corpseless monsters, the formula based on monster size is only used for monsters with a cwt of 0. Thus, a corpseless lich, with medium (2) size and 1200 weight, has a carrying capacity of 413, not 500. A wraith, with medium size and 0 weight, has a carrying capacity of 500.
In effect, the carrying capacity of a non-zero-weight monster is if a monster is not strong, and if a monster is strong.
A few monsters' carrying capacity:
Monster | kitten/little dog | housecat/dog | hobbit | large cat/large dog | pony | dwarf | horse | warhorse |
---|---|---|---|---|---|---|---|---|
Capacity | 52 | 69 | 173 | 1000 | 1000 | 1000 | 1034 | 1241 |