mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
HK: skip for loop (#2390)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from ..generic.Rules import set_rule, add_rule
|
||||
from BaseClasses import MultiWorld
|
||||
from ..AutoWorld import World
|
||||
from .GeneratedRules import set_generated_rules
|
||||
from typing import NamedTuple
|
||||
@@ -39,12 +38,10 @@ def hk_set_rule(hk_world: World, location: str, rule):
|
||||
|
||||
def set_rules(hk_world: World):
|
||||
player = hk_world.player
|
||||
world = hk_world.multiworld
|
||||
set_generated_rules(hk_world, hk_set_rule)
|
||||
|
||||
# Shop costs
|
||||
for region in world.get_regions(player):
|
||||
for location in region.locations:
|
||||
for location in hk_world.multiworld.get_locations(player):
|
||||
if location.costs:
|
||||
for term, amount in location.costs.items():
|
||||
if term == "GEO": # No geo logic!
|
||||
|
||||
Reference in New Issue
Block a user