[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.
This commit is contained in:
t3hf1gm3nt 2023-03-30 09:29:06 -04:00 committed by GitHub
parent f3dad894ec
commit 4ff282a384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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),