From abc081487c85e8d139909b2600de56c142f89ba2 Mon Sep 17 00:00:00 2001 From: Dorian Date: Fri, 13 Mar 2026 05:23:53 +0000 Subject: [PATCH] fix: pass archetype/customization to human morph sprite generation (BUG-10) Human morph sprites were generated without archetype and customization params, causing fallback to generic sprites instead of the bot's actual appearance. Co-Authored-By: Claude Opus 4.6 --- frontend/src/game/FightScene.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/game/FightScene.ts b/frontend/src/game/FightScene.ts index 42a1192..3ccc795 100644 --- a/frontend/src/game/FightScene.ts +++ b/frontend/src/game/FightScene.ts @@ -125,11 +125,11 @@ export async function createFightScene(config: FightSceneConfig) { // Preload bot sprites for human fighters (used when humans morph into bots) if (isHumanA) { - const botSheetA = generateSpriteSheet(botA.seed, botA.tier, colorsA.primary, colorsA.secondary) + const botSheetA = generateSpriteSheet(botA.seed, botA.tier, colorsA.primary, colorsA.secondary, botA.archetype, botA.customization) loadSpriteWithTimeout('botA_morph', botSheetA, { sliceX: MAX_FRAMES, sliceY: TOTAL_ROWS, anims: spriteAnims }) } if (isHumanB) { - const botSheetB = generateSpriteSheet(botB.seed, botB.tier, colorsB.primary, colorsB.secondary) + const botSheetB = generateSpriteSheet(botB.seed, botB.tier, colorsB.primary, colorsB.secondary, botB.archetype, botB.customization) loadSpriteWithTimeout('botB_morph', botSheetB, { sliceX: MAX_FRAMES, sliceY: TOTAL_ROWS, anims: spriteAnims }) }