Difference between revisions of "Monster carrying capacity"

From NetHackWiki
Jump to navigation Jump to search
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:
  
{{todo|Is it always rounded up? And exactly what is meant by 'secured'?}}
+
<math>\text{maxload} = 1000 \times \frac{{\text{cwt}}}{1450}</math>,
  
A monster's carrying capacity is, in [[weight unit]]s:{{refsrc|mon.c|927}}
+
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/2.9,
+
For a monster with a cwt of 0, its carrying capacity depends on its [[physical size]]:
  
where cwt is the monster's [[weight]]. For [[strong]] monsters, multiply this with 2. A strong monster with a weight less than or equal to 1450 has 1000 units' worth of carrying capacity.
+
<math>\text{maxload} = \text{msize} \times 1000</math>,
  
A [[corpseless]] monster's capacity depends on its [[physical size]], as so:
+
where msize is 0 for tiny, 1 for small, 2 for medium, 3 for large, 4 for huge, and 7 for gigantic.
  
msize*500,
+
Finally, if the monster is not strong, then its carrying capacity is divided by 2:
  
which means that tiny corpseless monsters, such as [[grid bug]]s, cannot carry anything. Strong corpseless monsters, such as [[ki-rin]], are not secured 1000 units, but their capacity is still multiplied 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/>
 
{{stub}}
 
{{nethack-343}}
 

Revision as of 05:36, 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} = \text{msize} \times 1000,

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:

\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