Site Tools


key_item_randomization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
key_item_randomization [2024/07/14 02:29] – Updated for 4.6.0 wylemkey_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 ''Kmiab'' is set,   * If ''Kmiab'' is set,
-    * For each dungeon containing MIAB (monster-in-a-box) chests,+    - Calculate the number of MIABs from each dungeon to add to the key item pool:
       * 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.
key_item_randomization.1720924159.txt.gz · Last modified: 2024/07/14 02:29 by wylem