Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | /** * Type definitions for vitalpoint types * Auto-generated by type migration script */ // Vital point system imports from shared types import type { DamageRange, KoreanText, PlayerArchetype, Position, TrigramStance, VitalPointCategory, VitalPointEffectType, VitalPointSeverity, } from "../../types"; import { EffectIntensity } from "../effects"; import { PlayerState } from "../player"; import { StatusEffect } from "../types"; export interface KoreanTechnique { id: string; name: { korean: string; english: string; romanized: string; }; koreanName: string; englishName: string; romanized: string; description: { korean: string; english: string; }; stance: TrigramStance; type: string; damageType: string; damage: number; kiCost: number; staminaCost: number; accuracy: number; range: number; executionTime: number; recoveryTime: number; critChance: number; critMultiplier: number; effects: any[]; } /** * Korean text with romanization for vital point names */ export interface VitalPointNames { readonly korean: string; readonly english: string; readonly romanized: string; } /** * Unified VitalPoint interface matching actual usage */ export interface VitalPoint { readonly id: string; readonly names: VitalPointNames; // ✅ Fixed: Use 'names' structure readonly position: Position; readonly category: VitalPointCategory; readonly severity: VitalPointSeverity; readonly baseDamage?: number; readonly effects: readonly VitalPointEffect[]; readonly description: KoreanText; readonly targetingDifficulty: number; readonly effectiveStances: readonly TrigramStance[]; // Optional properties for backwards compatibility readonly korean?: KoreanText; readonly english?: string; readonly anatomicalName?: string; readonly radius?: number; // Make optional with default readonly damage?: DamageRange; readonly difficulty?: number; readonly requiredForce?: number; // Make optional with default readonly safetyWarning?: string; readonly location?: Position; readonly region?: string; } /** * Result of a vital point hit calculation * Unified to resolve property name conflicts */ export interface VitalPointHitResult { /** Whether the vital point was successfully hit */ readonly hit: boolean; /** The vital point that was hit (primary property name) */ readonly vitalPointHit?: VitalPoint; /** Legacy property name for backwards compatibility */ readonly vitalPoint?: VitalPoint; /** Base damage from the vital point hit */ readonly damage: number; /** Status effects applied by the vital point hit */ readonly effects: readonly StatusEffect[]; /** Severity level of the vital point hit */ readonly severity: VitalPointSeverity; /** Accuracy of the hit (0-1) */ readonly accuracy?: number; /** Additional multiplier applied to damage */ readonly multiplier?: number; } export interface VitalPointEffect { readonly id: string; readonly type: VitalPointEffectType; readonly intensity: EffectIntensity; readonly duration: number; readonly description: KoreanText; readonly stackable: boolean; readonly source?: string; } export interface DamageResult { readonly damage: number; readonly effects: readonly StatusEffect[]; readonly isCritical: boolean; readonly isVitalPoint: boolean; } export interface AnatomicalRegion { readonly id: string; readonly name: KoreanText; readonly boundaries: readonly Position[]; readonly vitalPoints: readonly VitalPoint[]; } export interface BodyRegionData { readonly id: string; readonly name: KoreanText; readonly boundaries: readonly Position[]; readonly vitalPoints: readonly VitalPoint[]; } export interface VitalPointSystemConfig { readonly precisionRequired: number; readonly damageMultipliers: Record<string, number>; readonly effectDurations: Record<string, number>; } export interface VitalPointSystemInterface { processHit: ( targetPosition: Position, technique: KoreanTechnique, baseDamage: number, attackerArchetype: PlayerArchetype, targetDimensions: { width: number; height: number }, targetedVitalPointId?: string | null ) => VitalPointHitResult; calculateHit: ( technique: KoreanTechnique, targetVitalPointId: string | null, accuracyRoll: number, attackerPosition: Position, defenderPosition: Position, defenderStance: TrigramStance ) => VitalPointHitResult; applyVitalPointEffects: ( player: PlayerState, vitalPoint: VitalPoint, intensityMultiplier?: number ) => PlayerState; } export interface VitalPointSystem { readonly getVitalPoints: () => readonly VitalPoint[]; readonly checkHit: (position: Position, force: number) => VitalPointHitResult; readonly calculateDamage: (vitalPoint: VitalPoint, force: number) => number; } // Define VitalPoint locally to avoid circular import export interface VitalPoint { readonly id: string; readonly names: { readonly korean: string; readonly english: string; readonly romanized: string; }; readonly position: Position; readonly category: VitalPointCategory; readonly severity: VitalPointSeverity; readonly baseDamage?: number; readonly effects: readonly VitalPointEffect[]; readonly description: KoreanText; readonly targetingDifficulty: number; readonly effectiveStances: readonly TrigramStance[]; } export interface VitalPointEffect { readonly id: string; readonly type: VitalPointEffectType; readonly intensity: EffectIntensity; readonly duration: number; readonly description: KoreanText; readonly stackable: boolean; readonly source?: string; } // Region data export interface RegionData { readonly name: KoreanText; readonly boundaries: readonly Position[]; readonly vitalPoints: readonly VitalPoint[]; readonly vulnerabilities: readonly string[]; } |