LADX: Stabilize Item Pool Option (#3935)

Co-authored-by: Scipio Wright <scipiowright@gmail.com>
Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
This commit is contained in:
threeandthreee
2025-01-15 21:42:19 -05:00
committed by GitHub
parent b7621a0923
commit 902d03d447
3 changed files with 23 additions and 5 deletions

View File

@@ -68,10 +68,12 @@ DEFAULT_ITEM_POOL = {
class ItemPool:
def __init__(self, logic, settings, rnd):
def __init__(self, logic, settings, rnd, stabilize_item_pool: bool):
self.__pool = {}
self.__setup(logic, settings)
self.__randomizeRupees(settings, rnd)
if not stabilize_item_pool:
self.__randomizeRupees(settings, rnd)
def add(self, item, count=1):
self.__pool[item] = self.__pool.get(item, 0) + count