Tech
    name = "SHP_ROOT_AGGRESSION"
    description = "SHP_ROOT_AGGRESSION_DESC"
    short_description = "SHIP_WEAPON_UNLOCK_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 1
    researchturns = 1
    tags = [ "PEDIA_SHIP_WEAPONS_CATEGORY" ]
    unlock = [
        Item type = ShipPart name = "SR_WEAPON_1_1"
        Item type = ShipPart name = "GT_TROOP_POD"
        Item type = ShipPart name = "SR_WEAPON_0_1"
    ]
    effectsgroups = [
        [[WEAPON_BASE_EFFECTS(SR_WEAPON_0_1)]]
        [[WEAPON_BASE_EFFECTS(SR_WEAPON_1_1)]]
    ]
    graphic = "icons/tech/planetary_colonialism.png"

Tech
    name = "SHP_BOMBARD"
    description = "SHP_BOMBARD_DESC"
    short_description = "SHIP_WEAPON_UNLOCK_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 100 * [[TECH_COST_MULTIPLIER]]
    researchturns = 5
    tags = [ "PEDIA_BOMBARD_WEAPON_TECHS" ]
    prerequisites = "SHP_ROOT_AGGRESSION"
    graphic = ""

Tech
    name = "SHP_WEAPON_1_2"
    description = "SHP_WEAPON_1_2_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 4 * [[TECH_COST_MULTIPLIER]]
    researchturns = 2
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_ROOT_AGGRESSION"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_1_1, 1)]]
    graphic = "icons/ship_parts/mass-driver-2.png"

Tech
    name = "SHP_WEAPON_1_3"
    description = "SHP_WEAPON_1_3_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 6 * [[TECH_COST_MULTIPLIER]]
    researchturns = 2
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_1_2"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_1_1, 1)]]
    graphic = "icons/ship_parts/mass-driver-3.png"

Tech
    name = "SHP_WEAPON_1_4"
    description = "SHP_WEAPON_1_4_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 10 * [[TECH_COST_MULTIPLIER]]
    researchturns = 2
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_1_3"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_1_1, 1)]]
    graphic = "icons/ship_parts/mass-driver-4.png"

Tech
    name = "SHP_WEAPON_2_1"
    description = "SHP_WEAPON_2_1_DESC"
    short_description = "SHIP_WEAPON_UNLOCK_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 30 * [[TECH_COST_MULTIPLIER]]
    researchturns = 8
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_ROOT_AGGRESSION"
    unlock = Item type = ShipPart name = "SR_WEAPON_2_1"
    effectsgroups =
        [[WEAPON_BASE_EFFECTS(SR_WEAPON_2_1)]]
    graphic = "icons/ship_parts/laser-1.png"

Tech
    name = "SHP_WEAPON_2_2"
    description = "SHP_WEAPON_2_2_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 20 * [[TECH_COST_MULTIPLIER]]
    researchturns = 2
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_2_1"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_2_1, 2)]]
    graphic = "icons/ship_parts/laser-2.png"

Tech
    name = "SHP_WEAPON_2_3"
    description = "SHP_WEAPON_2_3_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 30 * [[TECH_COST_MULTIPLIER]]
    researchturns = 2
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_2_2"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_2_1, 2)]]
    graphic = "icons/ship_parts/laser-3.png"

Tech
    name = "SHP_WEAPON_2_4"
    description = "SHP_WEAPON_2_4_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 50 * [[TECH_COST_MULTIPLIER]]
    researchturns = 2
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_2_3"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_2_1, 2)]]
    graphic = "icons/ship_parts/laser-4.png"

Tech
    name = "SHP_WEAPON_3_1"
    description = "SHP_WEAPON_3_1_DESC"
    short_description = "SHIP_WEAPON_UNLOCK_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 150 * [[TECH_COST_MULTIPLIER]]
    researchturns = 8
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_2_1"
    unlock = Item type = ShipPart name = "SR_WEAPON_3_1"
    effectsgroups =
        [[WEAPON_BASE_EFFECTS(SR_WEAPON_3_1)]]
    graphic = "icons/ship_parts/plasma-1.png"

Tech
    name = "SHP_WEAPON_3_2"
    description = "SHP_WEAPON_3_2_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 100 * [[TECH_COST_MULTIPLIER]]
    researchturns = 2
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_3_1"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_3_1, 3)]]
    graphic = "icons/ship_parts/plasma-2.png"

Tech
    name = "SHP_WEAPON_3_3"
    description = "SHP_WEAPON_3_3_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 150 * [[TECH_COST_MULTIPLIER]]
    researchturns = 2
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_3_2"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_3_1, 3)]]
    graphic = "icons/ship_parts/plasma-3.png"

