Difference between revisions of "Monster carrying capacity"

From NetHackWiki
Jump to navigation Jump to search
(rewrite article based on my reading of the source code and testing in wizard mode)
(fix size formula)
Line 7: Line 7:
 
For a monster with a cwt of 0, its carrying capacity depends on its [[physical size]]:
 
For a monster with a cwt of 0, its carrying capacity depends on its [[physical size]]:
  
<math>\text{maxload} = \text{msize} \times 1000</math>,
+
<math>\text{maxload} = \frac{1000 \times \text{msize}}{\text{size of human}} </math>,
  
where msize is 0 for tiny, 1 for small, 2 for medium, 3 for large, 4 for huge, and 7 for gigantic.
+
where msize is 0 for tiny, 1 for small, 2 for medium, 3 for large, 4 for huge, and 7 for gigantic; humans have medium (2) size.
  
 
Finally, if the monster is not strong, then its carrying capacity is divided by 2:
 
Finally, if the monster is not strong, then its carrying capacity is divided by 2:

Revision as of 05:44, 23 February 2021

A monster's carrying capacity is determined by the following procedure:

\text{maxload} = 1000 \times \frac{{\text{cwt}}}{1450},

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:

\text{maxload} = \frac{1000 \times \text{msize}}{\text{size of human}} ,

where msize is 0 for tiny, 1 for small, 2 for medium, 3 for large, 4 for huge, and 7 for gigantic; humans have medium (2) size.

Finally, if the monster is not strong, then its carrying capacity is divided by 2:

\text{maxload} = \frac{\text{maxload}}{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 \frac{\text{cwt}}{2.9} if a monster is not strong, and \frac{\text{max}(\text{cwt}, 1450)}{1.45} 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

References