From 514d182d157dff0abb59b6b66a0cd5fa0b54d99f Mon Sep 17 00:00:00 2001 From: dyceron <38679103+dyceron@users.noreply.github.com> Date: Fri, 15 Sep 2023 00:43:12 -0400 Subject: [PATCH] Slight refactor for Item Tank if statement --- open_samus_returns_rando/pickup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open_samus_returns_rando/pickup.py b/open_samus_returns_rando/pickup.py index 13b8c0b..2ec39ae 100644 --- a/open_samus_returns_rando/pickup.py +++ b/open_samus_returns_rando/pickup.py @@ -65,7 +65,7 @@ def patch_single_item_pickup(self, bmsad: dict) -> dict: action_sets["animation_id"] = 150 action_sets["action"]["bcskla"] = "actors/items/itemtank/animations/relax.bcskla" - elif item_id == "ITEM_WEAPON_MISSILE_MAX" or item_id == "ITEM_RANDO_LOCKED_SUPERS" or item_id == "ITEM_RANDO_LOCKED_PBS": + elif item_id in {"ITEM_WEAPON_MISSILE_MAX", "ITEM_RANDO_LOCKED_SUPERS", "ITEM_RANDO_LOCKED_PBS"}: action_sets["animation_id"] = 150 action_sets["action"]["bcskla"] = "actors/items/itemtank/animations/relax.bcskla"