Dudley's dungeon
Wednesday, 14 September, 2005 |
by tracer |
You see here a
of healing.
---+---
|.....|
|..@..|
######-.....|
-------
Hp: 2147483647(21474
@ "Hmm, my hit points are the highest 32-bit integer -- I wonder what'll happen if I quaff this."
|
You feel better.
---+---
|.....|
|..@..|
######-.....|
-------
Hp: -2147483648(2147
@ "Uh oh ..."
|
-------------
/ REST IN \
/ PEACE \
/ \
| Dudley |
| killed by hit |
| point overdose |
| * * * |
/\\_/(\/(/\)\//\//|
|
http://dudley.nicolaas.net
|
|
http://dudley.nicolaas.net
Want to contribute? Write an email to dudley@nicolaas.net!
Powered by Nics
Rating
Average rating: Good Number of ratings: 13
Comments
Plague |
September 14, 2005 01:18
|
First comment: 31 January, 2005 |
102 comments written |
And that's why we don't have steroids in Nethack. |
Nameless |
September 14, 2005 02:37
|
First comment: 29 December, 2004 |
281 comments written |
You shouldn't be able to heal over max HP. If the was blessed it would be interesting to know what would actualy happen. |
Kernigh |
September 14, 2005 03:23
|
First comment: 6 April, 2005 |
349 comments written |
In mode, you can wish for -50 armor and rings of protection. When putting on the third such item, your AC goes from 110 to a negative number. |
Daverd |
September 14, 2005 04:22
|
First comment: 18 August, 2004 |
26 comments written |
Would've been funnier if I hadn't read yesterday's... =( |
Daverd |
September 14, 2005 04:25
|
First comment: 18 August, 2004 |
26 comments written |
Nameless: How do you know it wasn't blessed? |
Nameless |
September 14, 2005 06:17
|
First comment: 29 December, 2004 |
281 comments written |
Well... I didn't. It could be blessed and Dudley just might not know its BUC state. But I kind of figured that if it important for it to be blessed it would have said it was blessed rather than have the reader try and work it out. |
shel |
September 14, 2005 11:53
|
First comment: 19 August, 2005 |
107 comments written |
Sorry. :( |
tracer |
September 20, 2005 01:44
|
First comment: 22 June, 2005 |
32 comments written |
Actually, I was thinking of an ordinary (non-blessed) healing . Unless NetHack has changed since I played it on a regular basis, garden-variery healing potions will raise your max HP by 1 of you're already at or near max HP. (Nurses will also raise your max HP by 1 when they hit you -- but only with, what is it, a 1-in-20 chance or so?)
But that's not what I had in mind when I wrote this.
The time when I actually DID hack the save file to give me MAXINT hit points, I discovered something ... unexpected ... about the way healing works. The algorithm is something like this:
hitPoints = hitPoints + healingPoints;
if (hitPoints > maxHitPoints)
hitPoints = maxHitPoints;
The problem is, if hitPoints wraps back around to negative, (hitPoints > maxHitPoints) will of course be false! |
Fathead |
July 18, 2006 19:43
|
First comment: 1 April, 2006 |
1136 comments written |
Plague stole my comment!
Oh well. |
Grognor |
April 16, 2007 08:12
|
First comment: 4 April, 2007 |
1161 comments written |
Wow, Plague stole a comment a year before it ever even existed. THAT'S impressive. |
http://dudley.nicolaas.net
Want to contribute? Write an email to dudley@nicolaas.net!
Powered by Nics
|
|