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

Function dip_hands_ok

src/potion.c:2230–2237  ·  view source on GitHub ↗

getobj callback for object to be dipped when hero has slippery hands */

Source from the content-addressed store, hash-verified

2228
2229/* getobj callback for object to be dipped when hero has slippery hands */
2230staticfn int
2231dip_hands_ok(struct obj *obj)
2232{
2233 if (!obj && (Glib && can_reach_floor(FALSE)))
2234 return GETOBJ_SUGGEST;
2235
2236 return dip_ok(obj);
2237}
2238
2239/* call hold_another_object() to deal with a transformed potion; its weight
2240 won't have changed but it might require an extra slot that isn't available

Callers

nothing calls this directly

Calls 2

can_reach_floorFunction · 0.85
dip_okFunction · 0.85

Tested by

no test coverage detected