From 391e0c233acddbd7b9c6876d5e7291c42b6e14ee Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Wed, 22 Apr 2026 00:50:27 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=20SwitchPanel=20?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=20calculateStats=20?= =?UTF-8?q?=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- packages/pokemon/src/ui/SwitchPanel.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/pokemon/src/ui/SwitchPanel.tsx b/packages/pokemon/src/ui/SwitchPanel.tsx index 400d91b55..2dd861e05 100644 --- a/packages/pokemon/src/ui/SwitchPanel.tsx +++ b/packages/pokemon/src/ui/SwitchPanel.tsx @@ -2,7 +2,6 @@ import React from 'react' import { Box, Text } from '@anthropic/ink' import type { Creature } from '../types' import { getCreatureName } from '../core/creature' -import { calculateStats } from '../core/creature' const CYAN = 'ansi:cyan' const GREEN = 'ansi:green' @@ -23,10 +22,6 @@ export function SwitchPanel({ party, activeId, onSelect, onCancel }: SwitchPanel 换人 {party.map((creature, i) => { - const stats = calculateStats(creature) - const isActive = creature.id === activeId - const hpPct = 100 // No current HP tracking in v2, assume full - const hpColor = hpPct > 50 ? GREEN : hpPct > 25 ? YELLOW : RED return (