# Author(s): Fredy
Category_resource = {
	small_oil_expand = {
		icon = oil

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = oil amount > 0 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_one = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = oil amount > 0 }				
				}
				add_resource = {
					type = oil
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	medium_oil_expand = {
		icon = oil

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = oil amount > 10 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_two = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = oil amount > 10 }					
				}
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 0
		}		
	}

	big_oil_expand = {
		icon = oil

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = oil amount > 30 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_three = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = oil amount > 30 }				
				}
				add_resource = {
					type = oil
					amount = 16
				}
			}
		}

		ai_will_do = {
			factor = 0
		}		
	}

	oil_new_discovery = {
		icon = oil

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = oil amount < 1 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_four = yes		
		}

		remove_effect = {
			random_list = {
				50 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = oil amount < 1 }					
						}
						add_resource = {
							type = oil
							amount = 4
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = oil amount < 1 }					
						}
						add_resource = {
							type = oil
							amount = 5
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = oil amount < 1 }					
						}
						add_resource = {
							type = oil
							amount = 6
						}
					}
				}
			}		
		}

		ai_will_do = {
			factor = 0
		}
	}

	small_aluminium_expand = {
		icon = aluminium

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = aluminium amount > 0 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_one = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = aluminium amount > 0 }				
				}
				add_resource = {
					type = aluminium
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 0
		}		
	}

	medium_aluminium_expand = {
		icon = aluminium

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = aluminium amount > 10 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_two = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = aluminium amount > 10 }				
				}
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 0
		}				
	}

	big_aluminium_expand = {
		icon = aluminium

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = aluminium amount > 21 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_three = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = aluminium amount > 21 }					
				}
				add_resource = {
					type = aluminium
					amount = 16
				}
			}
		}

		ai_will_do = {
			factor = 0
		}				
	}

	aluminium_new_discovery = {
		icon = aluminium

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = aluminium amount < 1 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_four = yes
		}

		remove_effect = {
			random_list = {
				50 = {
					random_owned_state = {
						limit = {	
							has_resources_amount = { resource = aluminium amount < 1 }					
						}
						add_resource = {
							type = aluminium
							amount = 4
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = aluminium amount < 1 }					
						}
						add_resource = {
							type = aluminium
							amount = 5
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = aluminium amount < 1 }					
						}
						add_resource = {
							type = aluminium
							amount = 6
						}
					}
				}
			}		
		}

		ai_will_do = {
			factor = 0
		}
	}

	small_rubber_expand = {
		icon = rubber

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = rubber amount > 0 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_one = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = rubber amount > 0 }					
				}
				add_resource = {
					type = rubber
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 0
		}		
	}

	medium_rubber_expand = {
		icon = rubber

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = rubber amount > 10 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_two = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = rubber amount > 10 }				
				}
				add_resource = {
					type = rubber
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 0
		}		
	}

	big_rubber_expand = {
		icon = rubber

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = rubber amount > 20 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_three = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = rubber amount > 20 }					
				}
				add_resource = {
					type = rubber
					amount = 16
				}
			}
		}

		ai_will_do = {
			factor = 0
		}		
	}

	rubber_new_discovery = {
		icon = rubber

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = rubber amount < 1 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_four = yes
		}

		remove_effect = {
			random_list = {
				50 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = rubber amount < 1 }					
						}
						add_resource = {
							type = rubber
							amount = 4
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = rubber amount < 1 }					
						}
						add_resource = {
							type = rubber
							amount = 5
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = rubber amount < 1 }					
						}
						add_resource = {
							type = rubber
							amount = 6
						}
					}
				}
			}		
		}

		ai_will_do = {
			factor = 0
		}
	}

	small_tungsten_expand = {
		icon = tungsten

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = tungsten amount > 0 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_one = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = tungsten amount > 0 }		
				}
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 0
		}				
	}

	medium_tungsten_expand = {
		icon = tungsten

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = tungsten amount > 10 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_two = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = tungsten amount > 10 }				
				}
				add_resource = {
					type = tungsten
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 0
		}		
	}

	big_tungsten_expand = {
		icon = tungsten

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = tungsten amount > 20 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_three = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = tungsten amount > 20 }					
				}
				add_resource = {
					type = tungsten
					amount = 16
				}
			}
		}

		ai_will_do = {
			factor = 0
		}		
	}

	tungsten_new_discovery = {
		icon = tungsten

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = tungsten amount < 1 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_four = yes
		}

		remove_effect = {
			random_list = {
				50 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = tungsten amount < 1 }					
						}
						add_resource = {
							type = tungsten
							amount = 4
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = tungsten amount < 1 }					
						}
						add_resource = {
							type = tungsten
							amount = 5
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = tungsten amount < 1 }					
						}
						add_resource = {
							type = tungsten
							amount = 6
						}
					}
				}
			}			
		}

		ai_will_do = {
			factor = 0
		}
	}

	small_steel_expand = {
		icon = steel

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = steel amount > 0 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_one = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = steel amount > 0 }				
				}
				add_resource = {
					type = steel
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 0
		}	
	}
	
	medium_steel_expand = {
		icon = steel

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = steel amount > 10 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_two = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = steel amount > 10 }
				}
				add_resource = {
					type = steel
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 0
		}	
	}

	big_steel_expand = {
		icon = steel

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = steel amount > 20 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_three = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = steel amount > 20 }					
				}
				add_resource = {
					type = steel
					amount = 16
				}
			}
		}

		ai_will_do = {
			factor = 0
		}	
	}

	steel_new_discovery = {
		icon = steel

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = steel amount < 1 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_four = yes
		}

		remove_effect = {
			random_list = {
				50 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = steel amount < 1 }					
						}
						add_resource = {
							type = steel
							amount = 4
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = steel amount < 1 }					
						}
						add_resource = {
							type = steel
							amount = 5
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = steel amount < 1 }					
						}
						add_resource = {
							type = steel
							amount = 6
						}
					}
				}
			}		
		}

		ai_will_do = {
			factor = 0
		}
	}

	small_chromium_expand = {
		icon = chromium

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = chromium amount > 0 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_one = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = chromium amount > 0 }					
				}
				add_resource = {
					type = chromium
					amount = 4
				}
			}
		}

		ai_will_do = {
			factor = 0
		}		
	}

	medium_chromium_expand = {
		icon = chromium

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = chromium amount > 20 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_two = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = chromium amount > 20 }
				}
				add_resource = {
					type = chromium
					amount = 8
				}
			}
		}

		ai_will_do = {
			factor = 0
		}				
	}

	big_chromium_expand = {
		icon = chromium

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = chromium amount > 30 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_three = yes
		}

		remove_effect = {
			random_owned_state = {
				limit = {
					has_resources_amount = { resource = chromium amount > 30 }					
				}
				add_resource = {
					type = chromium
					amount = 16
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	chromium_new_discovery = {
		icon = chromium

		fire_only_once = no

		days_re_enable = 0

		days_remove = 180

		available = {
			any_owned_state = {
				has_resources_amount = { resource = chromium amount < 1 }
			}
		}

		custom_cost_text = cost_0

		custom_cost_trigger = {
			check_variable = { treasury > 0 }
		}

		complete_effect = {
			Price_calculated_four = yes
		}

		remove_effect = {
			random_list = {
				50 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = chromium amount < 1 }					
						}
						add_resource = {
							type = chromium
							amount = 4
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = chromium amount < 1 }					
						}
						add_resource = {
							type = chromium
							amount = 5
						}
					}
				}
				25 = {
					random_owned_state = {
						limit = {
							has_resources_amount = { resource = chromium amount < 1 }					
						}
						add_resource = {
							type = chromium
							amount = 6
						}
					}
				}
			}			
		}

		ai_will_do = {
			factor = 0
		}
	}	
}