
get_minor_cash_reserve = {

	type = country

	allow = {
		NOT = { treasury = 50 }
		not = { number_of_loans = 1 }
	}
	
	abort = {
		number_of_loans = 1
	}
	
	success = {
		treasury = 100
	}
	
	chance = {
		factor = 1 # Base weight
	}

	effect = {
		treasury = 10
	}	
}

amass_wealth = {

	type = country

	allow = {
		NOT = { treasury = 1000 }
		monthly_income = 100
		treasury = 300
		war = no
		not = { number_of_loans = 1 }
	}
	
	abort = {
		or = {
			NOT = { treasury = 200 }
			number_of_loans = 1
		}
	}
	
	success = {
		treasury = 2000
	}
	
	chance = {
		factor = 1 # Base weight
		modifier = {
			factor = 2.0
			NOT = { mercantilism_freetrade = -2 }
		}
		modifier = {
			factor = 0.5
			mercantilism_freetrade = 2
		}
		modifier = {
			factor = 1.5
			aristocracy_plutocracy = 2
		}
		modifier = {
			factor = 0.75
			NOT = { aristocracy_plutocracy = -2 }
		}
	}

	effect = {
		prestige = 0.1
		treasury = 500
	}	
}

recover_negative_stability = {

	type = country

	allow = {
		war = no
		NOT = { stability = 0 }
	}
	
	abort = {
	}
	
	success = {
		stability = 0
	}
	
	chance = {
		factor = 1 # Base weight
		modifier = {
			factor = 2.0
			ADM = 5
		}
		modifier = {
			factor = 2.0
			not = { stability = -2 }
		}
	}

	effect = {
		prestige = 0.05
	}	
}


improve_economical_mismanagement = {

	type = country

	allow = {
		war = no
		number_of_loans = 1
	}
	
	abort = {
		is_bankrupt = yes
	}
	
	success = {
		NOT = { number_of_loans = 1 }
	}
	
	chance = {
		factor = 1 # Base weight
		modifier = {
			factor = 2.0
			ADM = 5
		}
	}

	effect = {
		inflation = -1
	}	
}

reduce_inflation = {

	type = country

	allow = {
		war = no
		inflation = 15
		not = { inflation = 30 }
		idea = national_bank
		capital_scope = { tax_assessor = yes }
	}
	
	abort = {	
	}
	
	success = {
		NOT = { inflation = 10 }
	}
	
	chance = {
		factor = 1 # Base weight
		modifier = {
			factor = 2.0
			ADM = 5
		}
	}

	effect = {
		stability = 1
	}	
}

recover_from_warexhaustion = {

	type = country

	allow = {
		war_exhaustion = 5
		war = no
	}
	
	abort = {
		war = yes
	}
	
	success = {
		NOT = { war_exhaustion = 1 }
		war = no
	}
	
	chance = {
		factor = 1 # Base weight
	}

	effect = {
		stability = 1
	}	
}

buildup_manpower_reserves = {

	type = country

	allow = {
		max_manpower = 5
		NOT = { manpower_percentage = 0.30 }
		war = no
	}
	
	abort = {
		war = yes
	}
	
	success = {
		manpower_percentage = 0.90
	}
	
	chance = {
		factor = 1 # Base weight
	}

	effect = {
		prestige = 0.1
		war_exhaustion = -2
	}	
}
