3d8566bc-063f-41e8-8934-68c9ac5b8211
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user