From cc3cbc1d2f3c9dfbeff28e14f742ce2c37431068 Mon Sep 17 00:00:00 2001 From: Tetardtek Date: Tue, 24 Mar 2026 17:58:56 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20potion=20=C3=A9nergie=20affiche=20+30=20?= =?UTF-8?q?endurance=20au=20lieu=20de=20+50%=20PV?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/ShopPage.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/ShopPage.tsx b/frontend/src/pages/ShopPage.tsx index 93342dc..51473d7 100644 --- a/frontend/src/pages/ShopPage.tsx +++ b/frontend/src/pages/ShopPage.tsx @@ -30,6 +30,7 @@ interface ShopItem { rarity: string; attackBonus: number; defenseBonus: number; + forceBonus: number; buyPrice: number; minLevel: number; zone: string | null; @@ -58,8 +59,8 @@ function ShopItemCard({ item, onBuy, buying }: { item: ShopItem; onBuy: () => vo
{item.attackBonus > 0 && +{item.attackBonus} ATK} {item.defenseBonus > 0 && +{item.defenseBonus} DEF} - {item.type === 'consumable' && (item as any).forceBonus > 0 - ? +{(item as any).forceBonus} endurance + {item.type === 'consumable' && item.forceBonus > 0 + ? +{item.forceBonus} endurance : item.type === 'consumable' && +50% PV } {item.minLevel > 1 && Niv. {item.minLevel}+}