@cost1 = 3
@cost2 = 6
@cost3 = 9
@cost4 = 12
@cost5 = 15
@cost6 = 20

@power_1 = -10
@power_2 = -15
@power_3 = -20
@power_4 = -25
@power_5 = -30

@destroyer_power_1 = -20
@destroyer_power_2 = -30
@destroyer_power_3 = -40
@destroyer_power_4 = -50
@destroyer_power_5 = -60

@cruiser_power_1 = -40
@cruiser_power_2 = -60
@cruiser_power_3 = -80
@cruiser_power_4 = -100
@cruiser_power_5 = -120

@battleship_power_1 = -80
@battleship_power_2 = -120
@battleship_power_3 = -160
@battleship_power_4 = -200
@battleship_power_5 = -240

@titan_power_1 = -160
@titan_power_2 = -240
@titan_power_3 = -320
@titan_power_4 = -400
@titan_power_5 = -480

@colossus_power_1 = -200
@colossus_power_2 = -300
@colossus_power_3 = -400
@colossus_power_4 = -500
@colossus_power_5 = -600

@destroyer_cost1 = 6
@destroyer_cost2 = 12
@destroyer_cost3 = 18
@destroyer_cost4 = 24
@destroyer_cost5 = 30
@destroyer_cost6 = 36

@cruiser_cost1 = 12
@cruiser_cost2 = 24
@cruiser_cost3 = 36
@cruiser_cost4 = 48
@cruiser_cost5 = 60
@cruiser_cost6 = 75

@battleship_cost1 = 24
@battleship_cost2 = 48
@battleship_cost3 = 72
@battleship_cost4 = 96
@battleship_cost5 = 120
@battleship_cost6 = 150

@titan_cost1 = 48
@titan_cost2 = 96
@titan_cost3 = 144
@titan_cost4 = 192
@titan_cost5 = 240
@titan_cost6 = 280

@colossus_cost1 = 60
@colossus_cost2 = 120
@colossus_cost3 = 180
@colossus_cost4 = 240
@colossus_cost5 = 300
@colossus_cost6 = 360

### Drives
utility_component_template = {
	key = "STZ_CAERULENITE_DRIVE"
	size = small
	icon = "GFX_stz_ship_part_caerulenite_drive"
	icon_frame = 1
	power = -50
	resources = {
		category = ship_components
		cost = {
			alloys = 35
			stz_sr_caerulenite = 3
		}
	}
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 2
		ship_windup_mult = -0.9
		ship_ftl_jumpdrive_range_mult = 0.6
	}

	ai_weight = {
		weight = 6
	}

	prerequisites = { "stz_tech_caerulenite_drive" }
	component_set = "ftl_components"
	upgrades_to = "STZ_VIRIDISIUM_DRIVE"
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_DRIVE"
	size = small
	icon = "GFX_stz_ship_part_viridisium_drive"
	icon_frame = 1
	power = -75
	resources = {
		category = ship_components
		cost = {
			alloys = 50
			stz_sr_viridisium = 5
		}
	}
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 2
		ship_windup_mult = -1.0
		ship_ftl_jumpdrive_range_mult = 0.7
	}

	ai_weight = {
		weight = 7
	}

	prerequisites = { "stz_tech_viridisium_drive" }
	component_set = "ftl_components"
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_DRIVE_ON_ZRO"
	size = small
	icon = "GFX_stz_ship_part_viridisium_drive"
	icon_frame = 1
	power = -75
	resources = {
		category = ship_components
		cost = {
			alloys = 50
			stz_sr_viridisium = 5
		}
	}
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 2
		ship_windup_mult = -0.9
		ship_ftl_jumpdrive_range_mult = 70
	}

	ai_weight = {
		weight = 0
	}

	class_restriction = { shipclass_military shipclass_constructor shipclass_colonizer shipclass_science_ship shipclass_transport shipclass_military_special shipclass_starbase }
	prerequisites = { "stz_tech_viridisium_drive_on_zro" }
	component_set = "ftl_components"
}


### Thrusters

