## Effect on 'Looming Debt' Mission
GRE_debt_effect = {
	if = {
		limit = {
			set_temp_variable = { loan_size_to_check = 200 }
            has_less_than_specific_loan_size = yes
		}
		add_stability = -0.025
        set_temp_variable = {
				inflation_to_gain = 0.05
			}
		add_inflation_with_tooltip_effect = yes
	}
	else_if = {
		limit = {
			set_temp_variable = { loan_size_to_check = 400 }
            has_less_than_specific_loan_size = yes
		}
		add_stability = -0.05
        set_temp_variable = {
				inflation_to_gain = 0.1
			}
		add_inflation_with_tooltip_effect = yes
	}
	else_if = {
		limit = {
			set_temp_variable = { loan_size_to_check = 600 }
            has_less_than_specific_loan_size = yes
		}
		decrease_ps_by_one = yes
		add_stability = -0.05
        set_temp_variable = {
				inflation_to_gain = 0.2
			}
		add_inflation_with_tooltip_effect = yes
	}
}

GRE_acquire_train_equipment = {
    if = {
        limit = {
            has_tech = basic_train
            NOT = { has_tech = train_1855 }
        }
        add_equipment_to_stockpile  = {
            type = train_equipment_1
            amount = 25
            producer = GRE
        }
    }
    else_if = {
        limit = {
            has_tech = train_1855
            NOT = { has_tech = train_1865 }
        }
        add_equipment_to_stockpile  = {
            type = train_equipment_2
            amount = 25
            producer = GRE
        }
    }
    else = {
        add_equipment_to_stockpile  = {
            type = train_equipment_3
            amount = 25
            producer = GRE
        }
    }
}

GRE_raise_taxes_effect = {
    if = {
        limit = {
            NOT = {
                OR = {
                    has_government = autocracy
                }
            }
        }
        decrease_ps_by_one = yes
        if = {
            limit = {
                has_idea = taxation_level_1
            }
            swap_ideas = {
                remove_idea = taxation_level_1
                add_idea = taxation_level_2
            }  
            set_temp_variable = { money_to_gain = -0.5 }
            add_money_with_tooltip_effect = yes
        }
        else_if = {
            limit = {
                has_idea = taxation_level_2
            }
            swap_ideas = {
                remove_idea = taxation_level_2
                add_idea = taxation_level_3
            }
            set_temp_variable = { money_to_gain = -0.5 }
            add_money_with_tooltip_effect = yes
        }
        else_if = {
            limit = {
                has_idea = taxation_level_3
            }
            swap_ideas = {
                remove_idea = taxation_level_3
                add_idea = taxation_level_4
            }
            set_temp_variable = { money_to_gain = -0.5 }
            add_money_with_tooltip_effect = yes
        }
        else_if = {
            limit = {
                has_idea = taxation_level_4
            }
            swap_ideas = {
                remove_idea = taxation_level_4
                add_idea = taxation_level_5
            }
            set_temp_variable = { money_to_gain = -0.5 }
            add_money_with_tooltip_effect = yes
        }
    }
    else = {
        if = {
            limit = {
                has_idea = taxation_level_1
            }
            swap_ideas = {
                remove_idea = taxation_level_1
                add_idea = taxation_level_2
            }
            set_temp_variable = { money_to_gain = -0.5 }
            add_money_with_tooltip_effect = yes
        }
        else_if = {
            limit = {
                has_idea = taxation_level_2
            }
            swap_ideas = {
                remove_idea = taxation_level_2
                add_idea = taxation_level_3
            }
            set_temp_variable = { money_to_gain = -0.5 }
            add_money_with_tooltip_effect = yes
        }
        else_if = {
            limit = {
                has_idea = taxation_level_3
            }
            swap_ideas = {
                remove_idea = taxation_level_3
                add_idea = taxation_level_4
            }
            set_temp_variable = { money_to_gain = -0.5 }
            add_money_with_tooltip_effect = yes
        }
        else_if = {
            limit = {
                has_idea = taxation_level_4
            }
            swap_ideas = {
                remove_idea = taxation_level_4
                add_idea = taxation_level_5
            }
            set_temp_variable = { money_to_gain = -0.5 }
            add_money_with_tooltip_effect = yes
        }
    }
}

GRE_combat_debt_control = {
    if = {
        limit = { has_idea = GRE_idea_control_debt_1 }
        swap_ideas = {
            remove_idea = GRE_idea_control_debt_1
            add_idea = GRE_idea_control_debt_2
        }
    }
    else_if = {
        limit = { has_idea = GRE_idea_control_debt_2 }
        swap_ideas = {
            remove_idea = GRE_idea_control_debt_2
            add_idea = GRE_idea_control_debt_3
        }
    }
    else_if = {
        limit = { has_idea = GRE_idea_control_debt_3 }
        swap_ideas = {
            remove_idea = GRE_idea_control_debt_3
            add_idea = GRE_idea_control_debt_4
        }
    }
    else_if = {
        limit = { has_idea = GRE_idea_control_debt_4 }
        custom_effect_tooltip = GRE_tt_repay_debt
        remove_ideas = {
            GRE_idea_control_debt_4
            GRE_idea_national_debt
        }
        set_temp_variable = { money_to_gain = -0.5 }
        add_money_with_tooltip_effect = yes
        add_stability = 0.1
        add_political_power = 100
    }
}
