StaticcalculateStaticcalculateStaticcalculateCalculate earth's supportive healing from Gon technique.
Korean: 대지 치유 계산 (Earth Healing Calculation)
Implements Korean martial arts philosophy: "대지는 모든 것을 품고 키운다" (The earth embraces and nurtures all things)
Gon techniques restore HP to the attacker after successful execution based on their connection with earth energy. Traditional techniques like Ssireum throws provide stronger healing due to cultural authenticity.
Healing Formula:
healingAmount = supportiveHealing × (1 + earthAffinityBonus)
Supportive Healing Ranges:
Korean martial arts technique (checks for ExtendedGonTechnique)
Player's earth affinity stat modifier (0.0-1.0)
HP healing amount (0 if not a Gon technique)
StaticcalculateCalculate comprehensive vital point damage with all modifiers.
Korean: 종합 급소 피해 계산 (Comprehensive Vital Point Damage Calculation)
Integrates all damage modifiers including:
finalDamage =
baseDamage ×
stanceEffectiveness ×
vitalPointMultiplier ×
accuracyBonus ×
meridianBonus ×
timeBonus ×
archetypeBonus ×
hipRotationModifier ×
criticalMultiplier ×
variance ×
defenseReduction
Attacking player state
Defending player state
Korean martial arts technique being used
Result of vital point hit detection
Current hour of day (0-23) for meridian flow
Current meridian disruption states (0=blocked, 1=normal)
Hip rotation angle in radians (optional, defaults to 0)
OptionalkickHipState: HipRotationStateHip rotation state for kicks (optional, for kick-specific power)
Comprehensive damage result with all modifiers applied
Private StaticcalculatePrivateCalculate meridian flow damage bonus based on time of day.
Korean: 경락 유효성 피해 보너스 계산
Calculates bonus damage when striking vital points during their peak meridian flow hours. Peak flow provides +30% damage bonus.
ID of the vital point being struck
Current hour of day (0-23)
Current meridian disruption states
Damage multiplier (1.0-1.3)
StaticcalculateCalculate technique damage with vital point consideration
StaticcalculateCalculate throw/takedown impact damage with ground multiplier.
Korean: 던지기 충격 피해 계산 (Throw Impact Damage Calculation)
Applies groundImpactMultiplier from Gon (Earth) techniques when opponent hits the ground after a throw or takedown. Integrates with base damage calculation to provide authentic Ssireum/Hapkido throw mechanics.
Formula:
impactDamage = baseDamage × groundImpactMultiplier × strengthModifier
Ground Impact Multiplier Ranges:
Korean martial arts technique (checks for ExtendedGonTechnique)
Base damage before ground impact modifier
Attacker's strength stat for scaling
Optional configuration for damage calculation
OptionalapplyVariance?: booleanWhether to apply random ±5% variance (default: true)
Enhanced damage result with ground impact applied
const throwDamage = DamageCalculator.calculateThrowImpactDamage(
ssireumThrowTechnique, // groundImpactMultiplier: 1.7
50, // base damage
80 // attacker strength
);
// Result: ~85 damage (50 × 1.7 × 1.0) with ±5% variance
// For deterministic testing:
const testDamage = DamageCalculator.calculateThrowImpactDamage(
technique, 50, 80, { applyVariance: false }
);
Private StaticcalculatePrivateCalculate time-of-day bonus for Dark Ops techniques.
Korean: 시간대 보너스 계산
Dark Ops techniques gain +20% damage at night (20:00-05:59) to reflect tactical advantage of darkness.
Technique being used
Current hour of day (0-23)
Time bonus multiplier (1.0 or 1.2)
StaticcalculateCalculate vital point damage with proper archetype bonuses
Private StaticdeterminePrivate StaticgetPrivateGet archetype-specific damage bonus for technique and vital point.
Korean: 원형 특화 피해 보너스
Each archetype has specialized bonuses for different techniques and vital point categories:
Attacker's archetype
Technique being used
OptionalvitalPoint: VitalPointVital point being struck (optional)
Archetype damage multiplier (1.0-1.5)
StaticgetPrivate Static ReadonlyACCURACY_Accuracy bonus scaling constants Maps 0.0-1.0 accuracy to 0.8x-1.2x multiplier
Private Static ReadonlyACCURACY_Private Static ReadonlySEVERITY_Vital point severity damage multipliers
Calculate critical hit chance