[net.games.hack] Bug in hack's gethungry routine.

jimt@asgb.UUCP (Jim Tollefson) (06/13/85)

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