Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.19
    Preparing search index...

    Function resolveTechniqueAnimation

    • Resolve a technique object to its best-matching animation key.

      This is the single, authoritative entry point for screens and systems that need to know which skeletal animation to play for a given technique.

      Resolution order (most specific → least):

      1. technique.animationId if present and registered (KoreanTechnique / TrigramStanceTechnique).
      2. technique.id if registered (Technique objects from getTechniquesForStanceAndArchetype already carry their stance-specific id, e.g. "geon_heaven_strike").
      3. Regex-based fallback on technique.name.english, then technique.name.korean.
      4. "jab" as ultimate fallback.

      Passing the technique object (rather than a loose string) avoids the long-standing bug where technique.name.english — e.g. "Thunder Strike" — would match only the generic /strike/ rule and collapse every stance-specific attack to the jab animation.

      Parameters

      • technique:
            | {
                animationId?: string;
                id?: string;
                name?: { english?: string; korean?: string };
            }
            | null
            | undefined

        Technique or technique-like object.

      Returns string

      Animation key registered in ALL_ANIMATIONS.

      기술객체로애니메이션해결