Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/NetHack/NetHack
/ max_capacity
Function
max_capacity
src/hack.c:4390–4396 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4388
}
4389
4390
int
4391
max_capacity(void)
4392
{
4393
int wt = inv_weight();
4394
4395
return (wt - (2 * gw.wc));
4396
}
4397
4398
boolean
4399
check_capacity(const char *str)
Callers
1
carry_count
Function · 0.85
Calls
1
inv_weight
Function · 0.85
Tested by
no test coverage detected