﻿gpt_merc_strenght_value_pos = {
	value = scope:actor.max_military_strength
	if = { limit = { scope:actor.highest_held_title_tier = 2 } divide = 3 }
	if = { limit = { scope:actor.highest_held_title_tier = 3 } divide = 4 }
	if = { limit = { scope:actor.highest_held_title_tier = 4 } divide = 5 }
	if = { limit = { scope:actor.highest_held_title_tier = 5 } divide = 6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 2 } } multiply = 0.6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 3 } } multiply = 0.6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 4 } } multiply = 0.6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 5 } } multiply = 0.6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 6 } } multiply = 0.6 }
	multiply = 0.75
	min = {
		value = scope:actor.monthly_character_income
		multiply = 6
		min = 40
	}
}

gpt_merc_strenght_value_neg = {
	value = scope:actor.max_military_strength
	if = { limit = { scope:actor.highest_held_title_tier = 2 } divide = 3 }
	if = { limit = { scope:actor.highest_held_title_tier = 3 } divide = 4 }
	if = { limit = { scope:actor.highest_held_title_tier = 4 } divide = 5 }
	if = { limit = { scope:actor.highest_held_title_tier = 5 } divide = 6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 2 } } multiply = 0.6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 3 } } multiply = 0.6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 4 } } multiply = 0.6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 5 } } multiply = 0.6 }
	if = { limit = { scope:actor.any_hired_mercenary = { count = 6 } } multiply = 0.6 }
	multiply = 0.75
	multiply = -1
	max = {
		value = scope:actor.monthly_character_income
		multiply = 6
		multiply = -1
		max = -40
	}
}

gpt_merc_pay_short_term_gold = {
	value = {
		value = root.max_military_strength
		if = { limit = { root.highest_held_title_tier = 2 } divide = 3 }
		if = { limit = { root.highest_held_title_tier = 3 } divide = 4 }
		if = { limit = { root.highest_held_title_tier = 4 } divide = 5 }
		if = { limit = { root.highest_held_title_tier = 5 } divide = 6 }
		if = { limit = { root.any_hired_mercenary = { count = 2 } } multiply = 0.6 }
		if = { limit = { root.any_hired_mercenary = { count = 3 } } multiply = 0.6 }
		if = { limit = { root.any_hired_mercenary = { count = 4 } } multiply = 0.6 }
		if = { limit = { root.any_hired_mercenary = { count = 5 } } multiply = 0.6 }
		if = { limit = { root.any_hired_mercenary = { count = 6 } } multiply = 0.6 }
		multiply = 1.5
		min = {
			value = scope:actor.monthly_character_income
			multiply = 6
			min = 80
		}
		if = { limit = { root = { is_independent_ruler = no } } divide = 2 }
	}
}