Tech
    name = "SHP_WEAPON_3_4"
    description = "SHP_WEAPON_3_4_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 250 * [[TECH_COST_MULTIPLIER]]
    researchturns = 2
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_3_3"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_3_1, 3)]]
    graphic = "icons/ship_parts/plasma-4.png"

Tech
    name = "SHP_WEAPON_4_1"
    description = "SHP_WEAPON_4_1_DESC"
    short_description = "SHIP_WEAPON_UNLOCK_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 750 * [[TECH_COST_MULTIPLIER]]
    researchturns = 10
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_3_1"
    unlock = Item type = ShipPart name = "SR_WEAPON_4_1"
    effectsgroups =
        [[WEAPON_BASE_EFFECTS(SR_WEAPON_4_1)]]
    graphic = "icons/ship_parts/death-ray-1.png"

Tech
    name = "SHP_WEAPON_4_2"
    description = "SHP_WEAPON_4_2_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 500 * [[TECH_COST_MULTIPLIER]]
    researchturns = 3
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_4_1"
    effectsgroups =
        [[WEAPON_UPGRADE_CAPACITY_EFFECTS(SR_WEAPON_4_1, 5)]]
    graphic = "icons/ship_parts/death-ray-2.png"

Tech
    name = "SHP_WEAPON_4_3"
    description = "SHP_WEAPON_4_3_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 750 * [[TECH_COST_MULTIPLIER]]
    researchturns = 3
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_4_2"
    effectsgroups =
        EffectsGroup
            scope = And [
                Ship
                OwnedBy empire = Source.Owner
                DesignHasPart  name = "SR_WEAPON_4_1"
            ]
            accountinglabel = "SR_WEAPON_4_3"
            effects = SetMaxCapacity partname = "SR_WEAPON_4_1" value = Value + 5
    graphic = "icons/ship_parts/death-ray-3.png"

Tech
    name = "SHP_WEAPON_4_4"
    description = "SHP_WEAPON_4_4_DESC"
    short_description = "SHIP_WEAPON_IMPROVE_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 1250 * [[TECH_COST_MULTIPLIER]]
    researchturns = 3
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_WEAPON_4_3"
    effectsgroups =
        EffectsGroup
            scope = And [
                Ship
                OwnedBy empire = Source.Owner
                DesignHasPart  name = "SR_WEAPON_4_1"
            ]
            accountinglabel = "SR_WEAPON_4_4"
            effects = SetMaxCapacity partname = "SR_WEAPON_4_1" value = Value + 5
    graphic = "icons/ship_parts/death-ray-4.png"

Tech
    name = "SHP_ORGANIC_WAR_ADAPTION"
    description = "SHP_ORGANIC_WAR_ADAPTION_DESC"
    short_description = "SHP_ORGANIC_WAR_ADAPTION_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 75 * [[TECH_COST_MULTIPLIER]]
    researchturns = 5
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = [
        "SHP_WEAPON_2_2"
        "SHP_ORG_HULL"
    ]
    unlock = Item type = ShipPart name = "SP_SOLAR_CONCENTRATOR"
    graphic = "icons/ship_parts/solarcollector.png"

Tech
    name = "SHP_SOLAR_CONNECTION"
    description = "SHP_SOLAR_CONNECTION_DESC"
    short_description = "SHP_SOLAR_CONNECTION_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 75 * [[TECH_COST_MULTIPLIER]]
    researchturns = 4
    tags = [ "PEDIA_SR_WEAPON_TECHS" ]
    prerequisites = "SHP_ORGANIC_WAR_ADAPTION"
    graphic = "icons/ship_parts/solarcollector.png"

Tech
    name = "SHP_KRILL_SPAWN"
    description = "SHP_KRILL_SPAWN_DESC"
    short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
    category = "SHIP_WEAPONS_CATEGORY"
    researchcost = 9999
    researchturns = 9999
    Unresearchable
    tags = [ "PEDIA_SHIP_WEAPONS_CATEGORY" ]
    unlock = Item type = ShipPart name = "SP_KRILL_SPAWNER"

#include "/scripting/common/base_prod.macros"

WEAPON_BASE_EFFECTS
'''        EffectsGroup
            scope = And [
                Ship
                OwnedBy empire = Source.Owner
                DesignHasPart  name = "@1@"
            ]
            accountinglabel = "@1@"
            effects = [
                SetMaxCapacity partname = "@1@" value = Value + PartCapacity name = "@1@"
                SetMaxSecondaryStat partname = "@1@" value = Value + PartSecondaryStat name = "@1@"
            ]
'''

WEAPON_UPGRADE_CAPACITY_EFFECTS
'''
        EffectsGroup
            scope = And [
                Ship
                OwnedBy empire = Source.Owner
                DesignHasPart  name = "@1@"
            ]
            accountinglabel = "@1@"
            effects = SetMaxCapacity partname = "@1@" value = Value + @2@
'''
