🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.games.hack
Article #713

Hack 1.0.2 bug fix for glove removal.

#713
From: Latitudinarian Lobster
Date: Tue, 04 Jun 1985 01:48
59 lines
2402 bytes
Someone pointed out earlier that gloves could be removed over cursed
weapons, but that they could not be put back on.  Here's a context diff
for the fix (with an older fix included):

*** hack.do_wear.c.old	Fri Apr 26 13:47:08 1985
--- hack.do_wear.c	Mon Jun  3 20:21:42 1985
***************
*** 26,31
  		pline("You can't take that off.");
  		return(0);
  	}
  	(void) armoroff(otmp);
  	return(1);
  }

--- 26,35 -----
  		pline("You can't take that off.");
  		return(0);
  	}
+ 	else if( (otmp->otyp == PAIR_OF_GLOVES) && uwep && uwep->cursed) {
+ 			pline("Your gloves seem stuck to your weapon and hands.");
+ 			return(0);
+ 	}
  	(void) armoroff(otmp);
  	return(1);
  }
***************
*** 227,232
  		impossible("Strange... I didnt know you had that ring.");
  	u.uprops[PROP(obj->otyp)].p_flgs &= ~mask;
  	switch(obj->otyp) {
  	case RIN_LEVITATION:
  		if(!Levitation) {	/* no longer floating */
  			float_down();

--- 231,245 -----
  		impossible("Strange... I didnt know you had that ring.");
  	u.uprops[PROP(obj->otyp)].p_flgs &= ~mask;
  	switch(obj->otyp) {
+  	/* Bad luck if the player is in hell... --jgm */
+  	case RIN_FIRE_RESISTANCE:
+  		if (!Fire_resistance && dlevel >= 30) {
+  			pline("The flames of Hell burn you to a crisp.");
+  			killer = "stupidity in hell";
+  			done("burned");
+  		}
+  		break;
+          /* end jgm */
  	case RIN_LEVITATION:
  		if(!Levitation) {	/* no longer floating */
  			float_down();

-- 
Jeff Myers				The views above may or may not
University of Wisconsin-Madison		reflect the views of any other
Madison Academic Computing Center	person or group at UW-Madison.
ARPA: uwmacc!myers@wisc-rsch.ARPA
UUCP: ..!{harvard,ucbvax,allegra,heurikon,ihnp4,seismo}!uwvax!uwmacc!myers
BitNet: MYERS at MACCWISC
Technical Details
Message-ID: <1182@uwmacc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!uwvax!uwmacc!myers

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/5/84; site uwmacc.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!uwvax!uwmacc!myers
From: myers@uwmacc.UUCP (Latitudinarian Lobster)
Newsgroups: net.games.hack,net.sources.bugs
Subject: Hack 1.0.2 bug fix for glove removal.
Message-ID: <1182@uwmacc.UUCP>
Date: Mon, 3-Jun-85 21:48:50 EDT
Article-I.D.: uwmacc.1182
Posted: Mon Jun  3 21:48:50 1985
Date-Received: Tue, 4-Jun-85 08:21:21 EDT
Distribution: net
Organization: UWisconsin-Madison Academic Comp Center
Lines: 59