Damage

Posted by Zeno on Mon 28 Jul 2003 11:05 PM — 3 posts, 8,746 views.

USA #0
I'm having a problem with damage.
Xio(30000 hp) vs. Zeno(99999 hp)

What Xio see's:
HP:[30000/30000]
Zeno wounds you! [27]
Everything begins to fade black.
HP:[1/30000]

27 damage killed him? I don't get this.
Australia Forum Administrator #1
If the HP calculation was a short integer - which can go up to 32767, then maybe it went negative.

27 wouldn't do it, but it isn't far off. eg.

32000 + 800 = -32736 = dead

USA #2
I've changed HP to int a while ago. So max is around 2 billion.