MCPcopy Create free account
hub / github.com/NetHack/NetHack / curr_mon_load

Function curr_mon_load

src/mon.c:1912–1924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1910}
1911
1912int
1913curr_mon_load(struct monst *mtmp)
1914{
1915 int curload = 0;
1916 struct obj *obj;
1917
1918 for (obj = mtmp->minvent; obj; obj = obj->nobj) {
1919 if (obj->otyp != BOULDER || !throws_rocks(mtmp->data))
1920 curload += obj->owt;
1921 }
1922
1923 return curload;
1924}
1925
1926int
1927max_mon_load(struct monst *mtmp)

Callers 4

cant_squeeze_thruFunction · 0.85
domove_swap_with_petFunction · 0.85
can_carryFunction · 0.85
mon_would_take_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected