﻿vts_lifestyle_perks_amount = {
	value = 0
	add = stewardship_lifestyle_perks
	add = intrigue_lifestyle_perks
	add = martial_lifestyle_perks
	add = diplomacy_lifestyle_perks
	add = learning_lifestyle_perks
	add = wanderer_lifestyle_perks
}
vts_lifestyle_perk_points_amount = {
	value = 0
	add = stewardship_lifestyle_perk_points
	add = intrigue_lifestyle_perk_points
	add = martial_lifestyle_perk_points
	add = diplomacy_lifestyle_perk_points
	add = learning_lifestyle_perk_points
	add = wanderer_lifestyle_perk_points
}
vts_poi_value = {
	value = 0
	add = var:poi_visited
}
vts_known_the_world_value = {
	value = var:poi_visited
	divide = 2
	ceiling = yes
}
vts_refined_technique_value = {
	value = 0
	add = var:vts_refined_technique_counter
}
vts_educational_friendships_value = {
	value = 0
	add = var:vts_educational_friendships_counter
}
vts_dirty_old_dog_value = {
	value = age
}
vts_hidden_coffers_value = {
	value = age
	multiply = 10
}
vts_divine_conversation_value = {
	value = 0
	add = num_virtuous_traits
	multiply = 100
}
vts_legacy_of_years_value = {
	value = age
	add = number_of_lifestyle_traits
	every_character_artifact = { add = 1 }
	multiply = vts_legacy_of_years_erudition_tracks_value
}
vts_legacy_of_years_erudition_tracks_value = {
	value = 1
	add = dynasty.erudition_legacy_track_perks
} 
vts_safecracker_value = {
	value = stewardship
}
vts_collect_the_scraps_value = {
	value = stewardship
}
vts_blinded_by_gold_value = {
	value = stewardship
}
vts_direct_diplomacy_value = {
	value = intrigue
}
vts_religious_justification_value = {
	value = learning
}
vts_walk_the_sacred_land_value = {
	value = learning
}
vts_empty_the_pockets_value = {
	value = prowess
}
vts_our_deeds_were_sung_value = {
	value = prowess
}
vts_spectacle_of_pain_value = {
	value = 0
	every_prisoner = {
		limit = { 
			is_alive = yes
			is_in_prison_type = dungeon
		}
		add = 1
	}
}
vts_allowance_value = {
	value = 0
	every_child = {
		limit = { 
			is_child_of = root
			is_alive = yes
			age < 17
		}
		add = 1
	}
	multiply = 20
}
vts_lifestyle_traits_amount = {
	value = 0	
	if = {
		limit = {
			has_trait = theologian
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = scholar
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = whole_of_body
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = gallant
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = strategist
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = overseer
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = schemer
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = torturer
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = seducer
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = avaricious
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = architect
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = administrator
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = diplomat
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = family_first
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = august
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = lifestyle_wayfarer
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = lifestyle_voyager
		}
		add = 1
	}
	if = {
		limit = {
			has_trait = lifestyle_surveyor
		}
		add = 1
	}
}