mirror of
https://github.com/Shu-Ying/noname-shuying.git
synced 2026-10-25 09:10:02 +08:00
fixed # 补全部分卡牌
fixed # 修复部分已知BUG
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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); }
|
||||
}
|
||||
@@ -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}`));
|
||||
Reference in New Issue
Block a user