Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   AAR (http://angband.oook.cz/forum/forumdisplay.php?f=2)
-   -   Holy RNGods (http://angband.oook.cz/forum/showthread.php?t=8221)

Estragon January 17, 2017 01:26

Holy RNGods
 
1 Attachment(s)
Started a new vanilla character, and found Wrath of God at 50' ...

what a shame that I'm playing a mage :rolleyes:

Pete Mack January 17, 2017 02:50

Doubtless without selling enabled either.

Estragon January 17, 2017 15:41

Quote:

Originally Posted by Pete Mack (Post 117372)
Doubtless without selling enabled either.

You guessed it...

On another note, I didn't realise it was possible to find items so far out of depth outside of vaults. Any idea what the generation chance was?

Quote:

name:[Wrath of God]
type:prayer book
graphics:?:g
properties:80:30:90000
alloc:10:90 to 100
combat:0:1d1:0:0:0
flags:IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD | GOOD

Derakon January 17, 2017 15:48

Quote:

Originally Posted by Estragon (Post 117383)
On another note, I didn't realise it was possible to find items so far out of depth outside of vaults. Any idea what the generation chance was?

Low. :) In theory any item can be generated anywhere, with the odd exception that artifacts are not allowed in town. But in order for an item to be generated above its native depth, it has to pass one "out of depth" check for each dungeon level separating the generation depth from the item's native depth. Wrath of God is native to dlvl90, so that's 89 OoD checks that it'd have to pass. I don't recall how difficult OoD checks are, but if they were 50/50, then the odds would be about 1 in 600 yotillion. At least, I think that's how you spell the 10^24 prefix when used as a number...I admit it's never come up for me before. Chrome's spellcheck certainly doesn't recognize it as a word!

Anyway, that'd be implausibly rare, so I'm guessing the odds aren't that bad, or there's a software bug at work here. If the OoD check passes 75% of the time, then your odds are about 1 in 131 billion. That's much more plausible! ;)

Nick January 17, 2017 20:07

Quote:

Originally Posted by Derakon (Post 117384)
Low. :) In theory any item can be generated anywhere, with the odd exception that artifacts are not allowed in town. But in order for an item to be generated above its native depth, it has to pass one "out of depth" check for each dungeon level separating the generation depth from the item's native depth. Wrath of God is native to dlvl90, so that's 89 OoD checks that it'd have to pass. I don't recall how difficult OoD checks are, but if they were 50/50, then the odds would be about 1 in 600 yotillion. At least, I think that's how you spell the 10^24 prefix when used as a number...I admit it's never come up for me before. Chrome's spellcheck certainly doesn't recognize it as a word!

Anyway, that'd be implausibly rare, so I'm guessing the odds aren't that bad, or there's a software bug at work here. If the OoD check passes 75% of the time, then your odds are about 1 in 131 billion. That's much more plausible! ;)

In fact, the current OOD calculations is
Code:

        /* Occasional level boost */
        if ((level > 0) && one_in_(z_info->great_obj))
                /* What a bizarre calculation */
                level = 1 + (level * z_info->max_obj_depth / randint1(z_info->max_obj_depth));

where the great_obj constant is 20 and max_obj_depth is 100. So for level 1, you need to pass the first 1 in 20 roll, then get a 1 from the 1-100 choice - so it's only 1 in 2000 to be looking at objects from the whole dungeon. At that point, you have to multiply by the rarity of Wrath of God compared to every other item - which is 10 in the sum of all the other item rarities, maybe 1 in 500. So overall, something like 1 in a million.

Or in Derakon-language, one in a megillion :)

Derakon January 17, 2017 20:36

Wait, really? The out-of-depth checks don't require repeated checks per level of OoD-ness? How bizarre.

Thanks for the code posting. And what name would you use to represent 1000000000000000000000000? :)

Nick January 17, 2017 20:59

Quote:

Originally Posted by Derakon (Post 117388)
And what name would you use to represent 1000000000000000000000000? :)

That would be one septillion (or one quadrillion in the now more or less abandoned British system). The sept in septillion is for seven; in the American system, that means (7 + 1) * 3 zeroes, in the British it means 7 * 6 zeroes.

Million - 1 000 000
Billion - 1 000 000 000 (or 1 000 000 000 000)
Trillion - 1 000 000 000 000 (or 1 000 000 000 000 000 000)
Quadrillion - 1 000 000 000 000 000 (or 1 000 000 000 000 000 000 000 000)
etc

Derakon January 17, 2017 21:00

Ah yes, you're right of course. In my defense, the air quality's not great here (SF Bay Area) today, which tends to halve my brain's clock rate.

Nick January 17, 2017 21:04

Quote:

Originally Posted by Derakon (Post 117392)
Ah yes, you're right of course. In my defense, the air quality's not great here (SF Bay Area) today, which tends to halve my brain's clock rate.

Right, so it's only like one trilliHertz :D

Derakon January 17, 2017 21:09

Quote:

Originally Posted by Nick (Post 117394)
Right, so it's only like one trilliHertz :D

Maybe if the air were clear I'd find that joke funny. :p


All times are GMT +1. The time now is 16:46.

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