montraits of weapon-wielding monsters
Have save_mtraits() clear wielded weapon when attaching monster attributes to a corpse object. And have monster sanity check verify that wielded weapon is in the monster's inventory.
This commit is contained in:
@@ -2154,6 +2154,7 @@ save_mtraits(struct obj *obj, struct monst *mtmp)
|
||||
mtmp2->nmon = (struct monst *) 0;
|
||||
mtmp2->data = (struct permonst *) 0;
|
||||
mtmp2->minvent = (struct obj *) 0;
|
||||
MON_NOWEP(mtmp2); /* mtmp2->mw = (struct obj *) 0; */
|
||||
if (mtmp->mextra)
|
||||
copy_mextra(mtmp2, mtmp);
|
||||
/* if mtmp is a long worm with segments, its saved traits will
|
||||
|
||||
Reference in New Issue
Block a user