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

Function sellobj_state

src/shk.c:3912–3924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3910}
3911
3912void
3913sellobj_state(int deliberate)
3914{
3915 /* If we're deliberately dropping something, there's no automatic
3916 response to the shopkeeper's "want to sell" query; however, if we
3917 accidentally drop anything, the shk will buy it/them without asking.
3918 This retains the old pre-query risk that slippery fingers while in
3919 shops entailed: you drop it, you've lost it.
3920 */
3921 gs.sell_response = (deliberate != SELL_NORMAL) ? '\0' : 'a';
3922 gs.sell_how = deliberate;
3923 ga.auto_credit = FALSE;
3924}
3925
3926void
3927sellobj(

Callers 5

dodropFunction · 0.85
doddropFunction · 0.85
in_containerFunction · 0.85
use_containerFunction · 0.85
touchfoodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected