Update worlds/ahit/Items.py

Co-authored-by: Aaron Wagener <[email protected]>
This commit is contained in:
CookieCatandAaron Wagener authored and GitHub committed 2024-05-13 14:11:22 -04:00
1 parent 8e80b9c94e
commit ecf6917019
1 file changed
+3 -2
+3 -2
View File
@@ -94,8 +94,9 @@ def calculate_yarn_costs(world: "HatInTimeWorld"):
world.options.YarnAvailable.value = max_cost
available_yarn = max_cost
if max_cost + world.options.MinExtraYarn.value > available_yarn:
world.options.YarnAvailable.value += (max_cost + world.options.MinExtraYarn.value) - available_yarn
extra_yarn = max_cost + world.options.MinExtraYarn - available_yarn
if extra_yarn > 0:
world.options.YarnAvailable.value += extra_yarn
def item_dlc_enabled(world: "HatInTimeWorld", name: str) -> bool: