🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.games.hack
Article #1263

Re: Engrave -

#1263
From: Don Kneller%Langridge
Date: Thu, 23 Jan 1986 02:06
48 lines
2167 bytes
>>>3) Engraving.  When you engrave using your hands, your weapon
>>>   is automatically un-wielded.  Great way to un-wield
>>>   cursed weapons...

>>Was fixed in 1.03.  The fix checks if you're wielding a cursed
>>weapon and forces you to use it.

>Not true in the 1.0.3 version that we have here. I use this "bug" to check
> ...

This is the section of code that checks for "E-" not unwielding your
cursed whatever.  This is not a diff because this is from our original
1.03 sources.  I suspect many people have trouble with 1.03 because there
were (probably) two different postings.  When we updated to 1.03 I
requested sources from several people, but the "data.h" files came
with dates differing by about 2 weeks.  Anyway, here is the 'fix'.

--- code is from hack.engrave.c ---
 	if(otmp && otmp->otyp == WAN_FIRE && otmp->spe) {
		type = BURN;
		otmp->spe--;
	} else {
		/* first wield otmp */
		if(otmp != uwep) {
>			if(uwep && uwep->cursed) {
>			    /* Andreas Bormann */
>			    pline("Since your weapon is welded to your hand,");
>			    pline("you use the %s.", aobjnam(uwep, (char *) 0));
>			    otmp = uwep;
>			} else {
			    if(!otmp)
				pline("You are now empty-handed.");
			    else if(otmp->cursed)
				pline("The %s %s to your hand!",
				    aobjnam(otmp, "weld"),
				    (otmp->quan == 1) ? "itself" : "themselves");
			    else
				pline("You now wield %s.", doname(otmp));
			    setuwep(otmp);
>			}
		}
		.... etc ...
	}
-- 
	Don Kneller
UUCP:	...ucbvax!ucsfcgl!kneller
ARPA:	kneller@ucsf-cgl.ARPA
BITNET:	kneller@ucsfcgl.BITNET
Technical Details
Message-ID: <761@ucsfcgl.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!ucbvax!ucsfcgl!kneller

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site ucsfcgl.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!ucbvax!ucsfcgl!kneller
From: kneller@ucsfcgl.UUCP (Don Kneller%Langridge)
Newsgroups: net.games.hack
Subject: Re: Engrave -
Message-ID: <761@ucsfcgl.UUCP>
Date: Wed, 22-Jan-86 21:06:22 EST
Article-I.D.: ucsfcgl.761
Posted: Wed Jan 22 21:06:22 1986
Date-Received: Fri, 24-Jan-86 22:00:27 EST
Reply-To: kneller@ucsfcgl.UUCP (Don Kneller)
Organization: UCSF Computer Graphics Lab
Lines: 48