MCPcopy Index your code
hub / github.com/NetHack/NetHack / check_capacity

Function check_capacity

src/hack.c:4398–4409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4396}
4397
4398boolean
4399check_capacity(const char *str)
4400{
4401 if (near_capacity() >= EXT_ENCUMBER) {
4402 if (str)
4403 pline1(str);
4404 else
4405 You_cant("do that while carrying so much stuff.");
4406 return 1;
4407 }
4408 return 0;
4409}
4410
4411struct weight_table_entry {
4412 unsigned wtyp; /* 1 = monst, 2 = obj */

Callers 13

do_attackFunction · 0.85
doteleFunction · 0.85
u_can_engraveFunction · 0.85
ok_to_throwFunction · 0.85
doloot_coreFunction · 0.85
dotipFunction · 0.85
doeatFunction · 0.85
floorfoodFunction · 0.85
help_monster_outFunction · 0.85
dozapFunction · 0.85
spelleffects_checkFunction · 0.85
doapplyFunction · 0.85

Calls 2

near_capacityFunction · 0.85
You_cantFunction · 0.85

Tested by

no test coverage detected