Part name = "SP_NOVA_BOMB" description = "SP_NOVA_BOMB_DESC" class = General mountableSlotTypes = External buildcost = 5000 * [[FLEET_UPKEEP_MULTIPLICATOR]] * [[SHIP_PART_COST_MULTIPLIER]] buildtime = 12 tags = [ "PEDIA_PC_GENERAL" ] location = All effectsgroups = [ EffectsGroup scope = And [ Object id = Source.SystemID System ] activation = Number low = 1 condition = And [ Building name = "BLD_NOVA_BOMB_ACTIVATOR" OwnedBy empire = Source.Owner WithinStarlaneJumps jumps = 1 condition = Source ] stackinggroup = "NOVA_BOMB_ACTIVATION" effects = [ SetStarType type = NoStar AddSpecial name = "SUPERNOVA_SPECIAL" GenerateSitRepMessage message = "SITREP_NOVA_DETECTED" label = "SITREP_NOVA_DETECTED_LABEL" icon = "stars/old_stars/purple2.png" parameters = [ tag = "system" data = Source.SystemID ] affiliation = CanSee condition = Source ] EffectsGroup scope = ContainedBy And [ Object id = Source.SystemID System ] activation = Or [ Number low = 1 condition = And [ Building name = "BLD_NOVA_BOMB_ACTIVATOR" OwnedBy empire = Source.Owner WithinStarlaneJumps jumps = 1 condition = Source ] ContainedBy And [ System Contains HasSpecial name = "NOVA_BOMB_ACTIVATOR_SPECIAL" ] ] effects = Destroy ] icon = "icons/ship_parts/nova-bomb.png" #include "/scripting/macros/upkeep.macros"