![]() |
#1 |
Swordsman
Join Date: Jul 2015
Location: Seattle, WA
Posts: 298
![]() |
maximum treasure amount?
I've seen this twice now in my several years of Angband dungeoning: "You have found 32767 gold pieces worth of adamantite."
I'm assuming that 32767 is the maximum amount of treasure you can find at a time? That would make sense if the value is represented by a 16 bit integer. What are the odds of finding this amount of treasure? |
![]() |
![]() |
![]() |
#2 | |
Prophet
Join Date: Apr 2008
Posts: 2,924
![]() |
Quote:
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant! |
|
![]() |
![]() |
![]() |
#3 |
Rookie
Join Date: Jul 2015
Posts: 14
![]() |
Ive seen this two times too - I´m pretty sure one of them was a drop from a baby dragon, and the other one just some random treasure on the floor - I think this might be an odd bug(?)
|
![]() |
![]() |
![]() |
#4 | |
Veteran
Join Date: Apr 2007
Posts: 1,947
Donated: $40
![]() |
Quote:
Code:
/* Cap gold at max short (or alternatively make pvals s32b) */ if (value > SHRT_MAX) value = SHRT_MAX;
__________________
takkaria whispers something about options. -more- |
|
![]() |
![]() |
![]() |
#5 |
Prophet
Join Date: Dec 2009
Posts: 9,024
![]() |
It's intentional to cap max drop size at 32767, but is it intentional to generate piles that size? Without being in a situation like a hydra pit where multiple piles get combined, that is.
I'm pretty sure gold drops can get "supercharged" potentially without limit, allowing unusually large gold drops from ordinary enemies, but unless the supercharging is really strongly exponential, you'd expect to see drop sizes in the 5k+, 10k+, and 20k+ range. Which you don't, really -- you just see normal-sized gold drops, and the exceptionally rare 32767 drop. I've seen exactly one of those, that I can recall, though I don't remember the context. |
![]() |
![]() |
![]() |
#6 |
Knight
Join Date: Sep 2013
Posts: 527
![]() |
I suspect that the adamantite multiplier boosts it to that level. I've gotten it a few times, and I'd be fairly sure it's adamantite each time.
|
![]() |
![]() |
![]() |
#7 | |
Veteran
Join Date: Apr 2007
Posts: 1,947
Donated: $40
![]() |
Quote:
__________________
takkaria whispers something about options. -more- |
|
![]() |
![]() |
![]() |
#8 |
Veteran
Join Date: Mar 2013
Location: Berkshire, UK
Posts: 1,213
![]() |
I'm pretty sure I've had exactly 32000 quite a few times. How does that work?
(Or am I going stark raving mad??) |
![]() |
![]() |
![]() |
#9 |
Prophet
Join Date: Dec 2009
Posts: 9,024
![]() |
If I recall correctly, the quantity of money determines the material used, not the other way around. In other words, the game decides to generate 583 money, then looks up the various ranges and determines that it should use "rubies" as the descriptor, say.
|
![]() |
![]() |
![]() |
#10 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,351
Donated: $60
![]() ![]() |
Yeah, that's right. I'll file this as a bug.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Amount of real time to win? | BlueFish | Vanilla | 1 | February 2, 2013 21:47 |
Setting a maximum stack value? | fruviad | Development | 12 | September 29, 2011 03:28 |
Birth amount of gold | Thraalbee | Vanilla | 2 | September 23, 2011 22:37 |
3.3.0 Treasure not displayed | Dranken | Vanilla | 4 | August 31, 2011 19:24 |
Max amount of spells? | steeg1234321 | Vanilla | 11 | April 4, 2008 14:28 |