From a0236b2d74044a1bfbbfd41807f2f125ea0d36e9 Mon Sep 17 00:00:00 2001 From: massimilianodelliubaldini <8584296+massimilianodelliubaldini@users.noreply.github.com> Date: Wed, 29 Apr 2026 15:18:21 -0400 Subject: [PATCH] Jak1: yamlless UT support (#6066) --- worlds/jakanddaxter/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/worlds/jakanddaxter/__init__.py b/worlds/jakanddaxter/__init__.py index 9a2cb30293..f51545aa57 100644 --- a/worlds/jakanddaxter/__init__.py +++ b/worlds/jakanddaxter/__init__.py @@ -232,6 +232,9 @@ class JakAndDaxterWorld(World): power_cell_thresholds_minus_one: list[int] trap_weights: tuple[list[str], list[int]] + # UT Yaml-less flag + ut_can_gen_without_yaml = True + # Store these dictionaries for speed improvements. level_to_regions: dict[str, list[JakAndDaxterRegion]] # Contains all levels and regions. level_to_orb_regions: dict[str, list[JakAndDaxterRegion]] # Contains only regions which contain orbs. @@ -243,6 +246,15 @@ class JakAndDaxterWorld(World): self.level_to_regions = defaultdict(list) self.level_to_orb_regions = defaultdict(list) + # Implement Universal Tracker support - reset all options to those from UT's gen if applicable. + if hasattr(self.multiworld, "re_gen_passthrough"): + if jak1_name in self.multiworld.re_gen_passthrough: + for key, val in self.multiworld.re_gen_passthrough[jak1_name].items(): + try: + getattr(self.options, key).value = val + except AttributeError: + pass + # Cache the power cell threshold values for quicker reference. self.power_cell_thresholds = [ self.options.fire_canyon_cell_count.value,