TUNIC: Update plando connection option call to use options API #3695

This commit is contained in:
Scipio Wright 2024-07-27 17:17:59 -04:00 committed by GitHub
parent 35ed0d4e19
commit e38f5d0a61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ class TunicWorld(World):
cls.seed_groups[group] = SeedGroup(logic_rules=tunic.options.logic_rules.value, cls.seed_groups[group] = SeedGroup(logic_rules=tunic.options.logic_rules.value,
laurels_at_10_fairies=tunic.options.laurels_location == 3, laurels_at_10_fairies=tunic.options.laurels_location == 3,
fixed_shop=bool(tunic.options.fixed_shop), fixed_shop=bool(tunic.options.fixed_shop),
plando=multiworld.plando_connections[tunic.player]) plando=tunic.options.plando_connections)
continue continue
# lower value is more restrictive # lower value is more restrictive
@ -134,9 +134,9 @@ class TunicWorld(World):
if tunic.options.fixed_shop: if tunic.options.fixed_shop:
cls.seed_groups[group]["fixed_shop"] = True cls.seed_groups[group]["fixed_shop"] = True
if multiworld.plando_connections[tunic.player]: if tunic.options.plando_connections:
# loop through the connections in the player's yaml # loop through the connections in the player's yaml
for cxn in multiworld.plando_connections[tunic.player]: for cxn in tunic.options.plando_connections:
new_cxn = True new_cxn = True
for group_cxn in cls.seed_groups[group]["plando"]: for group_cxn in cls.seed_groups[group]["plando"]:
# if neither entrance nor exit match anything in the group, add to group # if neither entrance nor exit match anything in the group, add to group