withAttackLook beta
Function of @v12-engine/editor
ts
export declare function withAttackLook(attacks: readonly AttackLook[] | undefined, place: number, change: Partial<Omit<AttackLook, 'shot'>> & {
shot?: Partial<ShotDef> | null;
}): AttackLook[] | undefined;A type's attacks' looks with one of them changed (LooksEntry.attacks): the fields given over those of its place, undefined taking one out, its shot field by field (shot), the places before it kept (empty where there were none). Nothing where no attack says anything