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

Function splittable

src/invent.c:1663–1668  ·  view source on GitHub ↗

some objects shouldn't be split when count given to getobj or askchain */

Source from the content-addressed store, hash-verified

1661
1662/* some objects shouldn't be split when count given to getobj or askchain */
1663boolean
1664splittable(struct obj *obj)
1665{
1666 return !((obj->otyp == LOADSTONE && obj->cursed)
1667 || (obj == uwep && welded(uwep)));
1668}
1669
1670/* match the prompt for either 'T' or 'R' command */
1671staticfn boolean

Callers 4

dowieldFunction · 0.85
doquiver_coreFunction · 0.85
getobjFunction · 0.85
askchainFunction · 0.85

Calls 1

weldedFunction · 0.85

Tested by

no test coverage detected