# Caerulenite
utility_component_template = {
	key = "STZ_CAERULENITE_THRUSTER_CT"
	size = small
	icon = "GFX_stz_ship_part_caerulenite_thruster"
	icon_frame = 1
	power = -35
	resources = {
		category = ship_components
		cost = {
			alloys = @cost5
			stz_sr_caerulenite = 1
		}
	}
	modifier = {
		ship_base_speed_mult = 1.5
		ship_evasion_add = 20
	}

    potential = {
        ship_uses_corvette_components = yes
    }

	prerequisites = { "stz_tech_caerulenite_thruster" }
	component_set = "thruster_components"
	upgrades_to = "STZ_VIRIDISIUM_THRUSTER_CT"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_caerulenite }
		}

	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_THRUSTER_DT"
	size = small
	icon = "GFX_stz_ship_part_caerulenite_thruster"
	icon_frame = 1
	power = -70
	resources = {
		category = ship_components
		cost = {
			alloys = @destroyer_cost5
			stz_sr_caerulenite = 2
		}
	}
	modifier = {
		ship_base_speed_mult = 1.5
		ship_evasion_add = 16
	}

    potential = {
        ship_uses_destroyer_components = yes
    }

	prerequisites = { "stz_tech_caerulenite_thruster" }
	component_set = "thruster_components"
	upgrades_to = "STZ_VIRIDISIUM_THRUSTER_DT"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_caerulenite }
		}

	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_THRUSTER_CR"
	size = small
	icon = "GFX_stz_ship_part_caerulenite_thruster"
	icon_frame = 1
	power = -140
	resources = {
		category = ship_components
		cost = {
			alloys = @cruiser_cost5
			stz_sr_caerulenite = 4
		}
	}
	modifier = {
		ship_base_speed_mult = 1.5
		ship_evasion_add = 12
	}

    potential = {
        ship_uses_cruiser_components = yes
    }

	prerequisites = { "stz_tech_caerulenite_thruster" }
	component_set = "thruster_components"
	upgrades_to = "STZ_VIRIDISIUM_THRUSTER_CR"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_caerulenite }
		}

	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_THRUSTER_BS"
	size = small
	icon = "GFX_stz_ship_part_caerulenite_thruster"
	icon_frame = 1
	power = -280
	resources = {
		category = ship_components
		cost = {
			alloys = @battleship_cost5
			stz_sr_caerulenite = 8
		}
	}
	modifier = {
		ship_base_speed_mult = 1.5
		ship_evasion_add = 8
	}

    potential = {
        ship_uses_battleship_components = yes
    }

	prerequisites = { "stz_tech_caerulenite_thruster" }
	component_set = "thruster_components"
	upgrades_to = "STZ_VIRIDISIUM_THRUSTER_BS"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_caerulenite }
		}

	}
}

utility_component_template = {
	key = "STZ_CAERULENITE_THRUSTER_TT"
	size = small
	icon = "GFX_stz_ship_part_caerulenite_thruster"
	icon_frame = 1
	power = -560
	resources = {
		category = ship_components
		cost = {
			alloys = @titan_cost5
			stz_sr_caerulenite = 16
		}
	}
	modifier = {
		ship_base_speed_mult = 1.5
		ship_evasion_add = 4
	}

    potential = {
        ship_uses_titan_components = yes
    }

	prerequisites = { "stz_tech_caerulenite_thruster" }
	component_set = "thruster_components"
	upgrades_to = "STZ_VIRIDISIUM_THRUSTER_TT"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_caerulenite }
		}

	}
}


utility_component_template = {
	key = "STZ_CAERULENITE_THRUSTER_CS"
	size = small
	icon = "GFX_stz_ship_part_caerulenite_thruster"
	icon_frame = 1
	power = -700
	resources = {
		category = ship_components
		cost = {
			alloys = 340
			stz_sr_caerulenite = 32
		}
	}
	modifier = {
		ship_base_speed_mult = 1.5
	}

    potential = {
        ship_uses_colossus_components = yes
    }

	prerequisites = { "stz_tech_caerulenite_thruster" }
	component_set = "thruster_components"
	upgrades_to = "STZ_VIRIDISIUM_THRUSTER_CS"

	ai_weight = {
		weight = 6

		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_caerulenite }
		}

	}
}

