smc@mit-vax.UUCP (Stewart M. Clamen) (06/23/85)
It seems you can unwield a cursed weapon by Engraving, and selecting an engraving object other than the one you are wielding. This fix allows you to engrave with any object (or pair of hands) you specify, but will not unwield the cursed weapon. If your engraving leads you to wielding a cursed weapon, you are informed. SMC ---------------------------------------------------------------------- The following is the output from a DIFF of the original and modified file: hack.engrave.c 135,139c135 < /* change so that you cannot unwield cursed weapon -- SMC */ < if(uwep && uwep->cursed) < pline("The %s still in your hand!", < aobjnam(uwep,"are")); < else { --- > if(uwep) { 142,143c138 < } < /* end of change */ --- > } 150,166c145,148 < /* Mod: If current weapon isn't cursed, wield engraving < weapon. In either case, use new weapon to do < engraving, informing if new weapon cursed. -- SMC */ < if (uwep != ((struct obj *) 0) && uwep->cursed) < pline("The %s still welded to your hand!", < aobjnam(uwep,"are")); < else { < setuwep(otmp); < if (otmp->cursed) < pline("The %s itself to your hand!", < aobjnam(otmp, "bond")); < else < pline("You now wield %s.", doname(otmp)); < } < /* end of modification */ < } < --- > pline("You now wield %s.", doname(otmp)); > setuwep(otmp); > } > -- ---------------------------------------------------- ARPA: SMC%MIT-OZ@MIT-MC.ARPA USENET: ...!decvax!genrad!mit-eddie!smc%mit-oz