mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-05-01 16:43:30 -07:00
Jak1: yamlless UT support (#6066)
This commit is contained in:
committed by
GitHub
parent
af39d7926a
commit
a0236b2d74
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user