[rec.games.misc] Omega bug

dgibbs@bnr-fos.UUCP (David Gibbs) (07/28/89)

I have found a small error in Omega, which is (I think) a bug, not designer
intent.  If a person with a high power (>21) and very chaotic (alignment
< -30)  he can end up being charged a large fee to enter the sorcerors
guild, and this will go up if his power increases.  I had this occur
to a character of mine who had to paw several thousand gold to join.
(greater than 10000) 

The bug is caused by two lines in oguild2.c , 477 and 478

at the top of the function fee is initialized to 3000.

477: fee += Player.alignment * 100
478: fee = (int)(fee*(1 + (12-Player.Pow)/9.0))

if alignment is, say -300 (Servant of Chaos, not hard to get)
and Pow is 25, this can be very costly.

probably the easiest way to fix this is to change line 477 to:

     fee = max( 0, (fee + Player.alignment*100));

-David Gibbs

dgibbs@bnr-fos.UUCP (David Gibbs) (07/28/89)

Has anyone noticed there immunities going away?  I have and it was very
frustrating.  I did some playing around (checking a running version)
of my game with dbx and found that my character had a NEGATIVE value
for several of his immunities when not wearing any items, he then put
on the item to give immunities to that, and got boosted to zero.  The 
problem with this, was that I never noticed exactly when it happened,
just that I would go back to the oracle, and suddenly some of my 
immunities would be gone.  
 
  Well, I have finally been able to reproduce this bug, and would like
to warn people of how to avoid it.  When removing things like cloaks,
rings, armor, weapons, etc, do not, DO NOT use the 'p' command to 
put the object in your pack because, if you do and subsequently drop
the item without first using it in the appropriate slot first, you
will have effectively an additional minus in that area.  That is,
for some reason it removes the object twice.  I would guess that
somehow the 'p' doesn't properly unset the in use flag.  I am going
to try and track this down in the code and fix it, but until then
I am warning you on how to avoid this problem. 

(Look for future postings)

-David Gibbs
(dgibbs@bnr-fos.UUCP or
 ...!uunet!watmath!neat.ai.toronto.edu!utgpu!bnr-vpa!bnr-fos!dgibbs )