Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old February 6, 2015, 19:17   #1
Bogatyr
Knight
 
Join Date: Feb 2014
Posts: 507
Bogatyr is on a distinguished road
Largest single $?

GnMageIV just picked up a 17,000 gold piece pile of adamantite dropped by a master rogue on dlev 40 (no sell of course). I did a double take on the message log, too many zeroes it seemed!
Bogatyr is offline   Reply With Quote
Old February 6, 2015, 20:19   #2
Bogatyr
Knight
 
Join Date: Feb 2014
Posts: 507
Bogatyr is on a distinguished road
Quote:
Originally Posted by Bogatyr View Post
GnMageIV just picked up a 17,000 gold piece pile of adamantite dropped by a master rogue on dlev 40 (no sell of course). I did a double take on the message log, too many zeroes it seemed!
Hmm, I suppose it's possible he stole from me earlier...dangit, thought I'd hit the mother lode....
Bogatyr is offline   Reply With Quote
Old February 7, 2015, 00:03   #3
hjklyubn
Rookie
 
Join Date: Jan 2014
Posts: 19
hjklyubn is on a distinguished road
I picked up a pile of 32767 adamantite coins after killing a whole room of creeping treasures or hydras or something, so I'm pretty sure that is the largest

This was also with no-selling, and I guess that treasures of the same type on the same square must merge. Largest single gold drop is another matter.
hjklyubn is offline   Reply With Quote
Old February 7, 2015, 01:06   #4
kaypy
Swordsman
 
Join Date: May 2009
Posts: 294
kaypy is on a distinguished road
$

That's as big as it gets in the font dropdown, and even if you enter a larger size manually the system truncates it.

(Sorry, could not resist)

Digging through the code a bit, part of the gold generation is to repeatedly increase the drop size until a die roll fails (99% likely) or the gold size hits MAX_SHORT. So with exactly the right rolls you could at any time receive 32767 (the largest allowable value) gold from a single drop.
kaypy is offline   Reply With Quote
Old February 7, 2015, 01:44   #5
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,022
Derakon is on a distinguished road
Quote:
Originally Posted by hjklyubn View Post
I picked up a pile of 32767 adamantite coins after killing a whole room of creeping treasures or hydras or something, so I'm pretty sure that is the largest

This was also with no-selling, and I guess that treasures of the same type on the same square must merge. Largest single gold drop is another matter.
The game does (or at least used to) have code to consolidate similar items together, so that e.g. if there were two Scrolls of Teleport on the floor in the same general vicinity, they'd get combined into a single stack of 2 scrolls. I'd imagine similar logic applied to money.
Derakon is offline   Reply With Quote
Old July 24, 2015, 20:29   #6
Bogatyr
Knight
 
Join Date: Feb 2014
Posts: 507
Bogatyr is on a distinguished road
Quote:
Originally Posted by hjklyubn View Post
I picked up a pile of 32767 adamantite coins after killing a whole room of creeping treasures or hydras or something, so I'm pretty sure that is the largest

This was also with no-selling, and I guess that treasures of the same type on the same square must merge. Largest single gold drop is another matter.
Just got a 32767 adamantite pile from a mature green dragon on dlev 55 (3.5.1).....woohoo!
Bogatyr is offline   Reply With Quote
Old July 24, 2015, 20:32   #7
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,391
AnonymousHero is on a distinguished road
Seeing as people are hitting the 16-bit limit. How about expanding the "count" field to 32-bit?
AnonymousHero is offline   Reply With Quote
Old July 24, 2015, 20:37   #8
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,022
Derakon is on a distinguished road
Quote:
Originally Posted by AnonymousHero View Post
Seeing as people are hitting the 16-bit limit. How about expanding the "count" field to 32-bit?
I won't be satisfied until I start the game, kill a town drunk, and get so much money that it overflows the "player's current gold total" counter. Gimme negative gold!
Derakon is offline   Reply With Quote
Old July 24, 2015, 20:59   #9
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,391
AnonymousHero is on a distinguished road
Quote:
Originally Posted by Derakon View Post
I won't be satisfied until I start the game, kill a town drunk, and get so much money that it overflows the "player's current gold total" counter. Gimme negative gold!
Of course, given the infamous error-proneness of C's implicit conversions, I would guess that would probably lead to 2^32-1 =~ 4 billion gold. Would still be awesome... even though there would be almost nothing to spend it on.
AnonymousHero is offline   Reply With Quote
Old July 24, 2015, 21:01   #10
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,391
AnonymousHero is on a distinguished road
Quote:
Originally Posted by kaypy View Post
$

That's as big as it gets in the font dropdown, and even if you enter a larger size manually the system truncates it.
My name is AnonymousHero and I approve of this joke.
AnonymousHero is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making Single Slay weapons worthwhile / interesting Mark Vanilla 9 September 23, 2014 21:18
Single-species Slays Mark Vanilla 3 June 18, 2014 06:23
Morgoth doing more than 600 damage in a single round bron Vanilla 21 March 12, 2011 19:16
Feature request: single-point restoration potion Susramanian Vanilla 2 February 28, 2010 06:10
Down to a single compiler warning. PaulBlay Development 9 May 20, 2009 17:20


All times are GMT +1. The time now is 06:27.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.