﻿studing_potions_perk = {
	lifestyle = intrigue_lifestyle
	tree = alchemist
	position = { 0 0 }
	icon = node_intrigue

	auto_selection_weight = {
		value = 11
		if = {
			limit = {
				has_education_intrigue_trigger = yes
			}
			add = 1989
		}
		if = {
			limit = {
				OR = {
					has_trait = lifestyle_physician
					has_trait = lifestyle_herbalist
					has_trait = lifestyle_mystic
				}
			}
			multiply = 5
		}
		if = {
			limit = {
				has_trait = witch
			}
			multiply = 10
		}
		if = {
			limit = {
				can_start_new_lifestyle_tree_trigger = no
			}
			multiply = 0
		}
	}

	character_modifier = {
		owned_hostile_scheme_success_chance_add = 15
		enemy_hostile_scheme_success_chance_add = -15
	}
}

studing_herbs_perk = {
	lifestyle = intrigue_lifestyle
	tree = alchemist
	position = { 2 0 }
	icon = node_intrigue

	auto_selection_weight = {
		multiply = 0
	}

	character_modifier = {
		negate_health_penalty_add = 0.5
		enemy_hostile_scheme_success_chance_add = -10
	}
}

basic_alchemy_perk = {
	lifestyle = intrigue_lifestyle
	tree = alchemist
	position = { 1 1 }
	icon = node_intrigue

	parent = studing_herbs_perk
	parent = studing_potions_perk

	character_modifier = {
		health = 0.25
	}
}

potion_master_perk = {
	lifestyle = intrigue_lifestyle
	tree = alchemist
	position = { 0 2 }
	icon = node_intrigue

	parent = basic_alchemy_perk

	effect = {
		custom_tooltip = potion_master_perk_description
	}
}


herb_gardens_perk = {
	lifestyle = intrigue_lifestyle
	tree = alchemist
	position = { 2 2 }
	icon = node_intrigue

	parent = basic_alchemy_perk

	name = {
		first_valid = {
			triggered_desc = {
				trigger = { is_landless_adventurer = yes }
				desc = herbs_rerserve_perk_adventurer_name
			}
			desc = herb_gardens_perk_name
		}
	}

	government_character_modifier = {
		flag = government_is_landless_adventurer
		epidemic_travel_danger = -15
		negate_health_penalty_add = 0.25
	}

	government_character_modifier = {
		flag = government_is_landless_adventurer
		invert_check = yes
		stress_gain_mult = -0.15
		negate_health_penalty_add = 0.5
		epidemic_resistance = 5
	}
}

the_secret_of_life_perk = {
	lifestyle = intrigue_lifestyle
	tree = alchemist
	position = { 1 3 }
	icon = node_intrigue

	parent = potion_master_perk
	parent = herb_gardens_perk

	character_modifier = {
		life_expectancy = 3
		health = 0.25
	}
}

making_fools_gold_perk = {
	lifestyle = intrigue_lifestyle
	tree = alchemist
	position = { 1 4 }
	icon = node_intrigue

	parent = the_secret_of_life_perk

	government_character_modifier = {
		flag = government_is_landless_adventurer
		domicile_monthly_gold_mult = 0.75
	}

	government_character_modifier = {
		flag = government_is_landless_adventurer
		invert_check = yes
		monthly_income_mult = 0.25
	}
}

alchemist_perk = {
	lifestyle = intrigue_lifestyle
	tree = alchemist
	position = { 1 5 }
	icon = trait_alchemist

	parent = making_fools_gold_perk

	trait = alchemist

	effect = {
		add_trait_force_tooltip = alchemist
	}
}