﻿
enduring_hardships_perk = {
	lifestyle = martial_lifestyle
	tree = authority
	position = { 0 2 }
	icon = node_martial

	parent = a_mans_home_perk
	
	government_character_modifier = {
		flag = government_is_landless_adventurer
		invert_check = yes
		additional_fort_level = 1
		epidemic_resistance = 10
	}
	
	government_character_modifier = {
		flag = government_is_landless_adventurer
		provisions_use_mult = -0.2
		defender_advantage = 10
		hard_casualty_modifier = -0.25
	}
	
	effect = {
		if = {
			limit = {
				NOT = { government_has_flag = government_is_landless_adventurer }
			}
			custom_description_no_bullet = {
				text = enduring_hardships_perk_effect
			}
		}
		custom_description_no_bullet = {
			text = unlocks_quartermaster_effect		
		}
	}
}

strict_organization_perk = {
	lifestyle = martial_lifestyle
	tree = authority
	position = { 2 1 }
	icon = node_martial

	parent = serve_the_crown_perk
	
	name = {
		first_valid = {
			triggered_desc = {
				trigger = { is_landless_adventurer = yes }
				desc = strict_organization_perk_adventurer_name
			}
			desc = strict_organization_perk_name
		}
	}
	
	effect = {
		if = {
			limit = {
				NOT = { government_has_flag = government_is_landless_adventurer }
			}
			custom_description_no_bullet = {
				text = strict_organization_perk_effect
			}
		}
		if = {
			limit = {
				government_has_flag = government_is_landless_adventurer
			}	
			custom_tooltip = {
				text = adventurer_strict_organization_perk_effect
			}
		}
		if = {
			limit = {
				has_ep3_dlc_trigger = yes
				government_allows = administrative
			}
			custom_description_no_bullet = {
				text = admin_positions_of_power_effect # Reused for loc
			}
		}
		custom_description_no_bullet = {
			text = unlocks_lord_sheriff_effect		
		}
	}
}

