This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
key_item_randomization [2024/07/14 02:29] – Updated for 4.6.0 wylem | key_item_randomization [2024/09/25 05:36] (current) – [Key item distribution] Updated for accuracy- thanks ScytheMarshall and Antidale wylem | ||
---|---|---|---|
Line 90: | Line 90: | ||
* Reserve the remaining unselected summon/moon slots. | * Reserve the remaining unselected summon/moon slots. | ||
* If '' | * If '' | ||
- | | + | |
* Generate a random number N from 0...1. | * Generate a random number N from 0...1. | ||
* Determine the greatest integer K, where N < 1/(2^K). | * Determine the greatest integer K, where N < 1/(2^K). | ||
+ | - For each dungeon containing MIAB (monster-in-a-box) chests, | ||
* Select (K + 2) random MIAB chests in the dungeon and add them to the pool (or all of them, if there are fewer than K + 2). | * Select (K + 2) random MIAB chests in the dungeon and add them to the pool (or all of them, if there are fewer than K + 2). | ||
+ | - Remove 3 MIABs from the pool, chosen at random. | ||
* Reserve the remaining unused MIAB chests. | * Reserve the remaining unused MIAB chests. | ||
* Randomly assign key items among the slots in the pool. | * Randomly assign key items among the slots in the pool. |