From 0f12c20f7eeed5daffd9ef4559e66202d7e64c51 Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Wed, 3 Jul 2024 22:20:58 +0200 Subject: [PATCH] Neat --- worlds/witness/rules.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/worlds/witness/rules.py b/worlds/witness/rules.py index 99a075819092..74c52e96d110 100644 --- a/worlds/witness/rules.py +++ b/worlds/witness/rules.py @@ -19,10 +19,9 @@ SimpleItemRepresentation = Tuple[str, int] -def _can_do_panel_hunt(world: "WitnessWorld") -> CollectionRule: +def _can_do_panel_hunt(world: "WitnessWorld") -> SimpleItemRepresentation: required = world.panel_hunt_required_count - player = world.player - return lambda state: state.has("+1 Panel Hunt", player, required) + return "+1 Panel Hunt", required def _has_lasers(amount: int, world: "WitnessWorld", redirect_required: bool) -> CollectionRule: