fixed # 补全部分卡牌

fixed # 修复部分已知BUG
This commit is contained in:
2026-10-04 19:32:38 +08:00
parent c448da39c2
commit 94a2a6724b
163 changed files with 14008 additions and 1537 deletions
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
import { createSharedCardRuntime } from "../shared/runtime.js";
// 四类通用牌分目录保存数据,共用一次战斗控制器,避免重复安装全局事件。
export class ColorlessCardPack {
static id = "colorless";
static owner = null;
constructor(context) { this.context = context; }
createRuntime() { return createSharedCardRuntime(this.context); }
}
+8
View File
@@ -0,0 +1,8 @@
import { colorlessCards } from "./data.js";
import { eventCards } from "../event/data.js";
import { curseCards } from "../curse/data.js";
export const colorlessRewards = Object.freeze(Object.fromEntries([...colorlessCards,...eventCards,...curseCards].map(card=>[
`shared.reward.card.${card.name}`,{card:{name:card.name},name:`获得一张【${card.title}】`,description:card.description}
])));
// 事件与诅咒只供明确指定的剧情/奖励调用,不混入普通奖励和无色生成池。
export const colorlessRewardIds = Object.freeze(colorlessCards.map(card=>`shared.reward.card.${card.name}`));