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

Function unpunish

src/read.c:3065–3077  ·  view source on GitHub ↗

remove the ball and chain */

Source from the content-addressed store, hash-verified

3063
3064/* remove the ball and chain */
3065void
3066unpunish(void)
3067{
3068 struct obj *savechain = uchain;
3069
3070 /* chain goes away */
3071 setworn((struct obj *) 0, W_CHAIN); /* sets 'uchain' to Null */
3072 /* for floor, unhides monster hidden under chain, calls newsym() */
3073 delobj(savechain);
3074
3075 /* the chain is gone but the no longer attached ball persists */
3076 setworn((struct obj *) 0, W_BALL); /* sets 'uball' to Null */
3077}
3078
3079/* prompt the player to create a stinking cloud and then create it if they
3080 give a location */

Callers 15

savebonesFunction · 0.85
remove_worn_itemFunction · 0.85
bury_an_objFunction · 0.85
fix_worst_troubleFunction · 0.85
delallobjFunction · 0.85
polymonFunction · 0.85
doremoveFunction · 0.85
eatspecialFunction · 0.85
m_consume_objFunction · 0.85
chest_trapFunction · 0.85
bhitoFunction · 0.85
zapyourselfFunction · 0.85

Calls 2

setwornFunction · 0.85
delobjFunction · 0.85

Tested by

no test coverage detected