noname/character/key/index.js

41 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-04-23 06:50:54 +00:00
import { lib, game, ui, get, ai, _status } from "../../noname.js";
import characters from "./character.js";
import cards from "./card.js";
import pinyins from "./pinyin.js";
import skills from "./skill.js";
import translates from "./translate.js";
2024-05-01 16:19:14 +00:00
import voices from "./voices.js";
import { characterSort, characterSortTranslate } from "./sort.js";
2024-04-23 06:50:54 +00:00
game.import("character", function () {
return {
name: "key",
character: { ...characters },
characterSort: {
key: characterSort,
},
2024-04-23 06:50:54 +00:00
characterFilter: {
key_jojiro(mode) {
return mode == "chess" || mode == "tafang";
},
key_yuu(mode) {
2024-05-01 16:19:14 +00:00
return mode == "identity" || mode == "doudizhu" || mode == "single" || (mode == "versus" && _status.mode != "standard" && _status.mode != "three");
2024-04-23 06:50:54 +00:00
},
key_tomoya(mode) {
return mode != "chess" && mode != "tafang" && mode != "stone";
},
key_sunohara(mode) {
return mode != "guozhan";
},
},
characterTitle: {
key_kotomi: "#g落英逐紫裙",
key_jojiro: "战棋专属角色",
2024-04-23 06:50:54 +00:00
},
card: { ...cards },
skill: { ...skills },
translate: { ...translates, ...voices, ...characterSortTranslate },
2024-04-23 06:50:54 +00:00
pinyins: { ...pinyins },
};
});