# Viridisium
utility_component_template = {
	key = "STZ_VIRIDISIUM_THRUSTER_CT"
	size = small
	icon = "GFX_stz_ship_part_viridisium_thruster"
	icon_frame = 1
	power = -40
	resources = {
		category = ship_components
		cost = {
			alloys = @cost6
			stz_sr_viridisium = 1
		}
	}
	modifier = {
		ship_base_speed_mult = 1.75
		ship_evasion_add = 20
	}

    potential = {
        ship_uses_corvette_components = yes
    }

	prerequisites = { "stz_tech_viridisium_thruster" }
	component_set = "thruster_components"

	ai_weight = {
		weight = 7
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_viridisium }
		}

	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_THRUSTER_DT"
	size = small
	icon = "GFX_stz_ship_part_viridisium_thruster"
	icon_frame = 1
	power = -80
	resources = {
		category = ship_components
		cost = {
			alloys = @destroyer_cost6
			stz_sr_viridisium = 2
		}
	}
	modifier = {
		ship_base_speed_mult = 1.75
		ship_evasion_add = 16
	}

    potential = {
        ship_uses_destroyer_components = yes
    }

	prerequisites = { "stz_tech_viridisium_thruster" }
	component_set = "thruster_components"

	ai_weight = {
		weight = 7
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_viridisium }
		}

	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_THRUSTER_CR"
	size = small
	icon = "GFX_stz_ship_part_viridisium_thruster"
	icon_frame = 1
	power = -160
	resources = {
		category = ship_components
		cost = {
			alloys = @cruiser_cost6
			stz_sr_viridisium = 4
		}
	}
	modifier = {
		ship_base_speed_mult = 1.75
		ship_evasion_add = 12
	}

    potential = {
        ship_uses_cruiser_components = yes
    }

	prerequisites = { "stz_tech_viridisium_thruster" }
	component_set = "thruster_components"

	ai_weight = {
		weight = 7
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_viridisium }
		}

	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_THRUSTER_BS"
	size = small
	icon = "GFX_stz_ship_part_viridisium_thruster"
	icon_frame = 1
	power = -320
	resources = {
		category = ship_components
		cost = {
			alloys = @battleship_cost6
			stz_sr_viridisium = 8
		}
	}
	modifier = {
		ship_base_speed_mult = 1.75
		ship_evasion_add = 8
	}

    potential = {
        ship_uses_battleship_components = yes
    }

	prerequisites = { "stz_tech_viridisium_thruster" }
	component_set = "thruster_components"

	ai_weight = {
		weight = 7
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_viridisium }
		}

	}
}

utility_component_template = {
	key = "STZ_VIRIDISIUM_THRUSTER_TT"
	size = small
	icon = "GFX_stz_ship_part_viridisium_thruster"
	icon_frame = 1
	power = -640
	resources = {
		category = ship_components
		cost = {
			alloys = @titan_cost6
			stz_sr_viridisium = 16
		}
	}
	modifier = {
		ship_base_speed_mult = 1.75
		ship_evasion_add = 4
	}

    potential = {
        ship_uses_titan_components = yes
    }

	prerequisites = { "stz_tech_viridisium_thruster" }
	component_set = "thruster_components"

	ai_weight = {
		weight = 7
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_viridisium }
		}

	}
}


utility_component_template = {
	key = "STZ_VIRIDISIUM_THRUSTER_CS"
	size = small
	icon = "GFX_stz_ship_part_viridisium_thruster"
	icon_frame = 1
	power = 800
	resources = {
		category = ship_components
		cost = {
			alloys = @colossus_cost6
			stz_sr_viridisium = 32
		}
	}
	modifier = {
		ship_base_speed_mult = 1.75
	}

    potential = {
        ship_uses_colossus_components = yes
    }

	prerequisites = { "stz_tech_viridisium_thruster" }
	component_set = "thruster_components"

	ai_weight = {
		weight = 7

		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = stz_sr_viridisium }
		}

	}
}

### Sensors

# Caerulenite
utility_component_template = {
	key = "STZ_CAERULENITE_SENSOR"
	size = medium
	icon = "GFX_stz_ship_part_caerulenite_sensor"
	icon_frame = 1
	power = 25
	resources = {
		category = ship_components
		cost = {
			alloys = 10
			stz_sr_caerulenite = 1
		}
	}
	sensor_range = 5
	hyperlane_range = 6

	ship_modifier = {
		ship_tracking_add = 20
	}

	prerequisites = { "stz_tech_caerulenite_sensors" }
	component_set = "sensor_components"

	ai_weight = {
		weight = 1500
	}
}

# Viridisium
utility_component_template = {
	key = "STZ_VIRIDISIUM_SENSOR"
	size = medium
	icon = "GFX_stz_ship_part_viridisium_sensor"
	icon_frame = 1
	power = 30
	resources = {
		category = ship_components
		cost = {
			alloys = 12
			stz_sr_viridisium = 1
		}
	}
	sensor_range = 6
	hyperlane_range = 7

	ship_modifier = {
		ship_tracking_add = 25
	}

	prerequisites = { "stz_tech_viridisium_sensors" }
	component_set = "sensor_components"

	ai_weight = {
		weight = 2000
	}
}