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

Function discard_broken_wand

src/apply.c:3875–3885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3873}
3874
3875staticfn void
3876discard_broken_wand(void)
3877{
3878 struct obj *obj;
3879
3880 obj = gc.current_wand; /* [see dozap() and destroy_items()] */
3881 gc.current_wand = 0;
3882 if (obj)
3883 delobj(obj);
3884 nomul(0);
3885}
3886
3887staticfn void
3888broken_wand_explode(struct obj *obj, int dmg, int expltype)

Callers 2

broken_wand_explodeFunction · 0.85
do_break_wandFunction · 0.85

Calls 2

delobjFunction · 0.85
nomulFunction · 0.85

Tested by

no test coverage detected