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

Function mwepgone

src/weapon.c:937–946  ·  view source on GitHub ↗

force monster to stop wielding current weapon, if any */

Source from the content-addressed store, hash-verified

935
936/* force monster to stop wielding current weapon, if any */
937void
938mwepgone(struct monst *mon)
939{
940 struct obj *mwep = MON_WEP(mon);
941
942 if (mwep) {
943 setmnotwielded(mon, mwep);
944 mon->weapon_check = NEED_WEAPON;
945 }
946}
947
948/* attack bonus for strength & dexterity */
949int

Callers 2

extract_from_minventFunction · 0.85
mselftouchFunction · 0.85

Calls 1

setmnotwieldedFunction · 0.85

Tested by

no test coverage detected