Thread View: net.games.hack
1 messages
1 total messages
Started by Jim Tollefson
Wed, 12 Jun 1985 23:09
Bug in hack's gethungry routine.
Author: Jim Tollefson
Date: Wed, 12 Jun 1985 23:09
Date: Wed, 12 Jun 1985 23:09
37 lines
1711 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads