🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.games.hack
Article #770

Bug in hack's gethungry routine.

#770
From: Jim Tollefson
Date: Wed, 12 Jun 1985 23:09
37 lines
1711 bytes
I think that food is getting consumed too fast when wearing ANY ring.  A context
diff follows.  Instead of eating 19 points of food for every 20 moves you make,
I changed our version so that you only eat 1 point of food for every 20 moves.


*** hack.eat.c.old	Wed Jun 12 16:40:23 1985
--- hack.eat.c	Wed Jun 12 16:48:30 1985
***************
*** 255,262
  gethungry(){
  	--u.uhunger;
  	if((Regeneration || Hunger) && moves%2) u.uhunger--;
! 	if(uleft && moves%20) u.uhunger--;
! 	if(uright && moves%20) u.uhunger--;
  	newuhs(TRUE);
  }
  

--- 255,262 -----
  gethungry(){
  	--u.uhunger;
  	if((Regeneration || Hunger) && moves%2) u.uhunger--;
! 	if(uleft && (moves%20 == 0)) u.uhunger--;
! 	if(uright && (moves%20 == 0)) u.uhunger--;
  	newuhs(TRUE);
  }
  

Jim Tollefson				sdcrdcf! ---\
6655 Lookout Road			sdcsvax! ----\
Boulder, CO 	80301			ihnp4!sabre! --- bmcg!asgb!jimt
(303) 530-3905				hao!asgb!jimt
-- 
Jim Tollefson				sdcrdcf! ---\
6655 Lookout Road			sdcsvax! ----\
Boulder, CO 	80301			ihnp4!sabre! --- bmcg!asgb!jimt
(303) 530-3905				hao!asgb!jimt
Technical Details
Message-ID: <715@asgb.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!panda!talcott!harvard!seismo!hao!asgb!jimt

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 asgb.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!panda!talcott!harvard!seismo!hao!asgb!jimt
From: jimt@asgb.UUCP (Jim Tollefson)
Newsgroups: net.games.hack
Subject: Bug in hack's gethungry routine.
Message-ID: <715@asgb.UUCP>
Date: Wed, 12-Jun-85 19:09:53 EDT
Article-I.D.: asgb.715
Posted: Wed Jun 12 19:09:53 1985
Date-Received: Fri, 14-Jun-85 05:16:08 EDT
Reply-To: jimt@asgb.UUCP (Jim Tollefson)
Organization: Burroughs Corp. ASG, Boulder Colo.
Lines: 37