From 4ff282a384be64f00bb1e6a308d01491e1cbeeeb Mon Sep 17 00:00:00 2001 From: t3hf1gm3nt <59876300+t3hf1gm3nt@users.noreply.github.com> Date: Thu, 30 Mar 2023 09:29:06 -0400 Subject: [PATCH] [TLOZ] Pols Voice Logic Fix (#1630) * TLOZ: Pols Voice Logic Fix Was informed that Pols Voice require certain weapons to kill that might not be guaranteed by the starting weapon. This is the only regular enemy in the game that cannot be killed by either any of the starting weapons or bombs which can be bought, so adding this rule should prevent any issues. --- worlds/tloz/Rules.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/worlds/tloz/Rules.py b/worlds/tloz/Rules.py index c73ea470..1e66e5a8 100644 --- a/worlds/tloz/Rules.py +++ b/worlds/tloz/Rules.py @@ -33,9 +33,11 @@ def set_rules(tloz_world: "TLoZWorld"): (state.has("Blue Ring", player) and state.has("Heart Container", player, int(hearts / 2))) or (state.has("Red Ring", player) and - state.has("Heart Container", player, int(hearts / 4))) + state.has("Heart Container", player, int(hearts / 4)))) + if "Pols Voice" in location.name: # This enemy needs specific weapons + add_rule(world.get_location(location.name, player), + lambda state: state.has_group("swords", player) or state.has("Bow", player)) - ) # No requiring anything in a shop until we can farm for money for location in shop_locations: add_rule(world.get_location(location, player),