拷打狂神
This commit is contained in:
parent
4dd3352f34
commit
a6f9e90390
|
@ -4,7 +4,7 @@ import cards from "./card.js";
|
||||||
import pinyins from "./pinyin.js";
|
import pinyins from "./pinyin.js";
|
||||||
import skills from "./skill.js";
|
import skills from "./skill.js";
|
||||||
import translates from "./translate.js";
|
import translates from "./translate.js";
|
||||||
import voices from "./voices.json";
|
import voices from "./voices.js";
|
||||||
|
|
||||||
game.import("character", function () {
|
game.import("character", function () {
|
||||||
return {
|
return {
|
||||||
|
@ -15,14 +15,7 @@ game.import("character", function () {
|
||||||
return mode == "chess" || mode == "tafang";
|
return mode == "chess" || mode == "tafang";
|
||||||
},
|
},
|
||||||
key_yuu(mode) {
|
key_yuu(mode) {
|
||||||
return (
|
return mode == "identity" || mode == "doudizhu" || mode == "single" || (mode == "versus" && _status.mode != "standard" && _status.mode != "three");
|
||||||
mode == "identity" ||
|
|
||||||
mode == "doudizhu" ||
|
|
||||||
mode == "single" ||
|
|
||||||
(mode == "versus" &&
|
|
||||||
_status.mode != "standard" &&
|
|
||||||
_status.mode != "three")
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
key_tomoya(mode) {
|
key_tomoya(mode) {
|
||||||
return mode != "chess" && mode != "tafang" && mode != "stone";
|
return mode != "chess" && mode != "tafang" && mode != "stone";
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
export default {
|
||||||
|
"#yuri_xingdong1": "では、オペレーション・スターーート!!",
|
||||||
|
"#yuri_xingdong2": "では、オペレーション・スタート!",
|
||||||
|
"#yuri_xingdong3": "では、オペレーションスタート!",
|
||||||
|
"#yuri_xingdong_gain1": "…さすがね、あたしの勘。",
|
||||||
|
"#yuri_xingdong_gain2": "あたしの予想ではね。",
|
||||||
|
"#yuri_wangxi1": "賢明ね。これでようやくあなたにも戦線で戦う目的が生まれたってわけね。",
|
||||||
|
"#yuri_wangxi2": "落ち着いて…ここは地獄なんかじゃないわ。",
|
||||||
|
"#key_yuri:die": "ひどい…リーダーね。",
|
||||||
|
};
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"#yuri_xingdong1": "では、オペレーション・スターーート!!",
|
|
||||||
"#yuri_xingdong2": "では、オペレーション・スタート!",
|
|
||||||
"#yuri_xingdong3": "では、オペレーションスタート!",
|
|
||||||
"#yuri_xingdong_gain1": "…さすがね、あたしの勘。",
|
|
||||||
"#yuri_xingdong_gain2": "あたしの予想ではね。",
|
|
||||||
"#yuri_wangxi1": "賢明ね。これでようやくあなたにも戦線で戦う目的が生まれたってわけね。",
|
|
||||||
"#yuri_wangxi2": "落ち着いて…ここは地獄なんかじゃないわ。",
|
|
||||||
"#key_yuri:die": "ひどい…リーダーね。"
|
|
||||||
}
|
|
|
@ -196,7 +196,6 @@ export class Character {
|
||||||
* @param { any[] } trash
|
* @param { any[] } trash
|
||||||
*/
|
*/
|
||||||
setPropertiesFromTrash(trash) {
|
setPropertiesFromTrash(trash) {
|
||||||
this.initializeTrashProperties();
|
|
||||||
const keptTrashes = [],
|
const keptTrashes = [],
|
||||||
clans = [];
|
clans = [];
|
||||||
for (let i = 0; i < trash.length; i++) {
|
for (let i = 0; i < trash.length; i++) {
|
||||||
|
@ -370,18 +369,21 @@ export class Character {
|
||||||
return new Proxy(trashes.concat(character.trashBin), {
|
return new Proxy(trashes.concat(character.trashBin), {
|
||||||
set(target, prop, newValue) {
|
set(target, prop, newValue) {
|
||||||
const result = Reflect.set(target, prop, newValue);
|
const result = Reflect.set(target, prop, newValue);
|
||||||
|
character.initializeTrashProperties();
|
||||||
character.setPropertiesFromTrash(target);
|
character.setPropertiesFromTrash(target);
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
deleteProperty(target, prop) {
|
deleteProperty(target, prop) {
|
||||||
const result = Reflect.deleteProperty(target, prop);
|
const result = Reflect.deleteProperty(target, prop);
|
||||||
|
character.initializeTrashProperties();
|
||||||
character.setPropertiesFromTrash(target);
|
character.setPropertiesFromTrash(target);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
set 4(trashBin) {
|
set 4(trashBin) {
|
||||||
console.warn("你set你🐎的废弃属性");
|
this.initializeTrashProperties();
|
||||||
|
this.setPropertiesFromTrash(trashBin);
|
||||||
}
|
}
|
||||||
|
|
||||||
get 5() {
|
get 5() {
|
||||||
|
|
Loading…
Reference in New Issue