Calculate facial damage from hit
Updates facial damage state based on hit location and damage amount. Different facial regions accumulate damage independently.
Current facial damage state
Location of hit on face ("left_eye", "right_eye", "mouth", "nose", etc.)
Amount of damage dealt (0-100)
Updated facial damage state
const damage = calculateFacialDamage( DEFAULT_FACIAL_DAMAGE, "left_eye", 25);// Returns damage state with left eye swelling increased Copy
const damage = calculateFacialDamage( DEFAULT_FACIAL_DAMAGE, "left_eye", 25);// Returns damage state with left eye swelling increased
얼굴손상계산
Calculate facial damage from hit
Updates facial damage state based on hit location and damage amount. Different facial regions accumulate damage independently.