﻿gpt_war_council_positive_opinion_effect = {
	scope:saved_councillor = {
		add_opinion = {
			modifier = pleased_opinion
			target = root
			opinion = 10
		}
	}
}

gpt_war_council_negative_opinion_effect = {
	scope:saved_councillor = {
		add_opinion = {
			modifier = disappointed_opinion
			target = root
			opinion = -10
		}
	}
}

gpt_war_council_gold_cost_effect = {
	if = {
		limit = {
			has_treasury = yes
		}
		remove_treasury = {
			value = max_military_strength
			divide = 50
			add = {
				value = monthly_character_income
				multiply = 4
			}
			if = {
				limit = {
					government_has_flag = government_is_tribal
				}
				divide = 2
			}
		}
	}
	else = {
		remove_short_term_gold = {
			value = max_military_strength
			divide = 50
			add = {
				value = monthly_character_income
				multiply = 4
			}
			if = {
				limit = {
					government_has_flag = government_is_tribal
				}
				divide = 2
			}
		}
	}
}

gpt_war_council_gold_cost_halved_effect = {
	if = {
		limit = {
			has_treasury = yes
		}
		remove_treasury = {
			value = max_military_strength
			divide = 50
			add = {
				value = monthly_character_income
				multiply = 4
			}
			if = {
				limit = {
					government_has_flag = government_is_tribal
				}
				divide = 2
			}
			divide = 3
		}
	}
	else = {
		remove_short_term_gold = {
			value = max_military_strength
			divide = 50
			add = {
				value = monthly_character_income
				multiply = 4
			}
			if = {
				limit = {
					government_has_flag = government_is_tribal
				}
				divide = 2
			}
			divide = 3
		}
	}
}

gpt_war_council_prestige_cost_effect = {
	add_prestige = {
		value = max_military_strength
		divide = 40
		add = {
			value = monthly_character_income
			multiply = 5
		}
		if = {
			limit = {
				government_has_flag = government_is_tribal
			}
			divide = 1
		}
		multiply = -1
	}
}

gpt_war_council_piety_cost_effect = {
	add_piety = {
		value = max_military_strength
		divide = 40
		add = {
			value = monthly_character_income
			multiply = 4
		}
		if = {
			limit = {
				government_has_flag = government_is_tribal
			}
			divide = 2
		}
		multiply = -1
	}
}