Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site mit-vax.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!mit-vax!smc
From: smc@mit-vax.UUCP (Stewart M. Clamen)
Newsgroups: net.games.rogue,net.sources.games
Subject: Bug in HACK 1.0.2 (with fix)
Message-ID: <262@mit-vax.UUCP>
Date: Sun, 23-Jun-85 04:11:11 EDT
Article-I.D.: mit-vax.262
Posted: Sun Jun 23 04:11:11 1985
Date-Received: Sat, 29-Jun-85 04:43:33 EDT
Distribution: net
Organization: MIT, Cambridge, MA
Lines: 56
Xref: watmath net.games.rogue:2812 net.sources.games:187


	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