mirror of
https://github.com/Shu-Ying/noname-shuying.git
synced 2026-10-19 13:50:06 +08:00
feat # 继续补全遗物系统
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { cardDefinitions, canAcquireCard } from "./card-definitions.js";
|
||||
import { cardUpgradeRule } from "./upgrades.js";
|
||||
import { WITHER_CARD, MAX_WITHER_LEVEL } from "./wither-card.js";
|
||||
import { afterRelicDeckAdd } from "../relics/hooks.js";
|
||||
|
||||
const suits = ["spade", "heart", "club", "diamond"];
|
||||
|
||||
@@ -51,5 +52,6 @@ export function addCardToDeck(run, spec) {
|
||||
if (!Array.isArray(run?.player?.deck)) throw new Error("梦三牌组无效");
|
||||
if (run.player.deck.some(existing => existing.id === card.id)) throw new Error(`梦三牌 ID 重复:${card.id}`);
|
||||
run.player.deck.push(card);
|
||||
afterRelicDeckAdd(run, card);
|
||||
return card;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user