Actually require military science pack for rocket silo on military or higher.
This commit is contained in:
parent
34af785e87
commit
cd3f0eabfb
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue