3d8566bc-063f-41e8-8934-68c9ac5b8211

This commit is contained in:
2026-06-23 13:38:23 +00:00
parent 674775be0e
commit da18f32df2
36 changed files with 849 additions and 34 deletions
+4 -1
View File
@@ -2,6 +2,7 @@
// 回响星核 / Echo Nexus — 技术树
import { useGameStore } from "@/store/gameStore";
import { TECH_TREE, TECH_BRANCH_META, formatNum } from "@/lib/game/config";
import { sfx } from "@/hooks/useAudio";
import { Card } from "@/components/ui/card";
import { Button } from "@/components/ui/button";
import {
@@ -103,7 +104,9 @@ export function TechTree() {
size="sm"
variant={affordable ? "default" : "ghost"}
disabled={!affordable}
onClick={() => buyTech(node.id)}
onClick={() => {
if (buyTech(node.id)) sfx("techBuy");
}}
className="h-7 px-2 text-[11px] shrink-0"
style={
affordable