Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Bugs : Attack goes negative when there are 28 brains (ITT: Signed integers provide comedy)
New Topic New Poll Post Reply
Poster Message
kieranmillar
Level: Smitemaster
Rank Points: 2670
Registered: 07-11-2014
IP: Logged
icon Attack goes negative when there are 28 brains (+1)  
Step 1: Put exactly 28 brains in a room.

Step 2: All these brains now do zero damage! ... Until you kill one, when they go back to dealing billions, as one would expect.

Fun fact I learned: When expected damage hits the billions the expected damage calculator gives up and just writes "Death". :lol
03-07-2015 at 10:21 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Chaco
Level: Smitemaster
Rank Points: 3626
Registered: 10-06-2005
IP: Logged
icon Re: Attack goes negative when there are 28 brains (0)  
So, is this a feature request for DROD: RPG to use arbitrary-precision integers ("BigNums")? :)

____________________________
Quick links to my stuff (in case you forgot where it was):
Click here to view the secret text

03-07-2015 at 10:23 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5059
Registered: 02-04-2003
IP: Logged
icon Re: Attack goes negative when there are 28 brains (0)  
Heh heh...well, maybe someday...

The brain attack doubling routine was allowing ATK values to go beyond MAXINT, which it wasn't supposed to do. Fixed in rev 110. Now ATK values will properly get capped at the max 32-bit signed integer value.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
01-15-2016 at 04:52 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2670
Registered: 07-11-2014
IP: Logged
icon Re: Attack goes negative when there are 28 brains (+1)  
Can confirm that the attack stat is capped after planting 28 brains in the room in 1.2.3.116 :thumbsup
01-17-2016 at 11:30 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Bugs : Attack goes negative when there are 28 brains (ITT: Signed integers provide comedy)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.