mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Rules: allow triforce pieces to be in other players world
This commit is contained in:
5
Rules.py
5
Rules.py
@@ -106,11 +106,6 @@ def item_name(state, location, player):
|
|||||||
return (location.item.name, location.item.player)
|
return (location.item.name, location.item.player)
|
||||||
|
|
||||||
def global_rules(world, player):
|
def global_rules(world, player):
|
||||||
if world.goal[player] == 'triforcehunt':
|
|
||||||
for location in world.get_locations():
|
|
||||||
if location.player != player:
|
|
||||||
forbid_item(location, 'Triforce Piece', player)
|
|
||||||
|
|
||||||
# ganon can only carry triforce
|
# ganon can only carry triforce
|
||||||
add_item_rule(world.get_location('Ganon', player), lambda item: item.name == 'Triforce' and item.player == player)
|
add_item_rule(world.get_location('Ganon', player), lambda item: item.name == 'Triforce' and item.player == player)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user