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

    Interface BodyPartDamageDistribution

    Damage distribution configuration for body parts.

    Korean: 신체 부위 피해 분배

    Defines how damage from attacks is distributed across body parts based on the hit location and attack type. Not all damage goes to a single part; impact can affect adjacent regions.

    // Strike to head distributes damage
    const distribution: BodyPartDamageDistribution = {
    primary: { part: BodyPart.HEAD, percentage: 0.8 },
    secondary: [
    { part: BodyPart.NECK, percentage: 0.2 }
    ]
    };

    신체부위피해분배

    interface BodyPartDamageDistribution {
        primary: { part: BodyPart; percentage: number };
        secondary: readonly { part: BodyPart; percentage: number }[];
    }
    Index

    Properties

    Properties

    primary: { part: BodyPart; percentage: number }

    Primary body part receiving most damage

    secondary: readonly { part: BodyPart; percentage: number }[]

    Secondary body parts receiving splash damage