Apply damage to a specific body part.
Korean: 신체부위 피해 적용
Reduces health of the specified body part by the damage amount. Health is clamped to 0-maxHealth range.
Current body part health
Body part to damage
Damage amount to apply
OptionalmaxHealth: BodyPartMaxHealthOptional maximum health limits
Updated body part health
Apply distributed damage to body parts from a hit.
Korean: 분산 피해 적용
Takes total damage and distributes it across primary and secondary body parts based on the hit location.
Current body part health
Hit location
Total damage to distribute
OptionalmaxHealth: BodyPartMaxHealthOptional maximum health limits
Updated body part health
Calculate aggregate health from body parts.
Korean: 종합 체력 계산
Computes overall health as average of all body part health values. This maintains backwards compatibility with single health bar systems.
Body part health
Aggregate health value (0-100)
Calculate combat capability effects from body part damage.
Korean: 전투 능력 효과 계산
Analyzes body part health and returns multipliers for various combat capabilities. Implements acceptance criteria:
Current body part health
OptionalmaxHealth: BodyPartMaxHealthMaximum health values
Combat capability effect multipliers
Create default body part health with all parts at maximum.
Korean: 기본 신체부위 체력 생성
Optional custom max health per part (default: 100)
Body part health structure with all parts at max HP
Create default maximum health values for body parts.
Korean: 기본 최대 체력 생성
Base maximum health per part
Maximum health structure
Get all body part statuses for UI.
Korean: 모든 신체부위 상태 조회
Returns status information for all body parts in a single call.
Current body part health
Maximum health values
Array of status information for all parts
Get body part status for UI display.
Korean: 신체부위 상태 조회
Provides UI-friendly status information including color coding, status text, and critical/disabled flags.
Current body part health
Maximum health values
Body part to query
Status information for display
Distribute damage across body parts based on hit location.
Korean: 피해 분배
Maps a BodyRegion hit location to primary and secondary body parts, distributing damage according to impact mechanics.
Hit location
Damage distribution configuration
Heal a specific body part.
Korean: 신체부위 치유
Increases health of the specified body part by the heal amount. Health is clamped to 0-maxHealth range.
Current body part health
Body part to heal
Amount of health to restore
OptionalmaxHealth: BodyPartMaxHealthOptional maximum health limits
Updated body part health
Check if player is incapacitated based on body part health.
Korean: 무력화 상태 확인
Player is incapacitated if:
Current body part health
Whether player is incapacitated
Body Part Health System class.
Korean: 신체부위 체력 시스템 클래스
Provides methods for managing body part health, calculating effects, and distributing damage based on hit locations.
Example