feat: guardian defensive stats — shield, barrier, health regen + stat label renames
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m21s

This commit is contained in:
2026-05-29 18:18:00 +02:00
parent 71c68443c4
commit 7bd28e2085
9 changed files with 196 additions and 76 deletions
+17 -2
View File
@@ -180,12 +180,27 @@ function NextGuardianCard({ nextGuardian, nextGuardianData }: { nextGuardian: nu
>
{nextGuardianData.element.join(' + ')}
</Badge>
<span className="text-xs text-gray-500">HP: {fmt(nextGuardianData.hp)}</span>
<span className="text-xs text-gray-500">Health: {fmt(nextGuardianData.hp)}</span>
{nextGuardianData.armor && (
<span className="text-xs text-gray-500">
Armor: {Math.round(nextGuardianData.armor * 100)}%
</span>
)}
{nextGuardianData.shield && nextGuardianData.shield > 0 && (
<span className="text-xs text-cyan-400">
Shield: {fmt(nextGuardianData.shield)}
</span>
)}
{nextGuardianData.barrier && nextGuardianData.barrier > 0 && (
<span className="text-xs text-blue-400">
Barrier: {Math.round(nextGuardianData.barrier * 100)}%
</span>
)}
{nextGuardianData.healthRegen && nextGuardianData.healthRegen > 0 && (
<span className="text-xs text-green-400">
Regen: {nextGuardianData.healthRegenIsPercent ? nextGuardianData.healthRegen + '%/tick' : nextGuardianData.healthRegen + '/tick'}
</span>
)}
</div>
</div>
</div>
@@ -289,7 +304,7 @@ function GuardianRosterItem({ floor, guardian, isDefeated }: { floor: number; gu
>
{guardian.element.join(' + ')}
</span>
<span className="text-[10px] text-gray-500">HP: {fmt(guardian.hp)}</span>
<span className="text-[10px] text-gray-500">Health: {fmt(guardian.hp)}</span>
</div>
</div>
</div>