![]() |
#11 |
Rookie
Join Date: Nov 2010
Posts: 24
![]() |
Ha!! Last Wed, 09/16/2016 I found 32,767 from a Cave troll drop no less.
I had already moved from south to north of where I'm standing to kill the Cave troll, therefore, the floor behind me, to the south was empty. When the troll died, Adamantite dropped south of me. It would have been nice earlier in the game, but it helped out none the less... bja |
![]() |
![]() |
![]() |
#12 |
Prophet
Join Date: Apr 2008
Posts: 2,924
![]() |
This really sounds like a bug, probably an integer underflow (trying to generate negative gold?)
__________________
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! |
![]() |
![]() |
![]() |
#13 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,677
Donated: $40
![]() |
No, it is not a bug. Gold is u16b not s16b. There is a tiny chance of getting a maximum drop
|
![]() |
![]() |
![]() |
#14 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,351
Donated: $60
![]() ![]() |
OK, I've decided this is probably not a bug. Calculation is:
Code:
Dungeon level is L Average drop is A = (18 * L)/10 + 18 Pick a random value V where A - L - 10 <= V <= A + L + 10 Repeat 1 in a 100 times, if we haven't hit the maximum, multiply by 10 until it fails If no selling, multiply by the smaller of 5 and L Reduce to the max if necessary As for seeing exactly 32000 - round numbers are more likely for large values because you're multiplying by 5 and some 10s.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#15 | |
Prophet
Join Date: Dec 2009
Posts: 9,024
![]() |
Quote:
What d'you say to making cash drops be unsigned so the cap is higher? ![]() |
|
![]() |
![]() |
![]() |
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 |