From cd3f0eabfb5a515401d13e51eef7232dfbd293a2 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Fri, 12 Nov 2021 08:31:46 -0800 Subject: [PATCH] Actually require military science pack for rocket silo on military or higher. --- worlds/factorio/Technologies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worlds/factorio/Technologies.py b/worlds/factorio/Technologies.py index 04736a2e..fbf283d3 100644 --- a/worlds/factorio/Technologies.py +++ b/worlds/factorio/Technologies.py @@ -85,7 +85,8 @@ class CustomTechnology(Technology): def __init__(self, origin: Technology, world, allowed_packs: Set[str], player: int): ingredients = origin.ingredients & allowed_packs military_allowed = "military-science-pack" in allowed_packs \ - and (ingredients & {"chemical-science-pack", "production-science-pack", "utility-science-pack"}) + and ((ingredients & {"chemical-science-pack", "production-science-pack", "utility-science-pack"}) + or origin.name == "rocket-silo") self.player = player if origin.name not in world.worlds[player].static_nodes: if military_allowed: