fix: potion énergie affiche +30 endurance au lieu de +50% PV
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 32s
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 32s
This commit is contained in:
@@ -30,6 +30,7 @@ interface ShopItem {
|
|||||||
rarity: string;
|
rarity: string;
|
||||||
attackBonus: number;
|
attackBonus: number;
|
||||||
defenseBonus: number;
|
defenseBonus: number;
|
||||||
|
forceBonus: number;
|
||||||
buyPrice: number;
|
buyPrice: number;
|
||||||
minLevel: number;
|
minLevel: number;
|
||||||
zone: string | null;
|
zone: string | null;
|
||||||
@@ -58,8 +59,8 @@ function ShopItemCard({ item, onBuy, buying }: { item: ShopItem; onBuy: () => vo
|
|||||||
<div style={{ display: 'flex', gap: 12, fontSize: 11, color: '#6b7a99' }}>
|
<div style={{ display: 'flex', gap: 12, fontSize: 11, color: '#6b7a99' }}>
|
||||||
{item.attackBonus > 0 && <span style={{ display: 'flex', alignItems: 'center', gap: 3 }}><Sword size={10} color="#f4c94e" /> +{item.attackBonus} ATK</span>}
|
{item.attackBonus > 0 && <span style={{ display: 'flex', alignItems: 'center', gap: 3 }}><Sword size={10} color="#f4c94e" /> +{item.attackBonus} ATK</span>}
|
||||||
{item.defenseBonus > 0 && <span style={{ display: 'flex', alignItems: 'center', gap: 3 }}><Shield size={10} color="#5ba4f5" /> +{item.defenseBonus} DEF</span>}
|
{item.defenseBonus > 0 && <span style={{ display: 'flex', alignItems: 'center', gap: 3 }}><Shield size={10} color="#5ba4f5" /> +{item.defenseBonus} DEF</span>}
|
||||||
{item.type === 'consumable' && (item as any).forceBonus > 0
|
{item.type === 'consumable' && item.forceBonus > 0
|
||||||
? <span style={{ display: 'flex', alignItems: 'center', gap: 3 }}><Zap size={10} color="#5ba4f5" /> +{(item as any).forceBonus} endurance</span>
|
? <span style={{ display: 'flex', alignItems: 'center', gap: 3 }}><Zap size={10} color="#5ba4f5" /> +{item.forceBonus} endurance</span>
|
||||||
: item.type === 'consumable' && <span style={{ display: 'flex', alignItems: 'center', gap: 3 }}><Heart size={10} color="#e84040" /> +50% PV</span>
|
: item.type === 'consumable' && <span style={{ display: 'flex', alignItems: 'center', gap: 3 }}><Heart size={10} color="#e84040" /> +50% PV</span>
|
||||||
}
|
}
|
||||||
{item.minLevel > 1 && <span>Niv. {item.minLevel}+</span>}
|
{item.minLevel > 1 && <span>Niv. {item.minLevel}+</span>}
|
||||||
|
|||||||
Reference in New Issue
Block a user