ideas = {

	economy = {
		law = yes
		use_list_view = yes
		
		# Русы

		civilian_economy = {

			cost = 200
			removal_cost = -1
			
			available = {
				NOT = { 
				    has_government = democratic
				}
				NOT = {
				    original_tag = C99
				}
			}
			
			visible = { 
                NOT = { 
				    has_government = democratic
				}
				NOT = {
				    original_tag = C99
				}
			}

			modifier = {
				consumer_goods_expected_value = 0.4
				
				production_speed_industrial_complex_factor = 0.2
				production_speed_arms_factory_factor = 0.1
				
				conversion_cost_civ_to_mil_factor= 0.1
				conversion_cost_mil_to_civ_factor = 0.1
				
				max_fuel_factor = -0.25
				fuel_gain_factor = -0.4
			}

			default = yes

			cancel_if_invalid = yes
		}

		partial_economic_mobilisation = {

			available = {
			    has_war_support > 0.25
				NOT = { 
				    has_government = democratic
				}
				NOT = {
				    original_tag = C99
				}
			}
			
			visible = { 
                NOT = { 
				    has_government = democratic
				}
				NOT = {
				    original_tag = C99
				}
			}

			cost = 200
			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.3
				
				production_speed_arms_factory_factor = 0.05
				
				conversion_cost_civ_to_mil_factor= -0.1
				conversion_cost_mil_to_civ_factor = -0.1
				
				fuel_gain_factor = -0.1
			}

			cancel_if_invalid = yes
			
			ai_will_do = {
   				factor = 2

   				modifier = {
					factor = 20

					is_major = yes
				}

				modifier = {
					factor = 100
					OR = {
						original_tag = URG
						original_tag = PAR
					}
					NOT = {
						has_idea = war_economy
					}
					has_completed_focus = GUAY_coup_detat
				}
   			}
		}

		war_economy = {

            available = {
			    has_war_support > 0.5
				NOT = { 
				    has_government = democratic
				}
				NOT = {
				    original_tag = C99
				}
			}
			
			visible = { 
                NOT = { 
				    has_government = democratic
				}
				NOT = {
				    original_tag = C99
				}
			}

			cost = 200
			removal_cost = -1

			modifier = {
				consumer_goods_expected_value = 0.2
				
				production_speed_arms_factory_factor = 0.1
				production_speed_industrial_complex_factor = -0.1
				
				conversion_cost_civ_to_mil_factor= -0.3
				conversion_cost_mil_to_civ_factor = -0.3
			}

			cancel_if_invalid = yes
			
			ai_will_do = {
   				factor = 3

				modifier = {
					#High prio on production
					factor = 20
					manpower_per_military_factory >  1000
				}

				modifier = {
					# If we CAN go for total mobilization and have enough manpower for it, skip war economy, it's only a waste of PP
					factor = 0

					manpower_per_military_factory > 15000
					has_war = yes
					has_war_support > 0.8
					any_enemy_country = {
						ic_ratio = {
							tag = ROOT
							ratio > 0.5
						}
					}
				}

				modifier = {
					add = 1800

					# revert from closed_economy if we have large allies
					has_idea = closed_economy
					has_large_ally_not_pick_closed_economy = yes
				}
   			}
		}
		
		# Ящеры
		
		liz_civilian_economy = {

			cost = 200
			removal_cost = -1
			
			visible = {  
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}
			
			available = {
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}

			modifier = {
				consumer_goods_expected_value = 0.35
				
				production_speed_industrial_complex_factor = 0.25
				production_speed_arms_factory_factor = 0.1
				
				conversion_cost_civ_to_mil_factor= 0.3
				conversion_cost_mil_to_civ_factor = 0.3
				
				max_fuel_factor = -0.1
				fuel_gain_factor = -0.2
			}

			cancel_if_invalid = yes
		}
		
		liz_war_economy = {


			visible = {  
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}
			
			available = {
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}

			cost = 200
			removal_cost = -1
			
			modifier = {
				consumer_goods_expected_value = 0.2
				
				production_speed_arms_factory_factor = 0.3
				
				conversion_cost_civ_to_mil_factor= 0.2
				conversion_cost_mil_to_civ_factor = 0.25
			}

			cancel_if_invalid = yes
			
			ai_will_do = {
   				factor = 3

				modifier = {
					#High prio on production
					factor = 20
					manpower_per_military_factory >  1000
				}

				modifier = {
					# If we CAN go for total mobilization and have enough manpower for it, skip war economy, it's only a waste of PP
					factor = 0

					manpower_per_military_factory > 15000
					has_war = yes
					has_war_support > 0.8
					any_enemy_country = {
						ic_ratio = {
							tag = ROOT
							ratio > 0.5
						}
					}
				}

				modifier = {
					add = 1800

					# revert from closed_economy if we have large allies
					has_idea = closed_economy
					has_large_ally_not_pick_closed_economy = yes
				}
   			}
		}
		
	}

	trade_laws = {	
		law = yes
		use_list_view = yes
		
		# Русы

		free_trade = {

			cost = 200
			removal_cost = -1
			
			visible = { 
                NOT = { 
				    has_government = democratic
				}
				NOT = { 
				    original_tag = C99
				}
			}
			
			available = {
				NOT = { 
				    has_government = democratic
				}
				NOT = { 
				    original_tag = C99
				}
			}

			modifier = {
				min_export = 0.8
				industrial_capacity_factory = 0.15
				industrial_capacity_dockyard = 0.15
				production_speed_buildings_factor = 0.15
				research_speed_factor = 0.10
				civilian_intel_to_others = 40.0
				army_intel_to_others = 15.0
				navy_intel_to_others = 20.0
				cic_construction_boost_factor = 0.05
			}

			cancel_if_invalid = yes

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 300

					OR = {
						tag = PER
						tag = IRQ
					}
					is_in_faction = no
				}

				modifier = {
					factor = 300

					tag = BRA
					date > 1943.1.1 # at this point we can probably cash in on rubber lack in the world
				}

				modifier = {
					factor = 400
					original_tag = SWE
					date > 1941.6.1
				}

				# Oil for hitlers oil throne!
				modifier = {
					factor = 600
					tag = ROM
					is_in_faction_with = GER
				}
   			}
		}

		export_focus = {


			cost = 200
			removal_cost = -1
			
			visible = { 
                NOT = { 
				    has_government = democratic
				}
				NOT = { 
				    original_tag = C99
				}
			}
			
			available = {
				NOT = { 
				    has_government = democratic
				}
				NOT = { 
				    original_tag = C99
				}
			}

			modifier = {
				min_export = 0.5
				industrial_capacity_factory = 0.1
				industrial_capacity_dockyard = 0.1
				production_speed_buildings_factor = 0.1
				research_speed_factor = 0.05
				civilian_intel_to_others = 20.0
				army_intel_to_others = 10.0
				navy_intel_to_others = 10.0
				cic_construction_boost_factor = 0.1
			}

			default = yes

			cancel_if_invalid = yes

			ai_will_do = {
   				factor = 1

				modifier = {
					factor = 0

					is_major = no
					has_war = no
					is_in_faction = no
					OR = {
						# portugal and sweden are special tungsten snowflakes
						tag = POR
						tag = SWE

						# Iraq & Iran are special oil snowflakes
						tag = PER
						tag = IRQ
					}
				}
				modifier = {
					factor = 1000
					has_idea = uncontrolled_exports #Poland should try and escape this as soon as they can
				}
   			}
		}

		limited_exports = {

			cost = 200
			removal_cost = -1
			
			visible = { 
                NOT = { 
				    has_government = democratic
				}
				NOT = { 
				    original_tag = C99
				}
			}
			
			available = {
				NOT = { 
				    has_government = democratic
				}
				NOT = { 
				    original_tag = C99
				}
			}

			modifier = {
				min_export = 0.25
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				production_speed_buildings_factor = 0.05
				research_speed_factor = 0.01
				civilian_intel_to_others = 10.0
				army_intel_to_others = 5.0
				navy_intel_to_others = 5
				lend_lease_tension = 0.20
				cic_construction_boost = -0.05
			}

			cancel_if_invalid = yes

			ai_will_do = {
   				factor = 1

   				modifier = {
					add = -1

					is_major = no
					is_in_faction = yes
					has_war = yes
				}

				# minors not at war should want to get the bonuses from free trade
				modifier = {
					add = -1

					is_major = no
					has_war = no
				}
				modifier = {
					factor = 200
					NOT = { has_government = fascism }
					NOT = { has_idea = closed_economy }
					has_war = yes
					is_major = yes
				}
				modifier = {
					add = 1500

					# revert from closed_economy if we have large allies
					has_idea = closed_economy
					has_large_ally_not_pick_closed_economy = yes
				}
   			}
		}

		closed_economy = {

			cost = 200
			removal_cost = -1
			
			visible = { 
                NOT = { 
				    has_government = democratic
				}
				NOT = { 
				    original_tag = C99
				}
			}
			
			available = {
				NOT = { 
				    has_government = democratic
				}
				NOT = { 
				    original_tag = C99
				}
			}

			modifier = {
				min_export = 0
				#civilian_intel_to_others = 0.0
				lend_lease_tension = 0.40
				cic_construction_boost = -0.1
			}

			cancel_if_invalid = yes

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 0

					is_major = no
					is_in_faction = yes
					has_war = yes
				}

				# minors not at war should want to get the bonuses from free trade
				modifier = {
					factor = 0

					is_major = no
					has_war = no
				}

				modifier = {
					factor = 0

					# don't take if we have a reasonable sized ally
					# since they will require our trades
					has_large_ally_not_pick_closed_economy = yes
				}
   			}
		}
		
		# Ящеры
		
		liz_trade = {


			cost = 200
			removal_cost = -1
			
			visible = {  
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}
			
			available = {
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}

			modifier = {
				min_export = 0.5
				industrial_capacity_factory = 0.1
				industrial_capacity_dockyard = 0.1
				production_speed_buildings_factor = 0.1
				research_speed_factor = 0.05
				civilian_intel_to_others = 20.0
				army_intel_to_others = 10.0
				navy_intel_to_others = 10.0
				cic_construction_boost_factor = 0.1
			}

			cancel_if_invalid = yes

			ai_will_do = {
   				factor = 1

				modifier = {
					factor = 0

					is_major = no
					has_war = no
					is_in_faction = no
					OR = {
						# portugal and sweden are special tungsten snowflakes
						tag = POR
						tag = SWE

						# Iraq & Iran are special oil snowflakes
						tag = PER
						tag = IRQ
					}
				}
				modifier = {
					factor = 1000
					has_idea = uncontrolled_exports #Poland should try and escape this as soon as they can
				}
   			}
		}

		liz_silence_trade = {

			cost = 200
			removal_cost = -1
			
			visible = {  
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}
			
			available = {
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}

			modifier = {
				min_export = 0.25
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				production_speed_buildings_factor = 0.05
				research_speed_factor = 0.01
				civilian_intel_to_others = 10.0
				army_intel_to_others = 5.0
				navy_intel_to_others = 5
				lend_lease_tension = 0.20
				cic_construction_boost = -0.05
			}

			cancel_if_invalid = yes

			ai_will_do = {
   				factor = 1

   				modifier = {
					add = -1

					is_major = no
					is_in_faction = yes
					has_war = yes
				}

				# minors not at war should want to get the bonuses from free trade
				modifier = {
					add = -1

					is_major = no
					has_war = no
				}
				modifier = {
					factor = 200
					NOT = { has_government = fascism }
					NOT = { has_idea = closed_economy }
					has_war = yes
					is_major = yes
				}
				modifier = {
					add = 1500

					# revert from closed_economy if we have large allies
					has_idea = closed_economy
					has_large_ally_not_pick_closed_economy = yes
				}
   			}
		}

		liz_communications_ban = {

			cost = 200
			removal_cost = -1
			
			visible = {  
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}
			
			available = {
				has_government = democratic
				NOT = {
				    original_tag = C99
				}
			}

			modifier = {
				min_export = 0
				#civilian_intel_to_others = 0.0
				lend_lease_tension = 0.40
				cic_construction_boost = -0.1
			}

			cancel_if_invalid = yes

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 0

					is_major = no
					is_in_faction = yes
					has_war = yes
				}

				# minors not at war should want to get the bonuses from free trade
				modifier = {
					factor = 0

					is_major = no
					has_war = no
				}

				modifier = {
					factor = 0

					# don't take if we have a reasonable sized ally
					# since they will require our trades
					has_large_ally_not_pick_closed_economy = yes
				}
   			}
		}
	}
}
