Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!orchid!clyde!rutgers!husc6!uwvax!oddjob!mimsy!aplcen!jhunix!ins_ajas From: ins_ajas@jhunix.UUCP Newsgroups: rec.games.hack,comp.sources.d Subject: Re: Hack bug (dog dies eating), and more! Message-ID: <4710@jhunix.UUCP> Date: Tue, 14-Apr-87 21:36:56 EST Article-I.D.: jhunix.4710 Posted: Tue Apr 14 21:36:56 1987 Date-Received: Fri, 17-Apr-87 05:13:18 EST References: <1216@svax.cs.cornell.edu> <4707@jhunix.UUCP> Reply-To: ins_ajas@jhunix.UUCP (Ken Arromdee) Organization: TARDIS Repairs, Inc. Lines: 20 Xref: utgpu rec.games.hack:395 comp.sources.d:574 > if (mhp > hpd && mtmp->mhp < hpn) mtmp->mhp = 127; >/* Not totally foolproof. A 2HD monster with 80 HP that changes into a 6HD > monster that really should have 240 and actually should have 127, the > maximum possible, will wind up having 113. */ I goofed here... the monster would actually have -16 HP, which this statement would catch and change to 127. A better example would be a 2HD monster with 80 HP that changes to an 8HD monster which "should" have 320 (which cannot be represented in a signed char), should have 127, and will actually end up with 64. -- "An eclipse of the Earth occurs when you put your hands over your eyes." Kenneth Arromdee BITNET: G46I4701@JHUVM, INS_AKAA@JHUVMS, INS_AKAA@JHUNIX ARPA: ins_akaa%jhunix@hopkins.ARPA UUCP: {allegra!hopkins, seismo!umcp-cs, ihnp4!whuxcc} !jhunix!ins_akaa Copyright 1987 by Ken Arromdee. Distribution of this article by electronic means constitutes permission for its recipients to distribute it likewise. (The NSA, CIA, and FBI conspire to smuggle Reagan drugs via Iran and Nicaragua.)