﻿bdp_battlefield_stature_value = {
	value = prowess

	if = {
		limit = { has_trait = education_martial_prowess_5 }
		add = 5
	}
	else_if = {
		limit = { has_trait = education_martial_prowess_4 }
		add = 3
	}
	else_if = {
		limit = { has_trait = education_martial_prowess_3 }
		add = 2
	}
	else_if = {
		limit = { has_trait = education_martial_prowess_2 }
		add = 1
	}

	if = {
		limit = {
			has_trait = lifestyle_blademaster
			has_trait_xp = { trait = lifestyle_blademaster value >= 100 }
		}
		add = 6
	}
	else_if = {
		limit = {
			has_trait = lifestyle_blademaster
			has_trait_xp = { trait = lifestyle_blademaster value >= 50 }
		}
		add = 4
	}
	else_if = {
		limit = { has_trait = lifestyle_blademaster }
		add = 2
	}

	if = {
		limit = {
			has_trait = tourney_participant
			has_trait_xp = { trait = tourney_participant track = foot value >= 100 }
		}
		add = 3
	}
	else_if = {
		limit = {
			has_trait = tourney_participant
			has_trait_xp = { trait = tourney_participant track = foot value >= 65 }
		}
		add = 2
	}
	else_if = {
		limit = {
			has_trait = tourney_participant
			has_trait_xp = { trait = tourney_participant track = foot value >= 30 }
		}
		add = 1
	}

	if = {
		limit = {
			OR = {
				has_trait = education_martial_4
				has_trait = education_martial_5
			}
		}
		add = 3
	}
	else_if = {
		limit = { has_trait = education_martial_3 }
		add = 2
	}
	else_if = {
		limit = { has_trait = education_martial_2 }
		add = 1
	}

	if = {
		limit = { has_trait = kingsguard }
		add = 3
	}
	if = {
		limit = { has_trait = berserker }
		add = 2
	}
	if = {
		limit = { has_trait = strong }
		add = 1
	}
	if = {
		limit = { has_trait = giant }
		add = 2
	}

	if = {
		limit = { has_trait = physique_good_3 }
		add = 3
	}
	else_if = {
		limit = { has_trait = physique_good_2 }
		add = 2
	}
	else_if = {
		limit = { has_trait = physique_good_1 }
		add = 1
	}

	if = {
		limit = {
			has_variable = bdp_battlefield_reputation
			var:bdp_battlefield_reputation >= 60
		}
		add = 8
	}
	else_if = {
		limit = {
			has_variable = bdp_battlefield_reputation
			var:bdp_battlefield_reputation >= 30
		}
		add = 5
	}
	else_if = {
		limit = {
			has_variable = bdp_battlefield_reputation
			var:bdp_battlefield_reputation >= 10
		}
		add = 2
	}

	if = {
		limit = {
			has_variable = bdp_battlefield_historic_deeds
			var:bdp_battlefield_historic_deeds >= 2
		}
		add = 4
	}
	else_if = {
		limit = {
			has_variable = bdp_battlefield_historic_deeds
			var:bdp_battlefield_historic_deeds >= 1
		}
		add = 2
	}
}
