Update progression balancing algorithm (#300)

* New progression balancing algo: computes based on percentage of locations available rather than absolute number of locations
This commit is contained in:
espeon65536
2022-03-12 15:05:03 -06:00
committed by GitHub
parent 3ce5d14210
commit 15e0763ed5
4 changed files with 45 additions and 8 deletions

View File

@@ -36,6 +36,8 @@ class OOTItem(Item):
self.trap = name == 'Ice Trap'
if force_not_advancement:
self.never_exclude = True
if name == 'Gold Skulltula Token':
self.skip_in_prog_balancing = True
# The playthrough calculation calls a function that uses "sweep_for_events(key_only=True)"
# This checks if the item it's looking for is a small key, using the small key property.

View File

@@ -41,6 +41,8 @@ class SM64World(World):
def create_item(self, name: str) -> Item:
item_id = item_table[name]
item = SM64Item(name, name != "1Up Mushroom", item_id, self.player)
if name == "Power Star":
item.skip_in_prog_balancing = True
return item
def generate_basic(self):