﻿character_current_weight = {
	value = current_weight
}

character_weight_conversion = {
	value = current_weight
	if = {
		limit = {
			character_current_weight <= 0
		}
		divide = 11.11
		add = 21.5
	}
	if = {
		limit = {
			character_current_weight > 0
		}
		divide = 5.88
		add = 21.5
	}
}

character_weight_conversion_pounds = {
	value = character_weight_conversion
	multiply = 2.2046
}

character_age_height = {
	value = 1
	subtract = {
		value = 16
		subtract = age
		multiply = 0.035
	}
	max = 1
}

character_height_modifiers = {
	if = {
		limit = {
			is_female = yes
		}
		value = 162
	}
	else = {
		value = 175
	}
	if = {
		limit = {
			has_trait = dwarf
		}
		multiply = 0.75
	}
	if = {
		limit = {
			has_trait = giant
		}
		multiply = 1.21
	}
	multiply = 0.01
	multiply = character_age_height
}

character_height_feet = {
	value = character_height_modifiers
	multiply = 3.28084
}