namespace = sws_weapons

### Preselected Red Bolt Weapons

country_event = {
	id = sws_weapons.101
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { has_trait = trait_sws_weapons_red }
			set_country_flag = can_use_star_wars_weapons
			set_country_flag = can_use_star_wars_red_bolts
			give_technology = { message = no tech = tech_sws_laser_T1_red }
			give_technology = { message = no tech = tech_sws_ion_cannon_T1 }
			give_technology = { message = no tech = tech_sws_concussion_missile_T1 }
		}
	}
}

### Preselected Blue Bolt Weapons

country_event = {
	id = sws_weapons.102
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { has_trait = trait_sws_weapons_blue }
			set_country_flag = can_use_star_wars_weapons
			set_country_flag = can_use_star_wars_blue_bolts
			give_technology = { message = no tech = tech_sws_laser_T1_blue }
			give_technology = { message = no tech = tech_sws_ion_cannon_T1 }
			give_technology = { message = no tech = tech_sws_concussion_missile_T1 }
		}
	}
}

### Preselected Green Bolt Weapons

country_event = {
	id = sws_weapons.103
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { has_trait = trait_sws_weapons_green }
			set_country_flag = can_use_star_wars_weapons
			set_country_flag = can_use_star_wars_green_bolts
			give_technology = { message = no tech = tech_sws_laser_T1_green }
			give_technology = { message = no tech = tech_sws_ion_cannon_T1 }
			give_technology = { message = no tech = tech_sws_concussion_missile_T1 }
		}
	}
}

### Preselected Purple Bolt Weapons

country_event = {
	id = sws_weapons.104
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { has_trait = trait_sws_weapons_purple }
			set_country_flag = can_use_star_wars_weapons
			set_country_flag = can_use_star_wars_purple_bolts
			give_technology = { message = no tech = tech_sws_laser_T1_purple }
			give_technology = { message = no tech = tech_sws_ion_cannon_T1 }
			give_technology = { message = no tech = tech_sws_concussion_missile_T1 }
		}
	}
}

### Preselected Yellow Bolt Weapons

country_event = {
	id = sws_weapons.105
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { has_trait = trait_sws_weapons_yellow }
			set_country_flag = can_use_star_wars_weapons
			set_country_flag = can_use_star_wars_yellow_bolts
			give_technology = { message = no tech = tech_sws_laser_T1_yellow }
			give_technology = { message = no tech = tech_sws_ion_cannon_T1 }
			give_technology = { message = no tech = tech_sws_concussion_missile_T1 }
		}
	}
}
