From 3c848744b50eecb5b5493e911eda2ab866653359 Mon Sep 17 00:00:00 2001
From: mengxinzxz <2223529500@qq.com>
Date: Fri, 26 Apr 2024 21:30:01 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96player.js?=
=?UTF-8?q?=EF=BC=8C=E7=BB=99=E6=8B=BC=E7=82=B9=E4=BA=8B=E4=BB=B6=E7=9A=84?=
=?UTF-8?q?chooseCard=E5=BC=80=E4=BA=86=E4=B8=AA=E5=B0=8F=E5=90=8E?=
=?UTF-8?q?=E9=97=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
①将noname\library\element\player.js格式化为新的prettier格式化形式
②修复拼点只剩一张手牌时直接选择,无法发动一系列技能的bug(介于只选择一张牌的chooseCard添加complex属性过于池沼,所以autochoose直接给拼点事件开了后门
---
noname/library/element/player.js | 1072 +++++++++---------------------
1 file changed, 303 insertions(+), 769 deletions(-)
diff --git a/noname/library/element/player.js b/noname/library/element/player.js
index c46ab9447..46d092b6e 100644
--- a/noname/library/element/player.js
+++ b/noname/library/element/player.js
@@ -1,9 +1,9 @@
/**
* @typedef { {
- * useCard: GameEventPromise[],
- * respond: GameEventPromise[],
- * skipped: GameEventPromise[],
- * lose: GameEventPromise[],
+ * useCard: GameEventPromise[],
+ * respond: GameEventPromise[],
+ * skipped: GameEventPromise[],
+ * lose: GameEventPromise[],
* gain: GameEventPromise[],
* sourceDamage: GameEventPromise[],
* damage: GameEventPromise[],
@@ -76,16 +76,16 @@ export class Player extends HTMLDivElement {
player.node.handcards1._childNodesWatcher = new ChildNodesWatcher(player.node.handcards1);
player.node.handcards2._childNodesWatcher = new ChildNodesWatcher(player.node.handcards2);
if (lib.config.equip_span) {
- let observer = new MutationObserver((mutationsList) => {
+ let observer = new MutationObserver(mutationsList => {
for (let mutation of mutationsList) {
if (mutation.type === "childList") {
const addedNodes = Array.from(mutation.addedNodes);
const removedNodes = Array.from(mutation.removedNodes);
// @ts-ignore
if (
- addedNodes.some((card) => !card.classList.contains("emptyequip")) ||
+ addedNodes.some(card => !card.classList.contains("emptyequip")) ||
// @ts-ignore
- removedNodes.some((card) => !card.classList.contains("emptyequip"))
+ removedNodes.some(card => !card.classList.contains("emptyequip"))
) {
player.$handleEquipChange();
}
@@ -98,9 +98,7 @@ export class Player extends HTMLDivElement {
node.expansions.style.display = "none";
const chainLength = game.layout == "default" ? 64 : 40;
for (let repetition = 0; repetition < chainLength; repetition++) {
- ui.create.div(node.chain.firstChild, ".cardbg").style.transform = `translateX(${
- repetition * 5 - 5
- }px)`;
+ ui.create.div(node.chain.firstChild, ".cardbg").style.transform = `translateX(${repetition * 5 - 5}px)`;
}
node.action = ui.create.div(".action", node.avatar);
}
@@ -369,21 +367,11 @@ export class Player extends HTMLDivElement {
if (typeof this.storage.stratagem_fury != "number") this.storage.stratagem_fury = 0;
if (!amount) return;
const furyBefore = this.storage.stratagem_fury;
- if (limit === true && typeof _status.stratagemFuryMax == "number")
- this.storage.stratagem_fury = Math.min(
- Math.max(furyBefore + amount, 0),
- _status.stratagemFuryMax
- );
+ if (limit === true && typeof _status.stratagemFuryMax == "number") this.storage.stratagem_fury = Math.min(Math.max(furyBefore + amount, 0), _status.stratagemFuryMax);
else this.storage.stratagem_fury = Math.max(furyBefore + amount, 0);
const difference = this.storage.stratagem_fury - furyBefore;
if (!difference) return;
- game.log(
- this,
- difference > 0 ? "获得了" : "失去了",
- get.cnNumber(Math.abs(difference)),
- "点",
- "#r怒气"
- );
+ game.log(this, difference > 0 ? "获得了" : "失去了", get.cnNumber(Math.abs(difference)), "点", "#r怒气");
this.markSkill("stratagem_fury");
}
/**
@@ -438,19 +426,17 @@ export class Player extends HTMLDivElement {
// 以下两种情况:
// triggerNames = [ ['xxAfter', ...args] ]
// triggerNames = [ 'xxAfter' ]
- if (Array.isArray(triggerNames[0]) || typeof triggerNames[0] == "string")
- trigger = { player: triggerNames[0] };
+ if (Array.isArray(triggerNames[0]) || typeof triggerNames[0] == "string") trigger = { player: triggerNames[0] };
// triggerNames = [ {player:'xxx'} ]
else if (get.is.object(triggerNames[0])) trigger = triggerNames[0];
}
// arguments.length > 1
else {
// triggerNames = [ 'xxAfter', 'yyBegin' ]
- if (triggerNames.every((t) => typeof t == "string")) trigger = { player: triggerNames };
+ if (triggerNames.every(t => typeof t == "string")) trigger = { player: triggerNames };
// triggerNames = [ {player: 'xxAfter'}, {global: 'yyBegin'} ]
// 此处不做特殊的合并处理,由使用者自行把握,同名属性后者覆盖前者
- else if (triggerNames.every((t) => get.is.object(t)))
- trigger = triggerNames.reduce((pre, cur) => Object.assign(pre, cur));
+ else if (triggerNames.every(t => get.is.object(t))) trigger = triggerNames.reduce((pre, cur) => Object.assign(pre, cur));
}
if (!trigger) throw "player.when传参数类型错误:" + triggerNames;
let skillName;
@@ -491,44 +477,22 @@ export class Player extends HTMLDivElement {
skill.popup = false;
return true;
}
- return (
- skill.filterFuns.every((fun) => Boolean(fun(event, player, name))) &&
- skill.filter2(event, player, name)
- );
+ return skill.filterFuns.every(fun => Boolean(fun(event, player, name))) && skill.filter2(event, player, name);
};
},
get filter2() {
return (event, player, name) => {
- return (
- skill.filter2Funs.length == 0 ||
- skill.filter2Funs.some((fun) => Boolean(fun(event, player, name)))
- );
+ return skill.filter2Funs.length == 0 || skill.filter2Funs.some(fun => Boolean(fun(event, player, name)));
};
},
};
- const warnVars = [
- "event",
- "step",
- "source",
- "player",
- "target",
- "targets",
- "card",
- "cards",
- "skill",
- "forced",
- "num",
- "trigger",
- "result",
- ];
+ const warnVars = ["event", "step", "source", "player", "target", "targets", "card", "cards", "skill", "forced", "num", "trigger", "result"];
const errVars = ["_status", "lib", "game", "ui", "get", "ai"];
const createContent = () => {
let varstr = "";
for (const key in vars) {
- if (warnVars.includes(key))
- console.warn(`Variable '${key}' should not be referenced by vars objects`);
- if (errVars.includes(key))
- throw new Error(`Variable '${key}' should not be referenced by vars objects`);
+ if (warnVars.includes(key)) console.warn(`Variable '${key}' should not be referenced by vars objects`);
+ if (errVars.includes(key)) throw new Error(`Variable '${key}' should not be referenced by vars objects`);
varstr += `var ${key}=lib.skill['${skillName}'].vars['${key}'];\n`;
}
let str = `
@@ -544,10 +508,7 @@ export class Player extends HTMLDivElement {
const fun2 = skill.contentFuns[i];
const a = fun2.toString();
//防止传入()=>xxx的情况
- const begin =
- a.indexOf("{") == a.indexOf("}") && a.indexOf("{") == -1 && a.indexOf("=>") > -1
- ? a.indexOf("=>") + 2
- : a.indexOf("{") + 1;
+ const begin = a.indexOf("{") == a.indexOf("}") && a.indexOf("{") == -1 && a.indexOf("=>") > -1 ? a.indexOf("=>") + 2 : a.indexOf("{") + 1;
const str2 = a.slice(begin, a.lastIndexOf("}") != -1 ? a.lastIndexOf("}") : undefined).trim();
str += `'step ${i}'\n\t${str2}\n\t`;
}
@@ -634,11 +595,7 @@ export class Player extends HTMLDivElement {
if (lib.skill[skillName] != skill) throw `This skill has been destroyed`;
if (typeof translation == "string") {
_status.postReconnect.player_when[1][skillName] = translation;
- game.broadcastAll(
- (skillName, translation) => (lib.translate[skillName] = translation),
- skillName,
- translation
- );
+ game.broadcastAll((skillName, translation) => (lib.translate[skillName] = translation), skillName, translation);
}
return this;
},
@@ -727,7 +684,7 @@ export class Player extends HTMLDivElement {
* 获取角色所有的明置手牌
*/
getShownCards() {
- return this.getCards("h", (card) => {
+ return this.getCards("h", card => {
return get.is.shownCard(card);
});
}
@@ -736,18 +693,16 @@ export class Player extends HTMLDivElement {
* @param { Player } [other]
* @param { (card: Card) => boolean } [filter]
*/
- getKnownCards(other = _status.event.player, filter = (card) => true) {
+ getKnownCards(other = _status.event.player, filter = card => true) {
if (!other) {
- if (other === null)
- console.trace(`getKnownCards的other参数不应传入null,可以用void 0或undefined占位`);
+ if (other === null) console.trace(`getKnownCards的other参数不应传入null,可以用void 0或undefined占位`);
other = _status.event.player || this;
}
if (!filter) {
- if (other === null)
- console.trace(`getKnownCards的filter参数不应传入null,可以用void 0或undefined占位`);
- filter = (card) => true;
+ if (other === null) console.trace(`getKnownCards的filter参数不应传入null,可以用void 0或undefined占位`);
+ filter = card => true;
}
- return this.getCards("h", (card) => {
+ return this.getCards("h", card => {
return card.isKnownBy(other) && filter(card);
});
}
@@ -757,13 +712,12 @@ export class Player extends HTMLDivElement {
*/
isAllCardsKnown(other = _status.event.player) {
if (!other) {
- if (other === null)
- console.trace(`isAllCardsKnown的other参数不应传入null,可以用void 0或undefined占位`);
+ if (other === null) console.trace(`isAllCardsKnown的other参数不应传入null,可以用void 0或undefined占位`);
other = _status.event.player || this;
}
if (!other) other = this;
return (
- this.countCards("h", (card) => {
+ this.countCards("h", card => {
return !card.isKnownBy(other);
}) == 0
);
@@ -773,19 +727,17 @@ export class Player extends HTMLDivElement {
* @param { Player } [other]
* @param { (card: Card) => boolean } [filter]
*/
- hasKnownCards(other = _status.event.player, filter = (card) => true) {
+ hasKnownCards(other = _status.event.player, filter = card => true) {
if (!other) {
- if (other === null)
- console.trace(`hasKnownCards的other参数不应传入null,可以用void 0或undefined占位`);
+ if (other === null) console.trace(`hasKnownCards的other参数不应传入null,可以用void 0或undefined占位`);
other = _status.event.player || this;
}
if (!filter) {
- if (other === null)
- console.trace(`hasKnownCards的filter参数不应传入null,可以用void 0或undefined占位`);
- filter = (card) => true;
+ if (other === null) console.trace(`hasKnownCards的filter参数不应传入null,可以用void 0或undefined占位`);
+ filter = card => true;
}
return (
- this.countCards("h", (card) => {
+ this.countCards("h", card => {
return card.isKnownBy(other) && filter(card);
}) > 0
);
@@ -914,11 +866,7 @@ export class Player extends HTMLDivElement {
* @param { (player: Player, cards: Card[]) => any } [recastingLose]
* @param { (player: Player, cards: Card[]) => any } [recastingGain]
*/
- recast(
- cards,
- recastingLose = (player, cards) => (player.loseToDiscardpile(cards).log = false),
- recastingGain = (player, cards) => (player.draw(cards.length).log = false)
- ) {
+ recast(cards, recastingLose = (player, cards) => (player.loseToDiscardpile(cards).log = false), recastingGain = (player, cards) => (player.draw(cards.length).log = false)) {
const recast = game.createEvent("recast");
recast.player = this;
const isArray = Array.isArray(cards);
@@ -929,15 +877,13 @@ export class Player extends HTMLDivElement {
recast.resolve();
}
if (typeof recastingLose != "function") {
- if (recastingLose === null)
- console.trace(`recast的recastingLose参数不应传入null,可以用void 0或undefined占位`);
+ if (recastingLose === null) console.trace(`recast的recastingLose参数不应传入null,可以用void 0或undefined占位`);
recastingLose = (player, cards) => (player.loseToDiscardpile(cards).log = false);
}
recast.recastingLose = recastingLose;
recast.recastingLosingEvents = [];
if (typeof recastingGain != "function") {
- if (recastingLose === null)
- console.trace(`recast的recastingGain参数不应传入null,可以用void 0或undefined占位`);
+ if (recastingLose === null) console.trace(`recast的recastingGain参数不应传入null,可以用void 0或undefined占位`);
recastingGain = (player, cards) => (player.draw(cards.length).log = false);
}
recast.recastingGain = recastingGain;
@@ -1127,7 +1073,7 @@ export class Player extends HTMLDivElement {
} else if (subtype.startsWith("equip") && parseInt(subtype.slice(5)) > 0) {
break;
} else if (lib.card[subtype]) {
- return this.getCards("e", (card) => card.name == subtype);
+ return this.getCards("e", card => card.name == subtype);
} else return [];
case "number":
subtype = "equip" + subtype;
@@ -1139,7 +1085,7 @@ export class Player extends HTMLDivElement {
return [];
}
if (!subtype) return [];
- return this.getCards("e", (card) => {
+ return this.getCards("e", card => {
// @ts-ignore
return get.subtypes(card, false).includes(subtype);
});
@@ -1165,8 +1111,7 @@ export class Player extends HTMLDivElement {
}
}
} else if (typeof arguments[i] == "string") {
- if (arguments[i].startsWith("equip") && parseInt(arguments[i].slice(5)) > 0)
- next.slots.push(arguments[i]);
+ if (arguments[i].startsWith("equip") && parseInt(arguments[i].slice(5)) > 0) next.slots.push(arguments[i]);
} else if (typeof arguments[i] == "number") {
next.slots.push("equip" + arguments[i]);
}
@@ -1200,8 +1145,7 @@ export class Player extends HTMLDivElement {
}
}
} else if (typeof arguments[i] == "string") {
- if (arguments[i].startsWith("equip") && parseInt(arguments[i].slice(5)) > 0)
- next.slots.push(arguments[i]);
+ if (arguments[i].startsWith("equip") && parseInt(arguments[i].slice(5)) > 0) next.slots.push(arguments[i]);
} else if (typeof arguments[i] == "number") {
next.slots.push("equip" + arguments[i]);
}
@@ -1235,8 +1179,7 @@ export class Player extends HTMLDivElement {
}
}
} else if (typeof arguments[i] == "string") {
- if (arguments[i].startsWith("equip") && parseInt(arguments[i].slice(5)) > 0)
- next.slots.push(arguments[i]);
+ if (arguments[i].startsWith("equip") && parseInt(arguments[i].slice(5)) > 0) next.slots.push(arguments[i]);
} else if (typeof arguments[i] == "number") {
next.slots.push("equip" + arguments[i]);
}
@@ -1309,11 +1252,7 @@ export class Player extends HTMLDivElement {
const num = map2[index];
if (num > 0) {
for (let i = 0; i < num; i++) {
- const card = game.createCard(
- "feichu_" + index,
- suits[index] || get.translation(index) + "栏",
- ""
- );
+ const card = game.createCard("feichu_" + index, suits[index] || get.translation(index) + "栏", "");
card.fix();
card.style.transform = "";
card.classList.remove("drawinghidden");
@@ -1337,7 +1276,7 @@ export class Player extends HTMLDivElement {
}
} else if (num < 0) {
for (let i = 0; i > num; i--) {
- const card = cards.find((card) => card.name == "feichu_" + index);
+ const card = cards.find(card => card.name == "feichu_" + index);
if (card) {
this.node.equips.removeChild(card);
cards.remove(card);
@@ -1357,7 +1296,7 @@ export class Player extends HTMLDivElement {
rangex = [],
combined = get.is.mountCombined();
if (combined) {
- ranges.forEach((type) => {
+ ranges.forEach(type => {
if (type == "equip3" || type == "equip4") rangex.add("equip3_4");
else rangex.add(type);
});
@@ -1367,8 +1306,7 @@ export class Player extends HTMLDivElement {
for (let range of rangex) {
let num = this.countEquipableSlot(range);
let num2 = get.numOf(rangex, range);
- if (!replace)
- num -= this.getEquips(range).filter((card) => lib.filter.canBeReplaced(card, this)).length;
+ if (!replace) num -= this.getEquips(range).filter(card => lib.filter.canBeReplaced(card, this)).length;
if (num < num2) return false;
}
return true;
@@ -1432,13 +1370,7 @@ export class Player extends HTMLDivElement {
this.storage.cooperation.add(info);
this.addTempSkill("cooperation", { player: "dieAfter" });
this.addSkill("cooperation_" + type, { player: "dieAfter" });
- game.log(
- this,
- "向",
- target,
- "发起了“协力”,合作类型是",
- "#g" + get.translation("cooperation_" + type)
- );
+ game.log(this, "向", target, "发起了“协力”,合作类型是", "#g" + get.translation("cooperation_" + type));
}
chooseCooperationFor() {
var next = game.createEvent("chooseCooperationFor");
@@ -1452,13 +1384,7 @@ export class Player extends HTMLDivElement {
next.reason = arguments[i];
}
}
- if (!next.cardlist)
- next.cardlist = [
- "cooperation_damage",
- "cooperation_draw",
- "cooperation_discard",
- "cooperation_use",
- ];
+ if (!next.cardlist) next.cardlist = ["cooperation_damage", "cooperation_draw", "cooperation_discard", "cooperation_use"];
next.setContent("chooseCooperationFor");
return next;
}
@@ -1495,7 +1421,7 @@ export class Player extends HTMLDivElement {
* @param { boolean } unseen 是否无视暗将的限制
* @returns { string[] }
*/
- getClans(unseen){
+ getClans(unseen) {
const clans = [];
if (unseen || !this.isUnseen(0)) {
let info = lib.character[this.name1];
@@ -1679,11 +1605,7 @@ export class Player extends HTMLDivElement {
for (let i of hs) name[get.name(i)] = true;
for (let i in lib.card) {
if (lib.card[i].savable && (lib.inpile.includes(i) || name[i])) {
- if (
- lib.filter.cardSavable({ name: i }, this, target) &&
- (_status.connectMode || this.hasUsableCard(i))
- )
- return true;
+ if (lib.filter.cardSavable({ name: i }, this, target) && (_status.connectMode || this.hasUsableCard(i))) return true;
}
}
return false;
@@ -1797,8 +1719,7 @@ export class Player extends HTMLDivElement {
break;
case 2:
if (log !== false) {
- if (this.name2)
- game.log(this, "展示了主将", "#b" + this.name1, "、副将", "#b" + this.name2);
+ if (this.name2) game.log(this, "展示了主将", "#b" + this.name1, "、副将", "#b" + this.name2);
else game.log(this, "展示了主将", "#b" + this.name1);
}
this.name = this.name1;
@@ -1848,7 +1769,7 @@ export class Player extends HTMLDivElement {
num,
this.group
);
- skills = skills.filter((skill) => {
+ skills = skills.filter(skill => {
var info = get.info(skill);
if (info && info.zhuSkill && !this.isZhu2()) return false;
return true;
@@ -1903,20 +1824,11 @@ export class Player extends HTMLDivElement {
$throwEmotion(target, name, rotate) {
game.addVideo("throwEmotion", this, [target.dataset.position, name]);
var getLeft = function (player) {
- if (player == game.me && !ui.fakeme && !ui.chess)
- return player.getLeft() + player.node.avatar.offsetWidth / 2;
+ if (player == game.me && !ui.fakeme && !ui.chess) return player.getLeft() + player.node.avatar.offsetWidth / 2;
return player.getLeft() + player.offsetWidth / 2;
};
var player = this;
- var emotion = ui.create.div(
- "",
- '
',
- game.chess ? ui.chess : ui.window
- );
+ var emotion = ui.create.div("", ' ', game.chess ? ui.chess : ui.window);
emotion.style.width = "60px";
emotion.style.height = "60px";
var width = emotion.offsetWidth / 2;
@@ -1940,16 +1852,10 @@ export class Player extends HTMLDivElement {
emotion.style["z-index"] = 10;
emotion.style.transform = "translateY(" + (top2 - top) + "px) translateX(" + (left2 - left) + "px)";
// @ts-ignore
- if (["egg", "flower", "shoe"].includes(name) || rotate)
- emotion.firstElementChild.style.transform = "rotate(1440deg)";
+ if (["egg", "flower", "shoe"].includes(name) || rotate) emotion.firstElementChild.style.transform = "rotate(1440deg)";
if (lib.config.background_audio) game.playAudio("effect", "throw_" + name + get.rand(1, 2));
setTimeout(function () {
- emotion.innerHTML =
- ' ';
+ emotion.innerHTML = ' ';
setTimeout(function () {
emotion.delete();
}, 1200);
@@ -1975,12 +1881,7 @@ export class Player extends HTMLDivElement {
* @param { 'main' | 'vice' | boolean } checkShow
*/
trySkillAnimate(name, popname, checkShow) {
- if (
- !game.online &&
- lib.config.skill_animation_type != "off" &&
- lib.skill[name] &&
- lib.skill[name].skillAnimation
- ) {
+ if (!game.online && lib.config.skill_animation_type != "off" && lib.skill[name] && lib.skill[name].skillAnimation) {
if (lib.config.skill_animation_type == "default") {
checkShow = checkShow || "main";
} else {
@@ -1989,12 +1890,7 @@ export class Player extends HTMLDivElement {
if (lib.skill[name].textAnimation) {
checkShow = false;
}
- this.$skill(
- lib.skill[name].animationStr || lib.translate[name],
- lib.skill[name].skillAnimation,
- lib.skill[name].animationColor,
- checkShow
- );
+ this.$skill(lib.skill[name].animationStr || lib.translate[name], lib.skill[name].skillAnimation, lib.skill[name].animationColor, checkShow);
return;
}
var player = this;
@@ -2046,7 +1942,7 @@ export class Player extends HTMLDivElement {
hasUsableCard(name, type) {
if (typeof type !== "string") type = type ? "limit" : "all";
if (
- this.hasCard((i) => {
+ this.hasCard(i => {
if (get.name(i, this) !== name) return false;
if (type === "all") return true;
let event = _status.event,
@@ -2063,12 +1959,7 @@ export class Player extends HTMLDivElement {
for (let i = 0; i < skills.length; i++) {
const ifo = get.info(skills[i]),
hiddenCard = ifo.hiddenCard;
- if (
- ifo.viewAs &&
- typeof ifo.viewAs !== "function" &&
- typeof ifo.viewAs !== "string" &&
- ifo.viewAs.name === name
- ) {
+ if (ifo.viewAs && typeof ifo.viewAs !== "function" && typeof ifo.viewAs !== "string" && ifo.viewAs.name === name) {
if (!ifo.viewAsFilter || ifo.viewAsFilter(this) !== false) return true;
} else if (typeof hiddenCard == "function") {
if (hiddenCard(this, name)) return true;
@@ -2118,24 +2009,13 @@ export class Player extends HTMLDivElement {
for (let iwhile = 0; iwhile < totalPopulation; iwhile++) {
if (player.nextSeat != to) {
player = player.nextSeat;
- if (
- player.isAlive() &&
- !player.isOut() &&
- !player.hasSkill("undist") &&
- !player.isMin(true)
- )
- n++;
+ if (player.isAlive() && !player.isOut() && !player.hasSkill("undist") && !player.isMin(true)) n++;
} else {
break;
}
}
for (let i = 0; i < game.players.length; i++) {
- if (
- game.players[i].isOut() ||
- game.players[i].hasSkill("undist") ||
- game.players[i].isMin(true)
- )
- length--;
+ if (game.players[i].isOut() || game.players[i].hasSkill("undist") || game.players[i].isMin(true)) length--;
}
if (from.isDead()) length++;
if (to.isDead()) length++;
@@ -2294,8 +2174,7 @@ export class Player extends HTMLDivElement {
*/
canCompare(target, goon, bool) {
if (this == target) return false;
- if ((!this.countCards("h") && goon !== true) || (!target.countCards("h") && bool !== true))
- return false;
+ if ((!this.countCards("h") && goon !== true) || (!target.countCards("h") && bool !== true)) return false;
if (this.hasSkillTag("noCompareSource") || target.hasSkillTag("noCompareTarget")) return false;
return true;
}
@@ -2457,7 +2336,7 @@ export class Player extends HTMLDivElement {
}
}
if (skill != false) {
- skills = skills.filter((skill) => {
+ skills = skills.filter(skill => {
var info = get.info(skill);
if (info && info.zhuSkill && !this.isZhu2()) return false;
return true;
@@ -2520,11 +2399,7 @@ export class Player extends HTMLDivElement {
if (!_status.video && get.mode() != "guozhan") this.classList.add("unseen_show");
this.classList.add(_status.video ? "unseen_v" : "unseen");
if (!this.node.name_seat && !_status.video) {
- this.node.name_seat = ui.create.div(
- ".name.name_seat",
- get.verticalStr(get.translation(this.name)),
- this
- );
+ this.node.name_seat = ui.create.div(".name.name_seat", get.verticalStr(get.translation(this.name)), this);
this.node.name_seat.dataset.nature = get.groupnature(this.group);
}
}
@@ -2580,17 +2455,9 @@ export class Player extends HTMLDivElement {
if (typeof map == "function") {
return map(this, name);
}
- if (
- typeof map.skill == "string" &&
- (get.character(this[i], 3) || []).includes(map.skill)
- )
- return true;
+ if (typeof map.skill == "string" && (get.character(this[i], 3) || []).includes(map.skill)) return true;
if (typeof map.characterName == "string" && this[i] == map.characterName) return true;
- if (
- typeof map.characterSkinName == "string" &&
- this.skin[name] == map.characterSkinName
- )
- return true;
+ if (typeof map.characterSkinName == "string" && this.skin[name] == map.characterSkinName) return true;
if (typeof map.source == "string" && name == map.source) return true;
return false;
})()
@@ -2603,14 +2470,7 @@ export class Player extends HTMLDivElement {
player.tempname.add(character);
player.skin[name] = character;
const goon = !lib.character[character];
- if (goon)
- lib.character[character] = [
- "",
- "",
- 0,
- [],
- (list.find((i) => i[0] == character) || [character, []])[1],
- ];
+ if (goon) lib.character[character] = ["", "", 0, [], (list.find(i => i[0] == character) || [character, []])[1]];
player.smoothAvatar(name == "name2");
player.node["avatar" + name.slice(4)].setBackground(character, "character");
player.node["avatar" + name.slice(4)].show();
@@ -2645,14 +2505,7 @@ export class Player extends HTMLDivElement {
player.tempname.add(character);
player.skin[name] = character;
const goon = !lib.character[character];
- if (goon)
- lib.character[character] = [
- "",
- "",
- 0,
- [],
- (list.find((i) => i[0] == character) || [character, []])[1],
- ];
+ if (goon) lib.character[character] = ["", "", 0, [], (list.find(i => i[0] == character) || [character, []])[1]];
player.smoothAvatar(name == "name2");
player.node["avatar" + name.slice(4)].setBackground(character, "character");
player.node["avatar" + name.slice(4)].show();
@@ -3046,10 +2899,7 @@ export class Player extends HTMLDivElement {
var rect2 = player.getBoundingClientRect();
var dx = rect1.left - rect2.left;
var dy = rect1.top - rect2.top;
- if (
- (game.chess || (player.dataset.position != 0 && position != 0)) &&
- player.classList.contains("linked")
- ) {
+ if ((game.chess || (player.dataset.position != 0 && position != 0)) && player.classList.contains("linked")) {
player.style.transform = "rotate(-90deg) translate(" + -dy + "px," + dx + "px)";
} else {
player.style.transform = "translate(" + dx + "px," + dy + "px)";
@@ -3145,12 +2995,8 @@ export class Player extends HTMLDivElement {
}
if (refnode) {
lib.placePoppedDialog(dialog, {
- clientX:
- (ui.arena.offsetLeft + this.getLeft() + refnode.offsetLeft + refnode.offsetWidth / 2) *
- game.documentZoom,
- clientY:
- (ui.arena.offsetTop + this.getTop() + refnode.offsetTop + refnode.offsetHeight / 4) *
- game.documentZoom,
+ clientX: (ui.arena.offsetLeft + this.getLeft() + refnode.offsetLeft + refnode.offsetWidth / 2) * game.documentZoom,
+ clientY: (ui.arena.offsetTop + this.getTop() + refnode.offsetTop + refnode.offsetHeight / 4) * game.documentZoom,
});
} else {
lib.placePoppedDialog(dialog, {
@@ -3383,14 +3229,7 @@ export class Player extends HTMLDivElement {
} else if (game.layout == "default" && maxHp > 14) {
hp.innerHTML = this.hp + "/" + maxHp;
hp.classList.add("text");
- } else if (
- get.is.newLayout() &&
- (maxHp > 9 ||
- (maxHp > 5 && this.classList.contains("minskin")) ||
- ((game.layout == "mobile" || game.layout == "long") &&
- this.dataset.position == 0 &&
- maxHp > 7))
- ) {
+ } else if (get.is.newLayout() && (maxHp > 9 || (maxHp > 5 && this.classList.contains("minskin")) || ((game.layout == "mobile" || game.layout == "long") && this.dataset.position == 0 && maxHp > 7))) {
hp.innerHTML = this.hp + "
/
" + maxHp + "";
if (this.hp == 0) {
hp.lastChild.classList.add("lost");
@@ -3485,8 +3324,7 @@ export class Player extends HTMLDivElement {
if (log !== false) {
var str = false;
var info = get.info(i);
- if (info && info.intro && (info.intro.name || info.intro.name2))
- str = info.intro.name2 || info.intro.name;
+ if (info && info.intro && (info.intro.name || info.intro.name2)) str = info.intro.name2 || info.intro.name;
else str = lib.translate[i];
if (str) game.log(this, "移去了", get.cnNumber(num), "个", "#g【" + str + "】");
}
@@ -3500,8 +3338,7 @@ export class Player extends HTMLDivElement {
if (log !== false) {
var str = false;
var info = get.info(i);
- if (info && info.intro && (info.intro.name || info.intro.name2))
- str = info.intro.name2 || info.intro.name;
+ if (info && info.intro && (info.intro.name || info.intro.name2)) str = info.intro.name2 || info.intro.name;
else str = lib.translate[i];
if (str) game.log(this, "获得了", get.cnNumber(num), "个", "#g【" + str + "】");
}
@@ -3538,20 +3375,13 @@ export class Player extends HTMLDivElement {
if (storage && this.storage[i]) {
this.syncStorage(i);
}
- if (
- i == "ghujia" ||
- ((!this.marks[i].querySelector(".image") || this.storage[i + "_markcount"]) &&
- lib.skill[i] &&
- lib.skill[i].intro &&
- !lib.skill[i].intro.nocount &&
- (this.storage[i] || this.storage[i + "_markcount"] || lib.skill[i].intro.markcount))
- ) {
+ if (i == "ghujia" || ((!this.marks[i].querySelector(".image") || this.storage[i + "_markcount"]) && lib.skill[i] && lib.skill[i].intro && !lib.skill[i].intro.nocount && (this.storage[i] || this.storage[i + "_markcount"] || lib.skill[i].intro.markcount))) {
this.marks[i].classList.add("overflowmark");
var num = 0;
if (typeof lib.skill[i].intro.markcount == "function") {
num = lib.skill[i].intro.markcount(this.storage[i], this);
} else if (lib.skill[i].intro.markcount == "expansion") {
- num = this.countCards("x", (card) => card.hasGaintag(i));
+ num = this.countCards("x", card => card.hasGaintag(i));
} else if (typeof this.storage[i + "_markcount"] == "number") {
num = this.storage[i + "_markcount"];
} else if (i == "ghujia") {
@@ -3625,16 +3455,7 @@ export class Player extends HTMLDivElement {
config
);
game.addVideo("line", this, [target.dataset.position, config]);
- game.linexy(
- [
- this.getLeft() + this.offsetWidth / 2,
- this.getTop() + this.offsetHeight / 2,
- target.getLeft() + target.offsetWidth / 2,
- target.getTop() + target.offsetHeight / 2,
- ],
- config,
- true
- );
+ game.linexy([this.getLeft() + this.offsetWidth / 2, this.getTop() + this.offsetHeight / 2, target.getLeft() + target.offsetWidth / 2, target.getTop() + target.offsetHeight / 2], config, true);
}
}
line2(targets, config) {
@@ -3677,8 +3498,7 @@ export class Player extends HTMLDivElement {
for (var i = 0; i < history.length; i++) {
if (!card) num++;
else if (typeof card == "string" && history[i].card && card == history[i].card.name) num++;
- else if (typeof card == "object" && history[i].card && card.name == history[i].card.name)
- num++;
+ else if (typeof card == "object" && history[i].card && card.name == history[i].card.name) num++;
}
return num;
}
@@ -3707,9 +3527,9 @@ export class Player extends HTMLDivElement {
return num;
}
/**
- * @param {*} [unowned]
- * @param {*} [unique]
- * @param {*} [hidden]
+ * @param {*} [unowned]
+ * @param {*} [unique]
+ * @param {*} [hidden]
* @returns { string[] }
*/
getStockSkills(unowned, unique, hidden) {
@@ -3749,7 +3569,7 @@ export class Player extends HTMLDivElement {
if (typeof arg1 != "string") {
arg1 = "h";
}
- const getCardName = (card) => {
+ const getCardName = card => {
if (card.parentNode == this.node.judges) {
if (card.viewAs) return card.viewAs;
}
@@ -3758,11 +3578,11 @@ export class Player extends HTMLDivElement {
let filter;
if (arg2) {
if (typeof arg2 == "string") {
- filter = (card) => getCardName(card) == arg2;
+ filter = card => getCardName(card) == arg2;
} else if (Array.isArray(arg2)) {
- filter = (card) => arg2.includes(getCardName(card));
+ filter = card => arg2.includes(getCardName(card));
} else if (typeof arg2 == "object") {
- filter = (card) => {
+ filter = card => {
for (let j in arg2) {
var value;
if (j == "type" || j == "subtype" || j == "color" || j == "suit" || j == "number") {
@@ -3772,10 +3592,7 @@ export class Player extends HTMLDivElement {
} else {
value = card[j];
}
- if (
- (typeof arg2[j] == "string" && value != arg2[j]) ||
- (Array.isArray(arg2[j]) && !arg2[j].includes(value))
- ) {
+ if ((typeof arg2[j] == "string" && value != arg2[j]) || (Array.isArray(arg2[j]) && !arg2[j].includes(value))) {
return false;
}
}
@@ -3785,47 +3602,30 @@ export class Player extends HTMLDivElement {
filter = arg2;
}
} else {
- filter = (card) => true;
+ filter = card => true;
}
for (let i = 0; i < arg1.length; i++) {
if (arg1[i] == "h") {
for (let card of get.iterableChildNodes(this.node.handcards1, this.node.handcards2)) {
- if (
- !card.classList.contains("removing") &&
- !card.classList.contains("glows") &&
- filter(card)
- ) {
+ if (!card.classList.contains("removing") && !card.classList.contains("glows") && filter(card)) {
yield card;
}
}
} else if (arg1[i] == "s") {
for (let card of get.iterableChildNodes(this.node.handcards1, this.node.handcards2)) {
- if (
- !card.classList.contains("removing") &&
- card.classList.contains("glows") &&
- filter(card)
- ) {
+ if (!card.classList.contains("removing") && card.classList.contains("glows") && filter(card)) {
yield card;
}
}
} else if (arg1[i] == "e") {
for (let card of get.iterableChildNodes(this.node.equips)) {
- if (
- !card.classList.contains("removing") &&
- !card.classList.contains("feichu") &&
- !card.classList.contains("emptyequip") &&
- filter(card)
- ) {
+ if (!card.classList.contains("removing") && !card.classList.contains("feichu") && !card.classList.contains("emptyequip") && filter(card)) {
yield card;
}
}
} else if (arg1[i] == "j") {
for (let card of get.iterableChildNodes(this.node.judges)) {
- if (
- !card.classList.contains("removing") &&
- !card.classList.contains("feichu") &&
- filter(card)
- ) {
+ if (!card.classList.contains("removing") && !card.classList.contains("feichu") && filter(card)) {
yield card;
}
}
@@ -3857,9 +3657,9 @@ export class Player extends HTMLDivElement {
return Array.from(this.iterableGetDiscardableCards(player, arg1, arg2));
}
/**
- * @param {Parameters[1]} player
- * @param {Parameters[0]} arg1
- * @param {Parameters[1]} arg2
+ * @param {Parameters[1]} player
+ * @param {Parameters[0]} arg1
+ * @param {Parameters[1]} arg2
*/
*iterableGetGainableCards(player, arg1, arg2) {
for (let card of this.iterableGetCards(arg1, arg2)) {
@@ -3869,10 +3669,10 @@ export class Player extends HTMLDivElement {
}
}
/**
- *
- * @param {Parameters[0]} player
- * @param {Parameters[1]} [arg1]
- * @param {Parameters[2]} [arg2]
+ *
+ * @param {Parameters[0]} player
+ * @param {Parameters[1]} [arg1]
+ * @param {Parameters[2]} [arg2]
*/
getGainableCards(player, arg1, arg2) {
return Array.from(this.iterableGetGainableCards(player, arg1, arg2));
@@ -3886,8 +3686,8 @@ export class Player extends HTMLDivElement {
return list;
}
/**
- * @param { Parameters[0] } [arg1]
- * @param { Parameters[1] } [arg2]
+ * @param { Parameters[0] } [arg1]
+ * @param { Parameters[1] } [arg2]
*/
countCards(arg1, arg2) {
let count = 0;
@@ -3913,9 +3713,9 @@ export class Player extends HTMLDivElement {
return this.getDiscardableCards(player, arg1, arg2).length;
}
/**
- * @param {Parameters[0]} player
- * @param {Parameters[1]} [arg1]
- * @param {Parameters[2]} [arg2]
+ * @param {Parameters[0]} player
+ * @param {Parameters[1]} [arg1]
+ * @param {Parameters[2]} [arg2]
*/
countGainableCards(player, arg1, arg2) {
return this.getGainableCards(player, arg1, arg2).length;
@@ -3994,11 +3794,7 @@ export class Player extends HTMLDivElement {
var es = [];
if (arg3 !== false) {
for (i = 0; i < this.node.equips.childElementCount; i++) {
- if (
- !this.node.equips.childNodes[i].classList.contains("removing") &&
- !this.node.equips.childNodes[i].classList.contains("feichu") &&
- !this.node.equips.childNodes[i].classList.contains("emptyequip")
- ) {
+ if (!this.node.equips.childNodes[i].classList.contains("removing") && !this.node.equips.childNodes[i].classList.contains("feichu") && !this.node.equips.childNodes[i].classList.contains("emptyequip")) {
var equipskills = get.info(this.node.equips.childNodes[i]).skills;
if (equipskills) {
es.addArray(equipskills);
@@ -4038,32 +3834,18 @@ export class Player extends HTMLDivElement {
for (i = 0; i < arg1.length; i++) {
if (arg1[i] == "h") {
for (j = 0; j < this.node.handcards1.childElementCount; j++) {
- if (
- !this.node.handcards1.childNodes[j].classList.contains("removing") &&
- !this.node.handcards1.childNodes[j].classList.contains("feichu") &&
- !this.node.handcards1.childNodes[j].classList.contains("emptyequip") &&
- !this.node.handcards1.childNodes[j].classList.contains("glows")
- ) {
+ if (!this.node.handcards1.childNodes[j].classList.contains("removing") && !this.node.handcards1.childNodes[j].classList.contains("feichu") && !this.node.handcards1.childNodes[j].classList.contains("emptyequip") && !this.node.handcards1.childNodes[j].classList.contains("glows")) {
cards.push(this.node.handcards1.childNodes[j]);
}
}
for (j = 0; j < this.node.handcards2.childElementCount; j++) {
- if (
- !this.node.handcards2.childNodes[j].classList.contains("removing") &&
- !this.node.handcards2.childNodes[j].classList.contains("feichu") &&
- !this.node.handcards2.childNodes[j].classList.contains("emptyequip") &&
- !this.node.handcards2.childNodes[j].classList.contains("glows")
- ) {
+ if (!this.node.handcards2.childNodes[j].classList.contains("removing") && !this.node.handcards2.childNodes[j].classList.contains("feichu") && !this.node.handcards2.childNodes[j].classList.contains("emptyequip") && !this.node.handcards2.childNodes[j].classList.contains("glows")) {
cards.push(this.node.handcards2.childNodes[j]);
}
}
} else if (arg1[i] == "e") {
for (j = 0; j < this.node.equips.childElementCount; j++) {
- if (
- !this.node.equips.childNodes[j].classList.contains("removing") &&
- !this.node.equips.childNodes[j].classList.contains("feichu") &&
- !this.node.equips.childNodes[j].classList.contains("emptyequip")
- ) {
+ if (!this.node.equips.childNodes[j].classList.contains("removing") && !this.node.equips.childNodes[j].classList.contains("feichu") && !this.node.equips.childNodes[j].classList.contains("emptyequip")) {
cards.push(this.node.equips.childNodes[j]);
}
}
@@ -4075,15 +3857,10 @@ export class Player extends HTMLDivElement {
}
} else if (arg1[i] == "j") {
for (j = 0; j < this.node.judges.childElementCount; j++) {
- if (
- !this.node.judges.childNodes[j].classList.contains("removing") &&
- !this.node.judges.childNodes[j].classList.contains("feichu") &&
- !this.node.judges.childNodes[j].classList.contains("emptyequip")
- ) {
+ if (!this.node.judges.childNodes[j].classList.contains("removing") && !this.node.judges.childNodes[j].classList.contains("feichu") && !this.node.judges.childNodes[j].classList.contains("emptyequip")) {
cards.push(this.node.judges.childNodes[j]);
if (this.node.judges.childNodes[j].viewAs && arguments.length > 1) {
- this.node.judges.childNodes[j].tempJudge =
- this.node.judges.childNodes[j].name;
+ this.node.judges.childNodes[j].tempJudge = this.node.judges.childNodes[j].name;
this.node.judges.childNodes[j].name = this.node.judges.childNodes[j].viewAs;
cards1.push(this.node.judges.childNodes[j]);
}
@@ -4348,11 +4125,7 @@ export class Player extends HTMLDivElement {
var next = game.createEvent("phaseDraw");
next.player = this;
next.num = 2;
- if (
- (get.config("first_less") || _status.connectMode || _status.first_less_forced) &&
- game.phaseNumber == 1 &&
- _status.first_less
- ) {
+ if ((get.config("first_less") || _status.connectMode || _status.first_less_forced) && game.phaseNumber == 1 && _status.first_less) {
next.num--;
}
next.setContent("phaseDraw");
@@ -4387,10 +4160,7 @@ export class Player extends HTMLDivElement {
for (var i = 0; i < arguments.length; i++) {
if (typeof arguments[i] == "number" || get.itemtype(arguments[i]) == "select") {
next.selectTarget = arguments[i];
- } else if (
- (typeof arguments[i] == "object" && arguments[i]) ||
- typeof arguments[i] == "function"
- ) {
+ } else if ((typeof arguments[i] == "object" && arguments[i]) || typeof arguments[i] == "function") {
if (get.itemtype(arguments[i]) == "player" || next.filterCard) {
next.filterTarget = arguments[i];
} else next.filterCard = arguments[i];
@@ -4597,8 +4367,7 @@ export class Player extends HTMLDivElement {
var player = _status.event.player;
var event = _status.event.getParent();
var getn = function (card) {
- if (player.hasSkill("tianbian") && get.suit(card) == "heart")
- return 13 * (Boolean(event.small) ? -1 : 1);
+ if (player.hasSkill("tianbian") && get.suit(card) == "heart") return 13 * (Boolean(event.small) ? -1 : 1);
return get.number(card) * (Boolean(event.small) ? -1 : 1);
};
if (source && source != player) {
@@ -4638,12 +4407,10 @@ export class Player extends HTMLDivElement {
var friend = get.attitude(player, to) > 0;
if (card.name == "du") addi -= 5;
if (player == event.player) {
- if (Boolean(event.small))
- return -getn(card) - get.value(card) / (friend ? 4 : 5) + addi;
+ if (Boolean(event.small)) return -getn(card) - get.value(card) / (friend ? 4 : 5) + addi;
return getn(card) - get.value(card) / (friend ? 4 : 5) + addi;
} else {
- if (friend == Boolean(event.small))
- return getn(card) - get.value(card) / (friend ? 3 : 5) + addi;
+ if (friend == Boolean(event.small)) return getn(card) - get.value(card) / (friend ? 3 : 5) + addi;
return -getn(card) - get.value(card) / (friend ? 3 : 5) + addi;
}
};
@@ -4700,8 +4467,7 @@ export class Player extends HTMLDivElement {
if (get.itemtype(arguments[i]) == "cards") cards = arguments[i];
else if (typeof arguments[i] == "boolean") forced = arguments[i];
else if (typeof arguments[i] == "string") prompt = arguments[i];
- else if (get.itemtype(arguments[i]) == "select" || typeof arguments[i] == "number")
- select = arguments[i];
+ else if (get.itemtype(arguments[i]) == "select" || typeof arguments[i] == "number") select = arguments[i];
}
if (prompt == undefined) prompt = "请选择卡牌";
return this.chooseButton(forced, select, "hidden", [prompt, cards, "hidden"]);
@@ -4719,8 +4485,7 @@ export class Player extends HTMLDivElement {
notype = true;
} else if (typeof arguments[i] == "boolean") forced = arguments[i];
else if (typeof arguments[i] == "string") prompt = arguments[i];
- else if (get.itemtype(arguments[i]) == "select" || typeof arguments[i] == "number")
- select = arguments[i];
+ else if (get.itemtype(arguments[i]) == "select" || typeof arguments[i] == "number") select = arguments[i];
}
for (var i = 0; i < list.length; i++) {
list[i] = [notype ? "" : get.subtype(list[i], false) || get.type(list[i]), "", list[i]];
@@ -4821,7 +4586,7 @@ export class Player extends HTMLDivElement {
next.autochoose = function () {
if (!this.forced) return false;
if (typeof this.selectCard == "function") return false;
- if (this.complexCard || this.complexSelect || this.filterOk) return false;
+ if (this.complexCard || this.complexSelect || this.filterOk || this.getParent().name.startsWith("chooseToCompare")) return false;
var cards = this.player.getCards(this.position);
if (cards.some(card => !this.filterCard(card, this.player, this))) return false;
return get.select(this.selectCard)[0] >= this.player.countCards(this.position);
@@ -5215,7 +4980,7 @@ export class Player extends HTMLDivElement {
const player = this;
const args = Array.from(arguments).slice(2);
let sourceTargets, aimTargets, filterCard, canReplace;
- args.forEach((arg) => {
+ args.forEach(arg => {
if (get.itemtype(arg) == "players") {
if (!sourceTargets) sourceTargets = arg;
else if (!aimTargets) aimTargets = arg;
@@ -5232,32 +4997,21 @@ export class Player extends HTMLDivElement {
});
if (!sourceTargets) sourceTargets = game.filterPlayer();
if (!aimTargets) aimTargets = game.filterPlayer();
- return sourceTargets.some((current) => {
+ return sourceTargets.some(current => {
const att = get.sgn(get.attitude(player, current));
if (!withatt || att != 0) {
var es = current.getCards("e", filterCard);
for (var i = 0; i < es.length; i++) {
if (
- aimTargets.some((current2) => {
+ aimTargets.some(current2 => {
if (withatt) {
if (get.sgn(get.value(es[i], current)) != -att) return false;
var att2 = get.sgn(get.attitude(player, current2));
- if (
- !canReplace ||
- (att < 0 && current2.countEquipableSlot(get.subtype(es[i])))
- ) {
- if (
- att == att2 ||
- att2 != get.sgn(get.effect(current2, es[i], player, current2))
- )
- return false;
+ if (!canReplace || (att < 0 && current2.countEquipableSlot(get.subtype(es[i])))) {
+ if (att == att2 || att2 != get.sgn(get.effect(current2, es[i], player, current2))) return false;
}
}
- return (
- current != current2 &&
- !current2.isMin() &&
- current2.canEquip(es[i], canReplace)
- );
+ return current != current2 && !current2.isMin() && current2.canEquip(es[i], canReplace);
})
) {
return true;
@@ -5527,11 +5281,7 @@ export class Player extends HTMLDivElement {
next.visible = true;
} else if (arguments[i] == "bottom") {
next.bottom = true;
- } else if (
- typeof arguments[i] == "object" &&
- arguments[i] &&
- arguments[i].drawDeck != undefined
- ) {
+ } else if (typeof arguments[i] == "object" && arguments[i] && arguments[i].drawDeck != undefined) {
next.drawDeck = arguments[i].drawDeck;
}
}
@@ -5541,13 +5291,7 @@ export class Player extends HTMLDivElement {
next.resolve();
}
next.setContent("draw");
- if (
- lib.config.mode == "stone" &&
- _status.mode == "deck" &&
- next.drawDeck == undefined &&
- !next.player.isMin() &&
- next.num > 1
- ) {
+ if (lib.config.mode == "stone" && _status.mode == "deck" && next.drawDeck == undefined && !next.player.isMin() && next.num > 1) {
next.drawDeck = 1;
}
next.result = [];
@@ -5821,9 +5565,9 @@ export class Player extends HTMLDivElement {
return this;
}
/**
- *
- * @param { Player[] } targets
- * @param { string } [position]
+ *
+ * @param { Player[] } targets
+ * @param { string } [position]
*/
gainMultiple(targets, position = "h") {
var next = game.createEvent("gainMultiple", false);
@@ -5990,10 +5734,10 @@ export class Player extends HTMLDivElement {
return next;
}
/**
- *
- * @param { Card | Card[] } cards
- * @param { Player } target
- * @param { boolean } [visible]
+ *
+ * @param { Card | Card[] } cards
+ * @param { Player } target
+ * @param { boolean } [visible]
*/
give(cards, target, visible) {
var next = target.gain(cards, this);
@@ -6044,13 +5788,7 @@ export class Player extends HTMLDivElement {
next.getd = function (player, key, position) {
if (!position) position = ui.discardPile;
if (!key) key = "cards";
- if (
- this.getlx === false ||
- this.position != position ||
- (player && this.player != player) ||
- !Array.isArray(this[key])
- )
- return [];
+ if (this.getlx === false || this.position != position || (player && this.player != player) || !Array.isArray(this[key])) return [];
return this[key].slice(0);
};
next.getl = function (player) {
@@ -6106,7 +5844,7 @@ export class Player extends HTMLDivElement {
if (!nature) return Boolean(this.nature && this.nature.length > 0);
let natures = get.natureList(nature),
naturesx = get.natureList(this.nature);
- if (nature == "linked") return naturesx.some((n) => lib.linked.includes(n));
+ if (nature == "linked") return naturesx.some(n => lib.linked.includes(n));
return get.is.sameNature(natures, naturesx);
};
if (next.hasNature("poison")) delete next._triggered;
@@ -6187,7 +5925,7 @@ export class Player extends HTMLDivElement {
return next;
}
/**
- * @param { number } [num]
+ * @param { number } [num]
*/
loseHp(num) {
var next = game.createEvent("loseHp");
@@ -6613,7 +6351,7 @@ export class Player extends HTMLDivElement {
let bool = false;
if (
!unlimited &&
- cards.some((card) => {
+ cards.some(card => {
const position = get.position(card, true);
return position != "j" && position != "o";
})
@@ -6794,11 +6532,7 @@ export class Player extends HTMLDivElement {
for (var i = 0; i < game.players.length; i++) {
game.players[i].hideTimer();
}
- } else if (
- !get.event("_global_waiting") &&
- (_status.noclearcountdown !== "direct" || (result && result.bool)) &&
- !(result && result._noHidingTimer)
- ) {
+ } else if (!get.event("_global_waiting") && (_status.noclearcountdown !== "direct" || (result && result.bool)) && !(result && result._noHidingTimer)) {
this.hideTimer();
}
clearTimeout(lib.node.torespondtimeout[this.playerid]);
@@ -6806,10 +6540,7 @@ export class Player extends HTMLDivElement {
if (!(this.playerid in lib.node.torespond)) return;
var noresume = false;
var proceed = null;
- if (
- typeof lib.node.torespond[this.playerid] == "function" &&
- lib.node.torespond[this.playerid]._noname_waiting
- ) {
+ if (typeof lib.node.torespond[this.playerid] == "function" && lib.node.torespond[this.playerid]._noname_waiting) {
proceed = lib.node.torespond[this.playerid](result, this);
if (proceed === false) {
noresume = true;
@@ -6832,19 +6563,16 @@ export class Player extends HTMLDivElement {
tempUnwait(result) {
if (!(this.playerid in lib.node.torespond)) return;
var proceed;
- if (
- typeof lib.node.torespond[this.playerid] == "function" &&
- lib.node.torespond[this.playerid]._noname_waiting
- ) {
+ if (typeof lib.node.torespond[this.playerid] == "function" && lib.node.torespond[this.playerid]._noname_waiting) {
proceed = lib.node.torespond[this.playerid](result, this);
}
if (typeof proceed == "function") proceed();
}
/**
- * @param { string | string[] } name
- * @param { Player | Player[] } [targets]
- * @param { boolean | string } [nature]
- * @param { boolean } [logv]
+ * @param { string | string[] } name
+ * @param { Player | Player[] } [targets]
+ * @param { boolean | string } [nature]
+ * @param { boolean } [logv]
*/
logSkill(name, targets, nature, logv) {
if (get.itemtype(targets) == "player") targets = [targets];
@@ -6878,13 +6606,7 @@ export class Player extends HTMLDivElement {
this.line(targets, nature);
}
var info = lib.skill[name];
- if (
- info &&
- info.ai &&
- info.ai.expose != undefined &&
- this.logAi &&
- (!targets || targets.length != 1 || targets[0] != this)
- ) {
+ if (info && info.ai && info.ai.expose != undefined && this.logAi && (!targets || targets.length != 1 || targets[0] != this)) {
this.logAi(lib.skill[name].ai.expose);
}
if (info && info.round) {
@@ -7023,12 +6745,7 @@ export class Player extends HTMLDivElement {
this.node.prompt = node;
}
node.dataset.position = this.dataset.position;
- if (
- this.dataset.position == 0 ||
- parseInt(this.dataset.position) == parseInt(ui.arena.dataset.number) / 2 ||
- typeof name2 == "number" ||
- this.classList.contains("minskin")
- ) {
+ if (this.dataset.position == 0 || parseInt(this.dataset.position) == parseInt(ui.arena.dataset.number) / 2 || typeof name2 == "number" || this.classList.contains("minskin")) {
node.innerHTML = name2;
} else {
for (var i = 0; i < name2.length; i++) {
@@ -7040,10 +6757,10 @@ export class Player extends HTMLDivElement {
}
}
/**
- *
- * @param { string } name
- * @param { string } className
- * @param { Parameters[3] } [nobroadcast]
+ *
+ * @param { string } name
+ * @param { string } className
+ * @param { Parameters[3] } [nobroadcast]
*/
popup(name, className = "water", nobroadcast) {
var name2 = get.translation(name);
@@ -7059,12 +6776,7 @@ export class Player extends HTMLDivElement {
}
game.addVideo("popup", this, [name, className]);
node.dataset.position = this.dataset.position;
- if (
- this.dataset.position == 0 ||
- parseInt(this.dataset.position) == parseInt(ui.arena.dataset.number) / 2 ||
- typeof name2 == "number" ||
- this.classList.contains("minskin")
- ) {
+ if (this.dataset.position == 0 || parseInt(this.dataset.position) == parseInt(ui.arena.dataset.number) / 2 || typeof name2 == "number" || this.classList.contains("minskin")) {
node.innerHTML = name2;
} else {
for (var i = 0; i < name2.length; i++) {
@@ -7159,7 +6871,7 @@ export class Player extends HTMLDivElement {
}
}
getExpansions(tag) {
- return this.getCards("x", (card) => card.hasGaintag(tag));
+ return this.getCards("x", card => card.hasGaintag(tag));
}
countExpansions(tag) {
return this.getExpansions(tag).length;
@@ -7187,14 +6899,14 @@ export class Player extends HTMLDivElement {
if (!Array.isArray(values)) values = Array.from(arguments).slice(1);
if (!storage) return false;
if (!Array.isArray(storage)) return values.includes(storage);
- return values.some((item) => storage.includes(item));
+ return values.some(item => storage.includes(item));
}
hasStorageAll(name, values) {
const storage = this.storage[name];
if (!Array.isArray(values)) values = Array.from(arguments).slice(1);
if (!storage) return false;
if (!Array.isArray(storage)) return false;
- return values.every((item) => storage.includes(item));
+ return values.every(item => storage.includes(item));
}
initStorage(name, value, mark) {
return this.hasStorage(name) ? this.getStorage(name) : this.setStorage(name, value, mark);
@@ -7204,8 +6916,8 @@ export class Player extends HTMLDivElement {
}
updateStorageAsync(name, operation, mark) {
return Promise.resolve(this.getStorage(name))
- .then((value) => operation(value))
- .then((value) => this.setStorage(name, value, mark));
+ .then(value => operation(value))
+ .then(value => this.setStorage(name, value, mark));
}
removeStorage(name, mark) {
if (!this.hasStorage(name)) return false;
@@ -7387,8 +7099,7 @@ export class Player extends HTMLDivElement {
if (name.classList.contains("fullborder")) {
node.classList.add("fakejudge");
node.classList.add("fakemark");
- (node.querySelector(".background") || ui.create.div(".background", node)).innerHTML =
- lib.translate[name.name + "_bg"] || get.translation(name.name)[0];
+ (node.querySelector(".background") || ui.create.div(".background", node)).innerHTML = lib.translate[name.name + "_bg"] || get.translation(name.name)[0];
}
name = name.name;
@@ -7442,10 +7153,7 @@ export class Player extends HTMLDivElement {
}
} else {
for (var i = 0; i < this.node.marks.childNodes.length; i++) {
- if (
- this.node.marks.childNodes[i].name == name &&
- (!info || this.node.marks.childNodes[i].markidentifer == info)
- ) {
+ if (this.node.marks.childNodes[i].name == name && (!info || this.node.marks.childNodes[i].markidentifer == info)) {
this.node.marks.childNodes[i].delete();
this.node.marks.childNodes[i].style.transform += " scale(0.2)";
ui.updatem(this);
@@ -7469,10 +7177,10 @@ export class Player extends HTMLDivElement {
}
}
/**
- * @param { string | Card | VCard } card
- * @param { Player } target
- * @param { boolean } [distance]
- * @param { GameEventPromise | boolean } [includecard]
+ * @param { string | Card | VCard } card
+ * @param { Player } target
+ * @param { boolean } [distance]
+ * @param { GameEventPromise | boolean } [includecard]
* @returns { boolean }
*/
canUse(card, target, distance, includecard) {
@@ -7586,12 +7294,7 @@ export class Player extends HTMLDivElement {
cfg.group = cfg.group || "qun";
cfg.skill = cfg.skill || _status.event.name;
if (!cfg.source) {
- if (
- this.hasSkill(_status.event.name) &&
- this.name2 &&
- lib.character[this.name2] &&
- lib.character[this.name2][3].includes(_status.event.name)
- ) {
+ if (this.hasSkill(_status.event.name) && this.name2 && lib.character[this.name2] && lib.character[this.name2][3].includes(_status.event.name)) {
cfg.source = this.name2;
} else {
cfg.source = this.name;
@@ -7612,7 +7315,7 @@ export class Player extends HTMLDivElement {
};
lib.character[skill] = [cfg.sex, cfg.group, cfg.maxHp, cfg.skills, []];
if (Array.isArray(cfg.image)) {
- cfg.image.forEach((image) => lib.character[skill][4].push(image));
+ cfg.image.forEach(image => lib.character[skill][4].push(image));
} else if (typeof cfg.image == "string") {
lib.character[skill].trashBin.push(cfg.image);
} else {
@@ -7625,13 +7328,7 @@ export class Player extends HTMLDivElement {
skill,
cfg
);
- game.addVideo("addSubPlayer", this, [
- skill,
- lib.skill[skill],
- lib.character[skill],
- lib.translate[skill],
- { name: cfg.name },
- ]);
+ game.addVideo("addSubPlayer", this, [skill, lib.skill[skill], lib.character[skill], lib.translate[skill], { name: cfg.name }]);
this.addSkill(skill);
return skill;
}
@@ -7702,18 +7399,14 @@ export class Player extends HTMLDivElement {
for (const skill of skills) {
const info = lib.skill[skill];
if (!info) {
- console.error(
- new ReferenceError(
- `Cannot find ${skill} in lib.skill, failed to add ${skill}'s trigger to ${this.name}`
- )
- );
+ console.error(new ReferenceError(`Cannot find ${skill} in lib.skill, failed to add ${skill}'s trigger to ${this.name}`));
continue;
}
if (!triggeronly) {
if (info.global && (!hidden || info.globalSilent)) {
let global = info.global;
if (!Array.isArray(global)) global = [global];
- global.forEach((skill) => game.addGlobalSkill(skill, this));
+ global.forEach(skill => game.addGlobalSkill(skill, this));
}
if (this.initedSkills.includes(skill)) continue;
this.initedSkills.push(skill);
@@ -7729,7 +7422,7 @@ export class Player extends HTMLDivElement {
for (const role in info.trigger) {
let evts = info.trigger[role];
if (!Array.isArray(evts)) evts = [evts];
- evts.forEach((evt) => setTrigger(role, evt));
+ evts.forEach(evt => setTrigger(role, evt));
}
}
if (info.hookTrigger) {
@@ -7748,7 +7441,7 @@ export class Player extends HTMLDivElement {
game.log(
this,
"获得了技能",
- ...skill.map((i) => {
+ ...skill.map(i => {
this.popup(i);
return "#g【" + get.translation(i) + "】";
})
@@ -7761,7 +7454,7 @@ export class Player extends HTMLDivElement {
game.log(
this,
"失去了技能",
- ...skill.map((i) => {
+ ...skill.map(i => {
if (popup === true) this.popup(i);
return "#g【" + get.translation(i) + "】";
})
@@ -7864,12 +7557,7 @@ export class Player extends HTMLDivElement {
} else if (info.mark == "card" && get.itemtype(this.storage[skill]) == "cards") {
this.markSkill(skill, null, this.storage[skill][0], nobroadcast);
} else if (info.mark == "image") {
- this.markSkill(
- skill,
- null,
- ui.create.card(null, "noclick").init([null, null, skill]),
- nobroadcast
- );
+ this.markSkill(skill, null, ui.create.card(null, "noclick").init([null, null, skill]), nobroadcast);
} else if (info.mark == "character") {
var intro = info.intro.content;
if (typeof intro == "function") {
@@ -7899,10 +7587,7 @@ export class Player extends HTMLDivElement {
addAdditionalSkills(skill, skillsToAdd, keep) {
if (typeof skillsToAdd == "string") skillsToAdd = [skillsToAdd];
if (!Array.isArray(skillsToAdd)) {
- console.warn(
- `警告:Player[${this.name}].addAdditionalSkills的参数错误,应当为技能字符串或数组:`,
- skillsToAdd
- );
+ console.warn(`警告:Player[${this.name}].addAdditionalSkills的参数错误,应当为技能字符串或数组:`, skillsToAdd);
}
const skillsToRemove = [];
//如果不需要保留原本的additionalSkills,则判断要移除的技能,并移除这些技能
@@ -7910,47 +7595,41 @@ export class Player extends HTMLDivElement {
skillsToRemove.addArray(this.getRemovableAdditionalSkills(skill));
}
//创建对应的addSkills的事件
- return this.changeSkills(skillsToAdd, skillsToRemove).set(
- "$handle",
- function (player, skillsToAdd, skillsToRemove) {
- //先失去先前获得的衍生技能
- if (skillsToRemove.length > 0) {
- game.log(
- player,
- "失去了技能",
- ...skillsToRemove.map((i) => {
- return "#g【" + get.translation(i) + "】";
- })
- );
- player.removeSkill(skillsToRemove);
- }
- //再获得新的衍生技能
- if (skillsToAdd.length > 0) {
- game.log(
- player,
- "获得了技能",
- ...skillsToAdd.map((i) => {
- return "#g【" + get.translation(i) + "】";
- })
- );
- if (!Array.isArray(player.additionalSkills[skill])) player.additionalSkills[skill] = [];
- for (var i = 0; i < skillsToAdd.length; i++) {
- player.addSkill(skillsToAdd[i], null, true, true);
- player.additionalSkills[skill].push(skillsToAdd[i]);
- }
- player.checkConflict();
- }
- _status.event.clearStepCache();
+ return this.changeSkills(skillsToAdd, skillsToRemove).set("$handle", function (player, skillsToAdd, skillsToRemove) {
+ //先失去先前获得的衍生技能
+ if (skillsToRemove.length > 0) {
+ game.log(
+ player,
+ "失去了技能",
+ ...skillsToRemove.map(i => {
+ return "#g【" + get.translation(i) + "】";
+ })
+ );
+ player.removeSkill(skillsToRemove);
}
- );
+ //再获得新的衍生技能
+ if (skillsToAdd.length > 0) {
+ game.log(
+ player,
+ "获得了技能",
+ ...skillsToAdd.map(i => {
+ return "#g【" + get.translation(i) + "】";
+ })
+ );
+ if (!Array.isArray(player.additionalSkills[skill])) player.additionalSkills[skill] = [];
+ for (var i = 0; i < skillsToAdd.length; i++) {
+ player.addSkill(skillsToAdd[i], null, true, true);
+ player.additionalSkills[skill].push(skillsToAdd[i]);
+ }
+ player.checkConflict();
+ }
+ _status.event.clearStepCache();
+ });
}
addAdditionalSkill(skill, skillsToAdd, keep) {
if (typeof skillsToAdd == "string") skillsToAdd = [skillsToAdd];
if (!Array.isArray(skillsToAdd)) {
- console.warn(
- `警告:Player[${this.name}].addAdditionalSkill的参数错误,应当为技能字符串或数组:`,
- skillsToAdd
- );
+ console.warn(`警告:Player[${this.name}].addAdditionalSkill的参数错误,应当为技能字符串或数组:`, skillsToAdd);
}
const skillsToRemove = [];
//如果不需要保留原本的additionalSkills,则判断要移除的技能,并移除这些技能
@@ -7993,10 +7672,9 @@ export class Player extends HTMLDivElement {
return (
player.skills.includes(skill) ||
player.tempSkills[skill] ||
- Object.keys(player.additionalSkills).some((key) => {
+ Object.keys(player.additionalSkills).some(key => {
if (key === skillkey) return false;
- if (Array.isArray(player.additionalSkills[key]))
- return player.additionalSkills[key].includes(skill);
+ if (Array.isArray(player.additionalSkills[key])) return player.additionalSkills[key].includes(skill);
return player.additionalSkills[key] == skill;
})
);
@@ -8007,9 +7685,7 @@ export class Player extends HTMLDivElement {
}
} else {
if (Array.isArray(additionalSkills)) {
- removableSkills.addArray(
- additionalSkills.filter((target) => !hasAnotherSKill(skill, target))
- );
+ removableSkills.addArray(additionalSkills.filter(target => !hasAnotherSKill(skill, target)));
}
}
}
@@ -8033,7 +7709,7 @@ export class Player extends HTMLDivElement {
game.log(
player,
"失去了技能",
- ...removeSkills.map((i) => {
+ ...removeSkills.map(i => {
return "#g【" + get.translation(i) + "】";
})
);
@@ -8174,18 +7850,14 @@ export class Player extends HTMLDivElement {
for (const skill of skills) {
const info = lib.skill[skill];
if (!info) {
- console.error(
- new ReferenceError(
- `Cannot find ${skill} in lib.skill, failed to remove ${skill}'s trigger to ${this.name}`
- )
- );
+ console.error(new ReferenceError(`Cannot find ${skill} in lib.skill, failed to remove ${skill}'s trigger to ${this.name}`));
continue;
}
if (!triggeronly) {
if (info.global) {
let global = info.global;
if (!Array.isArray(global)) global = [global];
- global.forEach((skill) => game.removeGlobalSkill(skill, this));
+ global.forEach(skill => game.removeGlobalSkill(skill, this));
}
if (!this.initedSkills.includes(skill)) continue;
this.initedSkills.remove(skill);
@@ -8201,7 +7873,7 @@ export class Player extends HTMLDivElement {
for (const role in info.trigger) {
let evts = info.trigger[role];
if (!Array.isArray(evts)) evts = [evts];
- evts.forEach((evt) => removeTrigger(role, evt));
+ evts.forEach(evt => removeTrigger(role, evt));
}
}
if (info.hookTrigger && this._hookTrigger) {
@@ -8281,10 +7953,7 @@ export class Player extends HTMLDivElement {
//请注意,该方法的底层实现并非tempSkill,而是additionalSkills和player.when!
if (typeof skillsToAdd == "string") skillsToAdd = [skillsToAdd];
if (!Array.isArray(skillsToAdd) || !skillsToAdd.length) {
- console.warn(
- `警告:Player[${this.name}].addAdditionalSkills的参数错误,应当为技能字符串或非空数组:`,
- skillsToAdd
- );
+ console.warn(`警告:Player[${this.name}].addAdditionalSkills的参数错误,应当为技能字符串或非空数组:`, skillsToAdd);
}
//确定技能要被移除的时机
if (!expire) expire = { global: ["phaseAfter", "phaseBeforeStart"] };
@@ -8294,7 +7963,7 @@ export class Player extends HTMLDivElement {
game.log(
player,
"获得了技能",
- ...addSkills.map((i) => {
+ ...addSkills.map(i => {
return "#g【" + get.translation(i) + "】";
})
);
@@ -8322,15 +7991,15 @@ export class Player extends HTMLDivElement {
}
/**
* @overload
- * @param { string } skill
- * @param { SkillTrigger | string } [expire]
- * @param { boolean } [checkConflict]
+ * @param { string } skill
+ * @param { SkillTrigger | string } [expire]
+ * @param { boolean } [checkConflict]
*/
/**
* @overload
- * @param { string[] } skill
- * @param { SkillTrigger } [expire]
- * @param { boolean } [checkConflict]
+ * @param { string[] } skill
+ * @param { SkillTrigger } [expire]
+ * @param { boolean } [checkConflict]
*/
addTempSkill(skill, expire, checkConflict) {
if (Array.isArray(skill)) {
@@ -8350,7 +8019,7 @@ export class Player extends HTMLDivElement {
for (const i of roles) {
let triggers = expire[i];
if (!Array.isArray(triggers)) triggers = [triggers];
- triggers.forEach((trigger) => (lib.hookmap[trigger] = true));
+ triggers.forEach(trigger => (lib.hookmap[trigger] = true));
}
}
}
@@ -8365,8 +8034,7 @@ export class Player extends HTMLDivElement {
if (this.isTempBanned(skill)) return;
this.setStorage(`temp_ban_${skill}`, true);
- if (log !== false && this.hasSkill(skill))
- game.log(this, "的技能", `#g【${get.translation(skill)}】`, "暂时失效了");
+ if (log !== false && this.hasSkill(skill)) game.log(this, "的技能", `#g【${get.translation(skill)}】`, "暂时失效了");
if (!expire) expire = { global: ["phaseAfter", "phaseBeforeStart"] };
else if (typeof expire == "string" || Array.isArray(expire)) expire = { global: expire };
@@ -8441,10 +8109,7 @@ export class Player extends HTMLDivElement {
var forbidlist = lib.config.forbid.concat(lib.config.customforbid);
var skills = this.getSkills();
for (var i = 0; i < forbidlist.length; i++) {
- if (
- lib.config.customforbid.includes(forbidlist[i]) ||
- !lib.config.forbidlist.includes(getName(forbidlist[i]))
- ) {
+ if (lib.config.customforbid.includes(forbidlist[i]) || !lib.config.forbidlist.includes(getName(forbidlist[i]))) {
for (var j = 0; j < forbidlist[i].length; j++) {
if (!skills.includes(forbidlist[i][j])) break;
}
@@ -8498,7 +8163,7 @@ export class Player extends HTMLDivElement {
evts.reverse();
if (last && evts.includes(last)) {
const lastIndex = evts.indexOf(last);
- return evts.filter((evt) => evts.indexOf(evt) <= lastIndex);
+ return evts.filter(evt => evts.indexOf(evt) <= lastIndex);
}
return evts;
}
@@ -8509,7 +8174,7 @@ export class Player extends HTMLDivElement {
/**
* @template { keyof ActionHistory } T
* @overload
- * @param { T } key
+ * @param { T } key
* @param { (event: GameEventPromise) => boolean } [filter]
* @param { GameEventPromise } [last]
* @returns { ActionHistory[T] }
@@ -8531,7 +8196,7 @@ export class Player extends HTMLDivElement {
}
/**
* @template { keyof ActionHistory } T
- * @param { T } key
+ * @param { T } key
* @param { (event: GameEventPromise) => boolean } filter
* @param { GameEventPromise } [last]
*/
@@ -8552,7 +8217,7 @@ export class Player extends HTMLDivElement {
}
/**
* @template { keyof ActionHistory } T
- * @param { T } key
+ * @param { T } key
* @param { (event: GameEventPromise) => boolean } [filter]
* @param { GameEventPromise } [last]
* @returns { boolean }
@@ -8572,7 +8237,7 @@ export class Player extends HTMLDivElement {
/**
* @template { keyof ActionHistory } T
* @overload
- * @param { T } [key]
+ * @param { T } [key]
* @param { (event: GameEventPromise) => boolean } [filter]
* @param { GameEventPromise } [last]
* @returns { null | ActionHistory[T] | boolean }
@@ -8607,7 +8272,7 @@ export class Player extends HTMLDivElement {
*/
checkAllHistory(key, filter, last) {
if (!key || !filter) return;
- this.actionHistory.forEach((value) => {
+ this.actionHistory.forEach(value => {
let history = value[key];
if (last && history.includes(last)) {
const lastIndex = history.indexOf(last);
@@ -8629,7 +8294,7 @@ export class Player extends HTMLDivElement {
*/
getAllHistory(key, filter, last) {
const history = [];
- this.actionHistory.forEach((value) => {
+ this.actionHistory.forEach(value => {
if (!key || !value[key]) {
history.push(value);
} else {
@@ -8656,7 +8321,7 @@ export class Player extends HTMLDivElement {
* @returns { boolean }
*/
hasAllHistory(key, filter, last) {
- return this.actionHistory.some((value) => {
+ return this.actionHistory.some(value => {
let history = value[key];
if (last && history.includes(last)) {
const lastIndex = history.indexOf(last);
@@ -8741,7 +8406,7 @@ export class Player extends HTMLDivElement {
const equips = player.getCards("e", function (card) {
return !ui.selected.cards || !ui.selected.cards.includes(card);
});
- equips.forEach((card) => {
+ equips.forEach(card => {
const info = get.info(card, false).distance;
if (info && info.globalFrom) {
range += info.globalFrom;
@@ -8871,11 +8536,7 @@ export class Player extends HTMLDivElement {
if (func && !func(target)) return false;
if (num >= 3) return target.identity == "fan";
if (game.players.length == 2) return target != player;
- return (
- target.identity == "zhong" ||
- target.identity == "mingzhong" ||
- target.identity == "fan"
- );
+ return target.identity == "zhong" || target.identity == "mingzhong" || target.identity == "fan";
});
break;
case "fan":
@@ -9017,11 +8678,7 @@ export class Player extends HTMLDivElement {
isFriendOf(player) {
if (get.mode() == "guozhan") {
if (this == player) return true;
- if (
- this.getStorage("yexinjia_friend").includes(player) ||
- player.getStorage("yexinjia_friend").includes(this)
- )
- return true;
+ if (this.getStorage("yexinjia_friend").includes(player) || player.getStorage("yexinjia_friend").includes(this)) return true;
if (this.identity == "unknown" || this.identity == "ye") return false;
if (player.identity == "unknown" || player.identity == "ye") return false;
return this.identity == player.identity;
@@ -9056,65 +8713,57 @@ export class Player extends HTMLDivElement {
return this.hp >= this.maxHp || this.storage.nohp;
}
isMaxHp(only, raw) {
- return game.players.every((value) => {
+ return game.players.every(value => {
if (value.isOut() || value == this) return true;
return only ? value.getHp(raw) < this.getHp(raw) : value.getHp(raw) <= this.getHp(raw);
});
}
isMinHp(only, raw) {
- return game.players.every((value) => {
+ return game.players.every(value => {
if (value.isOut() || value == this) return true;
return only ? value.getHp(raw) > this.getHp(raw) : value.getHp(raw) >= this.getHp(raw);
});
}
isMaxCard(only) {
const numberOfCards = this.countCards("he");
- return game.players.every((value) => {
+ return game.players.every(value => {
if (value.isOut() || value == this) return true;
return only ? value.countCards("he") < numberOfCards : value.countCards("he") <= numberOfCards;
});
}
isMinCard(only) {
const numberOfCards = this.countCards("he");
- return game.players.every((value) => {
+ return game.players.every(value => {
if (value.isOut() || value == this) return true;
return only ? value.countCards("he") > numberOfCards : value.countCards("he") >= numberOfCards;
});
}
isMaxHandcard(only) {
const numberOfHandCards = this.countCards("h");
- return game.players.every((value) => {
+ return game.players.every(value => {
if (value.isOut() || value == this) return true;
- return only
- ? value.countCards("h") < numberOfHandCards
- : value.countCards("h") <= numberOfHandCards;
+ return only ? value.countCards("h") < numberOfHandCards : value.countCards("h") <= numberOfHandCards;
});
}
isMinHandcard(only) {
const numberOfHandCards = this.countCards("h");
- return game.players.every((value) => {
+ return game.players.every(value => {
if (value.isOut() || value == this) return true;
- return only
- ? value.countCards("h") > numberOfHandCards
- : value.countCards("h") >= numberOfHandCards;
+ return only ? value.countCards("h") > numberOfHandCards : value.countCards("h") >= numberOfHandCards;
});
}
isMaxEquip(only) {
const numberOfEquipAreaCards = this.countCards("e");
- return game.players.every((value) => {
+ return game.players.every(value => {
if (value.isOut() || value == this) return true;
- return only
- ? value.countCards("e") < numberOfEquipAreaCards
- : value.countCards("e") <= numberOfEquipAreaCards;
+ return only ? value.countCards("e") < numberOfEquipAreaCards : value.countCards("e") <= numberOfEquipAreaCards;
});
}
isMinEquip(only) {
const numberOfEquipAreaCards = this.countCards("e");
- return game.players.every((value) => {
+ return game.players.every(value => {
if (value.isOut() || value == this) return true;
- return only
- ? value.countCards("e") > numberOfEquipAreaCards
- : value.countCards("e") >= numberOfEquipAreaCards;
+ return only ? value.countCards("e") > numberOfEquipAreaCards : value.countCards("e") >= numberOfEquipAreaCards;
});
}
isLinked() {
@@ -9135,11 +8784,7 @@ export class Player extends HTMLDivElement {
return this.classList.contains("minskin") && !game.chess;
}
isIn() {
- return (
- this.classList.contains("dead") == false &&
- this.classList.contains("out") == false &&
- !this.removed
- );
+ return this.classList.contains("dead") == false && this.classList.contains("out") == false && !this.removed;
}
isUnseen(num) {
switch (num) {
@@ -9150,9 +8795,7 @@ export class Player extends HTMLDivElement {
case 2:
return this.classList.contains("unseen") || this.classList.contains("unseen2");
default:
- return (
- this.classList.contains("unseen") && (!this.name2 || this.classList.contains("unseen2"))
- );
+ return this.classList.contains("unseen") && (!this.name2 || this.classList.contains("unseen2"));
}
}
isUnderControl(self, me) {
@@ -9235,10 +8878,10 @@ export class Player extends HTMLDivElement {
return false;
}
/**
- *
- * @param { number | Card[] | Card } [add]
- * @param { (card?: Card, player?: Player) => boolean } [filter]
- * @param { boolean } [pure]
+ *
+ * @param { number | Card[] | Card } [add]
+ * @param { (card?: Card, player?: Player) => boolean } [filter]
+ * @param { boolean } [pure]
*/
needsToDiscard(add, filter, pure) {
/**
@@ -9255,7 +8898,7 @@ export class Player extends HTMLDivElement {
}
else if (get.itemtype(add) === "card") cards.push(add);
if (typeof filter !== "function") filter = (card, player) => !player.canIgnoreHandcard(card);
- cards = cards.filter((card) => {
+ cards = cards.filter(card => {
return filter(card, this, cards);
});
num += cards.length - this.getHandcardLimit();
@@ -9269,20 +8912,20 @@ export class Player extends HTMLDivElement {
return get.distance(target, this, method);
}
/**
- * @param { string } skill
- * @param { Parameters[0] } arg2
- * @param { Parameters[1] } arg3
- * @param { Parameters[2] } arg4
+ * @param { string } skill
+ * @param { Parameters[0] } arg2
+ * @param { Parameters[1] } arg3
+ * @param { Parameters[2] } arg4
* @returns { boolean }
*/
hasSkill(skill, arg2, arg3, arg4) {
return game.expandSkills(this.getSkills(arg2, arg3, arg4)).includes(skill);
}
/**
- * @param { string } skill
- * @param { Parameters[0] } arg1
- * @param { Parameters[1] } arg2
- * @param { Parameters[2] } arg3
+ * @param { string } skill
+ * @param { Parameters[0] } arg1
+ * @param { Parameters[1] } arg2
+ * @param { Parameters[2] } arg3
* @returns { boolean }
*/
hasStockSkill(skill, arg1, arg2, arg3) {
@@ -9312,9 +8955,9 @@ export class Player extends HTMLDivElement {
return false;
}
/**
- *
- * @param {string} skill
- * @param {Player} [player]
+ *
+ * @param {string} skill
+ * @param {Player} [player]
*/
hasZhuSkill(skill, player) {
if (!this.hasSkill(skill)) return false;
@@ -9335,12 +8978,7 @@ export class Player extends HTMLDivElement {
for (var i = 0; i < skills.length; i++) {
var info = lib.skill[skills[i]];
if (info && info.ai) {
- if (
- info.ai.skillTagFilter &&
- info.ai[tag] &&
- info.ai.skillTagFilter(this, tag, arg) === false
- )
- continue;
+ if (info.ai.skillTagFilter && info.ai[tag] && info.ai.skillTagFilter(this, tag, arg) === false) continue;
if (typeof info.ai[tag] == "string") {
if (info.ai[tag] == arg) return true;
} else if (info.ai[tag]) {
@@ -9351,10 +8989,10 @@ export class Player extends HTMLDivElement {
return false;
}
/**
- * @param {string} tag
- * @param {Parameters[0]} hidden
- * @param {Parameters[2]} arg
- * @param {boolean} [globalskill]
+ * @param {string} tag
+ * @param {Parameters[0]} hidden
+ * @param {Parameters[2]} arg
+ * @param {boolean} [globalskill]
*/
hasSkillTag(tag, hidden, arg, globalskill) {
var skills = this.getSkills(hidden);
@@ -9365,12 +9003,7 @@ export class Player extends HTMLDivElement {
for (var i = 0; i < skills.length; i++) {
var info = lib.skill[skills[i]];
if (info && info.ai) {
- if (
- info.ai.skillTagFilter &&
- info.ai[tag] &&
- info.ai.skillTagFilter(this, tag, arg) === false
- )
- continue;
+ if (info.ai.skillTagFilter && info.ai[tag] && info.ai.skillTagFilter(this, tag, arg) === false) continue;
if (typeof info.ai[tag] == "string") {
if (info.ai[tag] == arg) return true;
} else if (info.ai[tag]) {
@@ -9451,9 +9084,9 @@ export class Player extends HTMLDivElement {
return false;
}
/**
- *
- * @param {string|boolean} [respond]
- * @param {boolean} [noauto]
+ *
+ * @param {string|boolean} [respond]
+ * @param {boolean} [noauto]
*/
hasSha(respond, noauto) {
if (this.countCards("hs", "sha")) return true;
@@ -9481,10 +9114,7 @@ export class Player extends HTMLDivElement {
* rvt: return value type 'count', 'odds', 'bool'(default)
*/
let count = 0;
- if (
- (this.hp > 2 || (!this.isZhu && this.hp > 1)) &&
- this.hasSkillTag("respondSha", true, type, true)
- ) {
+ if ((this.hp > 2 || (!this.isZhu && this.hp > 1)) && this.hasSkillTag("respondSha", true, type, true)) {
if (rvt === "count") count++;
else if (rvt === "odds") return 1;
else return true;
@@ -9496,7 +9126,7 @@ export class Player extends HTMLDivElement {
else if (get.itemtype(ignore) === "card") selected.add(ignore);
if (this === viewer || get.itemtype(viewer) == "player") cards = this.getKnownCards(viewer);
else cards = this.getShownCards();
- count += cards.filter((card) => {
+ count += cards.filter(card => {
if (selected.includes(card)) return false;
let name = get.name(card, this);
if (name == "sha" || name == "hufu" || name == "yuchanqian") {
@@ -9507,7 +9137,7 @@ export class Player extends HTMLDivElement {
return false;
}).length;
if (count && rvt !== "count") return rvt === "odds" ? 1 : true;
- let hs = this.getCards("hs").filter((i) => !cards.includes(i)).length;
+ let hs = this.getCards("hs").filter(i => !cards.includes(i)).length;
if (!hs) {
if (rvt === "count") return count;
else if (rvt === "odds") return 0;
@@ -9529,10 +9159,7 @@ export class Player extends HTMLDivElement {
* rvt: return value type 'count', 'odds', 'bool'(default)
*/
let count = 0;
- if (
- (this.hp > 2 || (!this.isZhu && this.hp > 1)) &&
- this.hasSkillTag("respondShan", true, type, true)
- ) {
+ if ((this.hp > 2 || (!this.isZhu && this.hp > 1)) && this.hasSkillTag("respondShan", true, type, true)) {
if (rvt === "count") count++;
else if (rvt === "odds") return 1;
else return true;
@@ -9544,7 +9171,7 @@ export class Player extends HTMLDivElement {
else if (get.itemtype(ignore) === "card") selected.add(ignore);
if (this === viewer || get.itemtype(viewer) == "player") cards = this.getKnownCards(viewer);
else cards = this.getShownCards();
- count += cards.filter((card) => {
+ count += cards.filter(card => {
if (selected.includes(card)) return false;
let name = get.name(card, this);
if (name === "shan" || name === "hufu") {
@@ -9555,7 +9182,7 @@ export class Player extends HTMLDivElement {
return false;
}).length;
if (count && rvt !== "count") return rvt === "odds" ? 1 : true;
- let hs = this.getCards("hs").filter((i) => !cards.includes(i)).length;
+ let hs = this.getCards("hs").filter(i => !cards.includes(i)).length;
if (!hs) {
if (rvt === "count") return count;
else if (rvt === "odds") return 0;
@@ -9746,11 +9373,7 @@ export class Player extends HTMLDivElement {
}
config.current++;
}
- if (
- node.style.transform &&
- node.style.transform != "none" &&
- node.style.transform.indexOf("translate") == -1
- ) {
+ if (node.style.transform && node.style.transform != "none" && node.style.transform.indexOf("translate") == -1) {
node.style.transform += " translate(" + dx + "px," + dy + "px)";
} else {
node.style.transform = "translate(" + dx + "px," + dy + "px)";
@@ -9793,19 +9416,9 @@ export class Player extends HTMLDivElement {
targets,
cards
);
- game.addVideo("compareMultiple", this, [
- get.cardInfo(card1),
- get.targetsInfo(targets),
- get.cardsInfo(cards),
- ]);
+ game.addVideo("compareMultiple", this, [get.cardInfo(card1), get.targetsInfo(targets), get.cardsInfo(cards)]);
var player = this;
- var node1 = player.$throwxy2(
- card1,
- "calc(50% - 52px)",
- "calc(50% + 10px)",
- "perspective(600px) rotateY(180deg)",
- true
- );
+ var node1 = player.$throwxy2(card1, "calc(50% - 52px)", "calc(50% + 10px)", "perspective(600px) rotateY(180deg)", true);
if (lib.config.cardback_style != "default") {
node1.style.transitionProperty = "none";
ui.refresh(node1);
@@ -9845,21 +9458,9 @@ export class Player extends HTMLDivElement {
var left = left0 + i * 120;
var node2;
if (left < 0) {
- node2 = target.$throwxy2(
- card2,
- "calc(50% - " + -left + "px)",
- "calc(50% - 114px)",
- "perspective(600px) rotateY(180deg)",
- true
- );
+ node2 = target.$throwxy2(card2, "calc(50% - " + -left + "px)", "calc(50% - 114px)", "perspective(600px) rotateY(180deg)", true);
} else {
- node2 = target.$throwxy2(
- card2,
- "calc(50% + " + left + "px)",
- "calc(50% - 114px)",
- "perspective(600px) rotateY(180deg)",
- true
- );
+ node2 = target.$throwxy2(card2, "calc(50% + " + left + "px)", "calc(50% - 114px)", "perspective(600px) rotateY(180deg)", true);
}
if (lib.config.cardback_style != "default") {
node2.style.transitionProperty = "none";
@@ -9907,13 +9508,7 @@ export class Player extends HTMLDivElement {
);
game.addVideo("compare", this, [get.cardInfo(card1), target.dataset.position, get.cardInfo(card2)]);
var player = this;
- var node1 = player.$throwxy2(
- card1,
- "calc(50% - 114px)",
- "calc(50% - 52px)",
- "perspective(600px) rotateY(180deg)",
- true
- );
+ var node1 = player.$throwxy2(card1, "calc(50% - 114px)", "calc(50% - 52px)", "perspective(600px) rotateY(180deg)", true);
if (lib.config.cardback_style != "default") {
node1.style.transitionProperty = "none";
ui.refresh(node1);
@@ -9946,13 +9541,7 @@ export class Player extends HTMLDivElement {
};
node1.listenTransition(onEnd01);
setTimeout(function () {
- var node2 = target.$throwxy2(
- card2,
- "calc(50% + 10px)",
- "calc(50% - 52px)",
- "perspective(600px) rotateY(180deg)",
- true
- );
+ var node2 = target.$throwxy2(card2, "calc(50% + 10px)", "calc(50% - 52px)", "perspective(600px) rotateY(180deg)", true);
if (lib.config.cardback_style != "default") {
node2.style.transitionProperty = "none";
ui.refresh(node2);
@@ -10154,11 +9743,7 @@ export class Player extends HTMLDivElement {
}
}
}
- if (
- node.style.transform &&
- node.style.transform != "none" &&
- node.style.transform.indexOf("translate") == -1
- ) {
+ if (node.style.transform && node.style.transform != "none" && node.style.transform.indexOf("translate") == -1) {
node.style.transform += " translate(" + dx + "px," + dy + "px)";
} else {
node.style.transform = "translate(" + dx + "px," + dy + "px)";
@@ -10199,11 +9784,7 @@ export class Player extends HTMLDivElement {
}
}
}
- if (
- node.style.transform &&
- node.style.transform != "none" &&
- node.style.transform.indexOf("translate") == -1
- ) {
+ if (node.style.transform && node.style.transform != "none" && node.style.transform.indexOf("translate") == -1) {
node.style.transform += " translate(" + dx + "px," + dy + "px)";
} else {
node.style.transform = "translate(" + dx + "px," + dy + "px)";
@@ -10396,8 +9977,7 @@ export class Player extends HTMLDivElement {
}
deg = deg.slice(0);
dice.current = deg;
- this.style.transform =
- "rotateX(" + deg[0] + "deg) rotateY(" + deg[1] + "deg) rotateZ(" + deg[2] + "deg)";
+ this.style.transform = "rotateX(" + deg[0] + "deg) rotateY(" + deg[1] + "deg) rotateZ(" + deg[2] + "deg)";
};
dice.roll(map[num]);
diceContainer.appendChild(dice);
@@ -10512,11 +10092,7 @@ export class Player extends HTMLDivElement {
node.listenTransition(function () {
var dx = player.getLeft() + player.offsetWidth / 2 - 52 - node.offsetLeft;
var dy = player.getTop() + player.offsetHeight / 2 - 52 - node.offsetTop;
- if (
- node.style.transform &&
- node.style.transform != "none" &&
- node.style.transform.indexOf("translate") == -1
- ) {
+ if (node.style.transform && node.style.transform != "none" && node.style.transform.indexOf("translate") == -1) {
node.style.transform += " translate(" + dx + "px," + dy + "px)";
} else {
node.style.transform = "translate(" + dx + "px," + dy + "px)";
@@ -10545,7 +10121,7 @@ export class Player extends HTMLDivElement {
let player = this;
const cards = Array.from(this.node.equips.childNodes);
const cardsResume = cards.slice(0);
- cards.forEach((card) => {
+ cards.forEach(card => {
if (card.name.indexOf("empty_equip") == 0) {
let num = get.equipNum(card);
let remove = false;
@@ -10569,7 +10145,7 @@ export class Player extends HTMLDivElement {
}
if (
add &&
- !cardsResume.some((card) => {
+ !cardsResume.some(card => {
let num = get.equipNum(card);
if ((i == 4 || i == 3) && get.is.mountCombined()) {
return num == 4 || num == 3;
@@ -10703,18 +10279,8 @@ export class Player extends HTMLDivElement {
node.moveDelete = lib.element.Card.prototype.moveDelete;
}
node.fixed = true;
- node.style.left =
- "calc(50% - 52px " +
- (Math.random() - 0.5 < 0 ? "+" : "-") +
- " " +
- Math.random() * 100 +
- "px)";
- node.style.top =
- "calc(50% - 52px " +
- (Math.random() - 0.5 < 0 ? "+" : "-") +
- " " +
- Math.random() * 100 +
- "px)";
+ node.style.left = "calc(50% - 52px " + (Math.random() - 0.5 < 0 ? "+" : "-") + " " + Math.random() * 100 + "px)";
+ node.style.top = "calc(50% - 52px " + (Math.random() - 0.5 < 0 ? "+" : "-") + " " + Math.random() * 100 + "px)";
node.style.transform = "scale(0)";
node.hide();
ui.arena.appendChild(node);
@@ -10746,11 +10312,7 @@ export class Player extends HTMLDivElement {
var list = [],
list2 = [];
for (var i = 0; i < cards.length; i++) {
- if (
- cards[i].clone &&
- (cards[i].clone.parentNode == this.parentNode || cards[i].clone.parentNode == ui.arena) &&
- parseFloat(getComputedStyle(cards[i].clone).opacity) > 0.3
- ) {
+ if (cards[i].clone && (cards[i].clone.parentNode == this.parentNode || cards[i].clone.parentNode == ui.arena) && parseFloat(getComputedStyle(cards[i].clone).opacity) > 0.3) {
cards[i].clone.moveDelete(this);
list2.push(cards[i].clone);
} else {
@@ -10977,11 +10539,7 @@ export class Player extends HTMLDivElement {
node.classList.add("fullscreenavatar");
ui.create.div("", ui.create.div(node));
// ui.create.div('',str.split('').join('
'),ui.create.div('.text.textbg',node));
- ui.create.div(
- "",
- "" + str.split("").join("
") + "
",
- ui.create.div(".text", node)
- );
+ ui.create.div("", "" + str.split("").join("
") + "
", ui.create.div(".text", node));
node.firstChild.firstChild.style.backgroundImage = avatar.style.backgroundImage;
node.dataset.nature = nature || "unknown";
var num = 0;
@@ -11023,11 +10581,11 @@ export class Player extends HTMLDivElement {
);
}
/**
- *
- * @param { number | string } num
- * @param { string } [nature]
- * @param { boolean } [font]
- * @param { boolean } [nobroadcast]
+ *
+ * @param { number | string } num
+ * @param { string } [nature]
+ * @param { boolean } [font]
+ * @param { boolean } [nobroadcast]
*/
$damagepop(num, nature = "soil", font, nobroadcast) {
if (typeof num == "number" || typeof num == "string") {
@@ -11103,10 +10661,8 @@ export class Player extends HTMLDivElement {
if (source.getTop() - this.getTop() > 0) top = -top;
if (get.is.mobileMe(this)) {
if (this.classList.contains("linked")) {
- this.node.avatar.style.transform =
- "translate(" + left + "px," + top + "px) rotate(-90deg)";
- this.node.avatar2.style.transform =
- "translate(" + left + "px," + top + "px) rotate(-90deg)";
+ this.node.avatar.style.transform = "translate(" + left + "px," + top + "px) rotate(-90deg)";
+ this.node.avatar2.style.transform = "translate(" + left + "px," + top + "px) rotate(-90deg)";
} else {
this.node.avatar.style.transform = "translate(" + left + "px," + top + "px)";
this.node.avatar2.style.transform = "translate(" + left + "px," + top + "px)";
@@ -11114,12 +10670,7 @@ export class Player extends HTMLDivElement {
} else if (this.classList.contains("linked") && get.is.newLayout()) {
this.style.transform = "translate(" + left + "px," + top + "px) rotate(-90deg)";
} else if (this._chesstransform) {
- this.style.transform =
- "translate(" +
- (left + this._chesstransform[0]) +
- "px," +
- (top + this._chesstransform[1]) +
- "px)";
+ this.style.transform = "translate(" + (left + this._chesstransform[0]) + "px," + (top + this._chesstransform[1]) + "px)";
} else {
this.style.transform = "translate(" + left + "px," + top + "px)";
}
@@ -11141,14 +10692,7 @@ export class Player extends HTMLDivElement {
} else if (this.classList.contains("linked") && get.is.newLayout()) {
this.style.transform = "scale(" + zoom2 + ") rotate(-90deg)";
} else if (game.chess && this._chesstransform) {
- this.style.transform =
- "translate(" +
- this._chesstransform[0] +
- "px," +
- this._chesstransform[1] +
- "px) scale(" +
- zoom2 +
- ")";
+ this.style.transform = "translate(" + this._chesstransform[0] + "px," + this._chesstransform[1] + "px) scale(" + zoom2 + ")";
} else {
this.style.transform = "scale(" + zoom2 + ")";
}
@@ -11183,8 +10727,7 @@ export class Player extends HTMLDivElement {
left += this._chesstransform[0];
top += this._chesstransform[1];
}
- var transform =
- "translate(" + left + "px," + top + "px) " + "rotate(" + (Math.random() * 20 - 10) + "deg) ";
+ var transform = "translate(" + left + "px," + top + "px) " + "rotate(" + (Math.random() * 20 - 10) + "deg) ";
if (type == "flip") {
if (game.layout == "long" || game.layout == "long2") {
transform += "rotateY(180deg)";
@@ -11222,13 +10765,4 @@ export class Player extends HTMLDivElement {
}
}
-CacheContext.inject(Player.prototype, [
- "hasCard",
- "hasValueTarget",
- "getModableSkills",
- "getCardIndex",
- "countCards",
- "getSkills",
- "getUseValue",
- "canUse",
-]);
+CacheContext.inject(Player.prototype, ["hasCard", "hasValueTarget", "getModableSkills", "getCardIndex", "countCards", "getSkills", "getUseValue", "canUse"]);
From 4691280ce91722dae832b2785e928d5cf1a73ac0 Mon Sep 17 00:00:00 2001
From: mengxinzxz <2223529500@qq.com>
Date: Fri, 26 Apr 2024 22:53:40 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=9Eh=E5=8C=BA?=
=?UTF-8?q?=EF=BC=88=E6=AF=94=E5=A6=82s=E5=8C=BA=EF=BC=89=E7=9A=84?=
=?UTF-8?q?=E7=89=8C=E4=BC=9A=E5=8F=97=E5=88=B0mod=E5=BD=B1=E5=93=8D?=
=?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
noname/get/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/noname/get/index.js b/noname/get/index.js
index 847aa96eb..0ce5afca8 100644
--- a/noname/get/index.js
+++ b/noname/get/index.js
@@ -2051,7 +2051,7 @@ export class Get {
return card.split(lib.natureSeparator).sort(lib.sort.nature).join(lib.natureSeparator);
if (Array.isArray(card)) return card.sort(lib.sort.nature).join(lib.natureSeparator);
var nature = card.nature;
- if (get.itemtype(player) == "player" || player !== false) {
+ if (get.itemtype(player) == "player" || (player !== false && get.position(card) == "h")) {
var owner = get.owner(card);
if (owner) {
return game.checkMod(card, owner, nature, "cardnature", owner);
From e2536682b7b8d2fe94c54f73ca27022df3375198 Mon Sep 17 00:00:00 2001
From: mengxinzxz <2223529500@qq.com>
Date: Fri, 26 Apr 2024 23:34:44 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E5=88=98=E7=A3=90=E3=80=90=E6=8A=AB?=
=?UTF-8?q?=E8=8D=86=E3=80=91=E4=BF=AE=E6=94=B9+sp.js=E6=A0=BC=E5=BC=8F?=
=?UTF-8?q?=E5=8C=96=E4=B8=BA=E6=96=B0prettier=E5=87=86=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
character/sp.js | 8777 ++++++++++++-----------------------------------
1 file changed, 2164 insertions(+), 6613 deletions(-)
diff --git a/character/sp.js b/character/sp.js
index 915ad0956..c196f3b4c 100755
--- a/character/sp.js
+++ b/character/sp.js
@@ -5,173 +5,20 @@ game.import("character", function () {
connect: true,
characterSort: {
sp: {
- sp_tianji: [
- "sunhao",
- "liuxie",
- "caoang",
- "hetaihou",
- "sunluyu",
- "ol_wangrong",
- "zuofen",
- "ol_bianfuren",
- "qinghegongzhu",
- "tengfanglan",
- "ruiji",
- "caoxiancaohua",
- "caoyu",
- ],
- sp_sibi: [
- "ol_lukai",
- "yangxiu",
- "guotu",
- "chenlin",
- "chengyu",
- "shixie",
- "fuwan",
- "wangyun",
- "zhugejin",
- "simalang",
- "maliang",
- "buzhi",
- "dongyun",
- "kanze",
- "sunqian",
- "xizhicai",
- "sunshao",
- "duxi",
- "jianggan",
- "ol_dengzhi",
- "ol_yangyi",
- "ol_dongzhao",
- "ol_chendeng",
- "jin_yanghu",
- "wangyan",
- "xiahouxuan",
- "quhuang",
- "zhanghua",
- "wangguan",
- "sunhong",
- "caoxi",
- "tianchou",
- ],
- sp_tianzhu: [
- "liyi",
- "zhangyan",
- "niujin",
- "hejin",
- "hansui",
- "wutugu",
- "yanbaihu",
- "shamoke",
- "zhugedan",
- "huangzu",
- "gaogan",
- "tadun",
- "fanjiangzhangda",
- "ahuinan",
- "dongtuna",
- "ol_wenqin",
- ],
- sp_nvshi: [
- "ol_dingshangwan",
- "lingju",
- "guanyinping",
- "zhangxingcai",
- "mayunlu",
- "dongbai",
- "zhaoxiang",
- "ol_zhangchangpu",
- "daxiaoqiao",
- "jin_guohuai",
- "ol_hujinding",
- ],
- sp_shaowei: [
- "simahui",
- "zhangbao",
- "zhanglu",
- "zhugeguo",
- "xujing",
- "zhangling",
- "huangchengyan",
- "zhangzhi",
- "lushi",
- ],
- sp_huben: [
- "duanjiong",
- "ol_mengda",
- "caohong",
- "xiahouba",
- "zhugeke",
- "zumao",
- "wenpin",
- "litong",
- "mazhong",
- "heqi",
- "quyi",
- "luzhi",
- "yuejin",
- "dingfeng",
- "wuyan",
- "ol_zhuling",
- "tianyu",
- "huojun",
- "zhaoyǎn",
- "dengzhong",
- "ol_furong",
- "macheng",
- "ol_zhangyì",
- "ol_zhujun",
- "maxiumatie",
- "luoxian",
- "ol_huban",
- "haopu",
- "ol_qianzhao",
- ],
+ sp_tianji: ["sunhao", "liuxie", "caoang", "hetaihou", "sunluyu", "ol_wangrong", "zuofen", "ol_bianfuren", "qinghegongzhu", "tengfanglan", "ruiji", "caoxiancaohua", "caoyu"],
+ sp_sibi: ["ol_lukai", "yangxiu", "guotu", "chenlin", "chengyu", "shixie", "fuwan", "wangyun", "zhugejin", "simalang", "maliang", "buzhi", "dongyun", "kanze", "sunqian", "xizhicai", "sunshao", "duxi", "jianggan", "ol_dengzhi", "ol_yangyi", "ol_dongzhao", "ol_chendeng", "jin_yanghu", "wangyan", "xiahouxuan", "quhuang", "zhanghua", "wangguan", "sunhong", "caoxi", "tianchou"],
+ sp_tianzhu: ["liyi", "zhangyan", "niujin", "hejin", "hansui", "wutugu", "yanbaihu", "shamoke", "zhugedan", "huangzu", "gaogan", "tadun", "fanjiangzhangda", "ahuinan", "dongtuna", "ol_wenqin"],
+ sp_nvshi: ["ol_dingshangwan", "lingju", "guanyinping", "zhangxingcai", "mayunlu", "dongbai", "zhaoxiang", "ol_zhangchangpu", "daxiaoqiao", "jin_guohuai", "ol_hujinding"],
+ sp_shaowei: ["simahui", "zhangbao", "zhanglu", "zhugeguo", "xujing", "zhangling", "huangchengyan", "zhangzhi", "lushi"],
+ sp_huben: ["duanjiong", "ol_mengda", "caohong", "xiahouba", "zhugeke", "zumao", "wenpin", "litong", "mazhong", "heqi", "quyi", "luzhi", "yuejin", "dingfeng", "wuyan", "ol_zhuling", "tianyu", "huojun", "zhaoyǎn", "dengzhong", "ol_furong", "macheng", "ol_zhangyì", "ol_zhujun", "maxiumatie", "luoxian", "ol_huban", "haopu", "ol_qianzhao"],
sp_liesi: ["lvboshe", "mizhu", "weizi", "ol_liuba", "zhangshiping"],
- sp_default: [
- "sp_diaochan",
- "sp_zhaoyun",
- "sp_sunshangxiang",
- "sp_caoren",
- "sp_jiangwei",
- "sp_machao",
- "sp_caiwenji",
- "jsp_guanyu",
- "jsp_huangyueying",
- "sp_pangde",
- "sp_jiaxu",
- "yuanshu",
- "sp_zhangliao",
- "sp_ol_zhanghe",
- "sp_menghuo",
- "sp_sunce",
- ],
- sp_qifu: [
- "ol_feiyi",
- "caoying",
- "panshu",
- "caochun",
- "yuantanyuanshang",
- "caoshuang",
- "wolongfengchu",
- "guansuo",
- "baosanniang",
- "fengfangnv",
- "jin_zhouchu",
- ],
+ sp_default: ["sp_diaochan", "sp_zhaoyun", "sp_sunshangxiang", "sp_caoren", "sp_jiangwei", "sp_machao", "sp_caiwenji", "jsp_guanyu", "jsp_huangyueying", "sp_pangde", "sp_jiaxu", "yuanshu", "sp_zhangliao", "sp_ol_zhanghe", "sp_menghuo", "sp_sunce"],
+ sp_qifu: ["ol_feiyi", "caoying", "panshu", "caochun", "yuantanyuanshang", "caoshuang", "wolongfengchu", "guansuo", "baosanniang", "fengfangnv", "jin_zhouchu"],
sp_wanglang: ["ol_wanglang", "ol_puyuan", "ol_zhouqun"],
sp_zhongdan: ["cuiyan", "huangfusong"],
sp_guozhan2: ["sp_dongzhuo", "liqueguosi", "zhangren"],
sp_others: ["hanba", "caiyang"],
- sp_waitforsort: [
- "ol_luyusheng",
- "ol_pengyang",
- "ol_tw_zhangji",
- "ol_liwan",
- "ol_liuyan",
- "liupan",
- "ol_liupi",
- ],
+ sp_waitforsort: ["ol_luyusheng", "ol_pengyang", "ol_tw_zhangji", "ol_liwan", "ol_liuyan", "liupan", "ol_liupi"],
},
},
characterFilter: {
@@ -367,245 +214,159 @@ game.import("character", function () {
characterIntro: {
liupan: "刘磐(生卒年不详),山阳高平人,荆州牧刘表从子。与南阳人黄忠共守长沙攸县。为人骁勇,数次为寇于艾、西安诸县。江东孙策于是分海昏、建昌为左右六县,以东莱太史慈为建昌都尉,治海昏,并督诸将共拒刘磐。于是刘磐绝迹不复为寇。",
guotu: "郭图(?-205年),字公则,颍川(治今河南省禹州市)人。东汉末年袁绍帐下谋士。韩馥统冀州时,郭图与荀谌等人奉袁绍之命,说服韩馥让位。袁绍统一河北后,郭图与审配等人力劝袁绍统率大军攻打曹操。袁绍死后,袁尚继位。郭图与辛评为袁谭效力,挑唆袁谭攻击袁尚。建安十年(205年),郭图和袁谭一同被曹操所杀。",
- tianchou:
- "田畴(169年或170年-214年或216年),字子泰,东汉右北平郡无终人,东汉末年隐士。田畴好文习武。汉初平年间,其受刘虞派遣去长安,呈送指控公孙赞奏章,献帝大悦,封为骑都尉,田畴不受。携诏返回时,刘虞已被公孙所杀,田畴到刘墓祭拜,被公孙所提,不久释放。田畴回故乡后率家族及随从数百人隐居徐无山,致力农桑,数年间增至5000家。制定法条,兴建学校,一时民风良好,乌桓、鲜卑纷纷与其结交。汉建安二十年(207年),曹操北征乌桓,田畴请为向导。上徐无山、出卢龙、过平冈、登白狼堆、至柳城,曹军大胜,封田畴为亭侯,坚辞不受。曹念田功,四次封赏,终不受,乃拜为议郎。建安二十一年(216年),田畴去世。",
+ tianchou: "田畴(169年或170年-214年或216年),字子泰,东汉右北平郡无终人,东汉末年隐士。田畴好文习武。汉初平年间,其受刘虞派遣去长安,呈送指控公孙赞奏章,献帝大悦,封为骑都尉,田畴不受。携诏返回时,刘虞已被公孙所杀,田畴到刘墓祭拜,被公孙所提,不久释放。田畴回故乡后率家族及随从数百人隐居徐无山,致力农桑,数年间增至5000家。制定法条,兴建学校,一时民风良好,乌桓、鲜卑纷纷与其结交。汉建安二十年(207年),曹操北征乌桓,田畴请为向导。上徐无山、出卢龙、过平冈、登白狼堆、至柳城,曹军大胜,封田畴为亭侯,坚辞不受。曹念田功,四次封赏,终不受,乃拜为议郎。建安二十一年(216年),田畴去世。",
liyi: "李异(生卒年不详),三国时期东吴将领。建安末,与谢旌率水陆三千,击破刘备军将领詹晏、陈凤。刘备领兵攻孙权时,李异与陆逊等人屯巫、秭归,为蜀将所破。黄武元年(222年),陆逊破刘备于猇亭,李异追踪蜀军,屯驻南山。清代学者赵一清认为此李异与刘璋部将李异为同一人。",
caoyu: "曹宇(?-278年),字彭祖,沛国谯县(今安徽亳州)人。三国时期魏国宗室,魏武帝曹操与环夫人之子,邓哀王曹冲同母兄弟。太和六年,封为燕王。魏明帝病危,欲以大将军辅政,不果。其子常道乡公曹奂,是魏国末代皇帝,史称魏元帝。晋朝建立后,降封燕公。咸宁四年(278年),曹宇去世。",
- zhangyan:
- "张燕,本姓褚,生卒年不详,常山真定(今河北正定南)人,东汉末年黑山军首领。张燕剽捍,敏捷过人,军中称为“飞燕”。官渡之战时投降曹操,被任命为平北将军,封安国亭侯。死后其子张方袭爵。",
+ zhangyan: "张燕,本姓褚,生卒年不详,常山真定(今河北正定南)人,东汉末年黑山军首领。张燕剽捍,敏捷过人,军中称为“飞燕”。官渡之战时投降曹操,被任命为平北将军,封安国亭侯。死后其子张方袭爵。",
lushi: "卢氏,五斗米教主张衡妻,张鲁母,擅长驻颜之术,常年令自己保持少女的容颜。常拜访刘焉,与其交好。",
- lvboshe:
- "吕伯奢,东汉成皋(今河南荥阳)人,曹操父亲曹嵩的故友。曹操与陈宫在逃离董卓避祸,返回乡里的途中借宿于吕伯奢家,未伤其人,有贼八人欲捉曹操,曹操杀之,明罗贯中在历史小说《三国演义》中将这段历史进行了丑化加工,也成为小说中曹操名言“宁教我负天下人,休教天下人负我”的出处。",
+ lvboshe: "吕伯奢,东汉成皋(今河南荥阳)人,曹操父亲曹嵩的故友。曹操与陈宫在逃离董卓避祸,返回乡里的途中借宿于吕伯奢家,未伤其人,有贼八人欲捉曹操,曹操杀之,明罗贯中在历史小说《三国演义》中将这段历史进行了丑化加工,也成为小说中曹操名言“宁教我负天下人,休教天下人负我”的出处。",
caoxi: "曹羲(?-249年),字昭叔。曹真之子,曹爽之弟。为人有学识,明律法。司马懿曾组织朝议改革九品中正制废除九品而留中正,曹羲认为此举并无区别,最终都是决定于人的人治。曹爽掌权后,受封中领军,掌握禁兵,封安乡侯。曹爽及诸兄弟轻视司马懿,恣意妄为,经常外出狩猎,曹羲屡次劝谏,不被采纳。249年,司马懿发动高平陵政变,被夷三族。",
- duanjiong:
- "段颎(?-179年),字纪明,武威姑臧(今甘肃省武威市)人。东汉名将,西域都护段会宗从曾孙,与皇甫规(字威明)、张奂(字然明)并称“凉州三明”。段颎少时学习骑射,有文武智略,最初被举为孝廉,为宪陵园丞、阳陵令,有治理之才。汉桓帝时入军旅,先破鲜卑,后讨平东郭窦、公孙举起事,以功封列侯。延熹二年(159年)起戍边征战十余年,百战羌人,至永康元年(167年)平定西羌,建宁二年(169年)平定东羌,前后斩东西羌六万余级。累功封新丰县侯。建宁三年(170年),段颎被征入朝,历任侍中、执金吾、河南尹、司隶校尉等职,他党附宦官、捕杀太学生,因而得保富贵,两度出任太尉。光和二年(179年),权宦王甫罪行被揭发,段颎受牵连下狱,其后在狱中饮鸩而死。",
+ duanjiong: "段颎(?-179年),字纪明,武威姑臧(今甘肃省武威市)人。东汉名将,西域都护段会宗从曾孙,与皇甫规(字威明)、张奂(字然明)并称“凉州三明”。段颎少时学习骑射,有文武智略,最初被举为孝廉,为宪陵园丞、阳陵令,有治理之才。汉桓帝时入军旅,先破鲜卑,后讨平东郭窦、公孙举起事,以功封列侯。延熹二年(159年)起戍边征战十余年,百战羌人,至永康元年(167年)平定西羌,建宁二年(169年)平定东羌,前后斩东西羌六万余级。累功封新丰县侯。建宁三年(170年),段颎被征入朝,历任侍中、执金吾、河南尹、司隶校尉等职,他党附宦官、捕杀太学生,因而得保富贵,两度出任太尉。光和二年(179年),权宦王甫罪行被揭发,段颎受牵连下狱,其后在狱中饮鸩而死。",
haopu: "郝普,字子太,义阳(治所在今湖北枣阳东南)人。刘备入川后,郝普为零陵太守。建安二十年(215年),吴将吕蒙进攻荆州三郡,唯有郝普坚守待援。但援兵久久不至,其挚友邓玄之又被吕蒙所骗,郝普也因此上当,投降吴国。湘水划界后,郝普回归刘备。建安二十四年(219年),吕蒙再次袭击荆州,击败关羽,郝普再次投降,最终归顺吴国并官至廷尉。郝普与隐蕃亲善,隐蕃蓄谋叛变事情败露,他受到牵连,因此自杀。在刘备集团的5个荆州郡守中,郝普是唯一一个抵抗过东吴的荆州郡守。",
- ol_zhanghe:
- "字儁乂,河间鄚人。三国时期魏国名将。官渡之战时,本为袁绍部将的张郃投降了曹操,并在曹操帐下多立功勋,于曹魏建立后加封为征西车骑将军。诸葛亮六出祁山之间,张郃多次抵御蜀军的进攻,于公元231年在木门道被诸葛亮设伏射死。后谥曰壮侯。为曹魏“五子良将”之一。",
- zhangshiping:
- "张世平是东汉末期的中山商人,曾与苏双同路,资助刘备组织武装、建立政权。于《三国演义》第一回出场,刘关张桃园三结义时资助刘备良马五十匹,金银五百两,镔铁一千斤。刘备所使用的“双股剑”、关羽所使用的“青龙偃月刀(又名‘冷艳锯’)”、张飞所使用的“丈八点钢矛(又名‘丈八蛇矛’)”皆由这一千斤上好镔铁打造而成。",
- luoxian:
- "罗宪(218年—270年),字令则,荆州襄阳(今湖北襄阳)人。西晋开国将领,巴东太守(郡府在永安白帝城)。于蜀汉灭亡后降魏,成功抵御孙吴的入侵,守住入魏国的要冲永安。后仕晋官至冠军将军、假节,封西鄂县侯。泰始六年(270年)去世,谥烈侯。",
- sunhong:
- "孙弘(?—252年),三国时期吴国大臣,扬州会稽(今浙江省绍兴市)人。官至吴国中书令、少傅。鲁王孙霸与太子孙和各植党羽,孙弘即依附孙霸。孙权病笃,而太子年少,于是以孙弘领少傅。孙权临终,召他与诸葛恪、孙峻等嘱以后事,孙弘与诸葛恪同为顾命大臣。孙权死后,孙弘因素来与诸葛恪不和,怕为所治,故而隐瞒了孙权的死讯,欲矫诏除掉诸葛恪,被孙峻告发。后诸葛恪请孙弘议事,于座中将其诛杀。",
- wangguan:
- "《三国演义》中虚构人物,历史上不曾记载。在114回出场,曾为邓艾手下参谋,献反间计与邓艾,被姜维识破,兵败自投江而死。",
- maxiumatie:
- "马休(?-212年),马铁(?-212年)。两人均为扶风茂陵(今陕西兴平)人,马腾之子,马超之弟。马腾遭韩遂进攻,乃携马休、马铁等入京受职。马休被封为奉车都尉,马铁被封为骑都尉。后在邺城居住。因兄马超反,两人被曹操夷灭。",
- dongtuna:
- "董荼那,小说《三国演义》及其衍生作品中的角色,南蛮王孟获属下大将,第二洞元帅;与阿会喃等人一起担任孟获的援军出征,但是被俘虏,又被诸葛亮释放,再次出战时,被唾骂不知羞耻,面红耳赤的退军。后同阿会喃共同绑架孟获献于蜀军,却被诸葛亮在其二人与孟获的重要性间权衡后出卖了他们,放走了孟获,使其为孟获所杀。",
- zhanghua:
- "张华(232年-300年),字茂先。范阳郡方城县(今河北固安)人。西晋时期政治家、文学家、藏书家,西汉留侯张良的十六世孙。张华出身范阳张氏,自少贫苦,因才学过人而受同乡名臣卢钦、刘放、阮籍等人的赞赏。在曹魏时,他历任太常博士、河南尹丞、佐著作郎、中书郎等职。西晋建立后,拜黄门侍郎,封关内侯,逐渐受到晋武帝的重用。后拜中书令,加散骑常侍,与大将杜预坚决支持武帝伐吴,于战时任度支尚书。吴国灭亡后,以功进封广武县侯。其后遭到排挤,出镇幽州,政绩卓然。之后返朝任太常,终武帝之世未得参与政事。晋惠帝继位后,累官至司空,封壮武郡公,被皇后贾南风委以朝政。张华尽忠辅佐,使天下仍然保持相对安宁。永康元年(300年),♯♯司马伦发动政变,张华惨遭杀害,年六十九。太安二年(303年),获得♯♯,追复官爵。张华工于诗赋,词藻华丽,又雅爱书籍,精于目录学,编纂有中国第一部博物学著作《博物志》;还曾与荀勖等人依照刘向《别录》整理典籍。《宣和书谱》载有其草书《得书帖》及行书《闻时帖》。《隋书·经籍志》有《张华集》十卷,今已佚。明人张溥辑有《张茂先集》。",
- quhuang:
- "屈晃(?—251),祖籍汝南(今河南省汝南县),汉末避乱南下,三国吴时居章安(今属椒江区)。初为郡吏,在职清廉,颇有政声。赤乌初年,擢为尚书仆射。",
+ ol_zhanghe: "字儁乂,河间鄚人。三国时期魏国名将。官渡之战时,本为袁绍部将的张郃投降了曹操,并在曹操帐下多立功勋,于曹魏建立后加封为征西车骑将军。诸葛亮六出祁山之间,张郃多次抵御蜀军的进攻,于公元231年在木门道被诸葛亮设伏射死。后谥曰壮侯。为曹魏“五子良将”之一。",
+ zhangshiping: "张世平是东汉末期的中山商人,曾与苏双同路,资助刘备组织武装、建立政权。于《三国演义》第一回出场,刘关张桃园三结义时资助刘备良马五十匹,金银五百两,镔铁一千斤。刘备所使用的“双股剑”、关羽所使用的“青龙偃月刀(又名‘冷艳锯’)”、张飞所使用的“丈八点钢矛(又名‘丈八蛇矛’)”皆由这一千斤上好镔铁打造而成。",
+ luoxian: "罗宪(218年—270年),字令则,荆州襄阳(今湖北襄阳)人。西晋开国将领,巴东太守(郡府在永安白帝城)。于蜀汉灭亡后降魏,成功抵御孙吴的入侵,守住入魏国的要冲永安。后仕晋官至冠军将军、假节,封西鄂县侯。泰始六年(270年)去世,谥烈侯。",
+ sunhong: "孙弘(?—252年),三国时期吴国大臣,扬州会稽(今浙江省绍兴市)人。官至吴国中书令、少傅。鲁王孙霸与太子孙和各植党羽,孙弘即依附孙霸。孙权病笃,而太子年少,于是以孙弘领少傅。孙权临终,召他与诸葛恪、孙峻等嘱以后事,孙弘与诸葛恪同为顾命大臣。孙权死后,孙弘因素来与诸葛恪不和,怕为所治,故而隐瞒了孙权的死讯,欲矫诏除掉诸葛恪,被孙峻告发。后诸葛恪请孙弘议事,于座中将其诛杀。",
+ wangguan: "《三国演义》中虚构人物,历史上不曾记载。在114回出场,曾为邓艾手下参谋,献反间计与邓艾,被姜维识破,兵败自投江而死。",
+ maxiumatie: "马休(?-212年),马铁(?-212年)。两人均为扶风茂陵(今陕西兴平)人,马腾之子,马超之弟。马腾遭韩遂进攻,乃携马休、马铁等入京受职。马休被封为奉车都尉,马铁被封为骑都尉。后在邺城居住。因兄马超反,两人被曹操夷灭。",
+ dongtuna: "董荼那,小说《三国演义》及其衍生作品中的角色,南蛮王孟获属下大将,第二洞元帅;与阿会喃等人一起担任孟获的援军出征,但是被俘虏,又被诸葛亮释放,再次出战时,被唾骂不知羞耻,面红耳赤的退军。后同阿会喃共同绑架孟获献于蜀军,却被诸葛亮在其二人与孟获的重要性间权衡后出卖了他们,放走了孟获,使其为孟获所杀。",
+ zhanghua: "张华(232年-300年),字茂先。范阳郡方城县(今河北固安)人。西晋时期政治家、文学家、藏书家,西汉留侯张良的十六世孙。张华出身范阳张氏,自少贫苦,因才学过人而受同乡名臣卢钦、刘放、阮籍等人的赞赏。在曹魏时,他历任太常博士、河南尹丞、佐著作郎、中书郎等职。西晋建立后,拜黄门侍郎,封关内侯,逐渐受到晋武帝的重用。后拜中书令,加散骑常侍,与大将杜预坚决支持武帝伐吴,于战时任度支尚书。吴国灭亡后,以功进封广武县侯。其后遭到排挤,出镇幽州,政绩卓然。之后返朝任太常,终武帝之世未得参与政事。晋惠帝继位后,累官至司空,封壮武郡公,被皇后贾南风委以朝政。张华尽忠辅佐,使天下仍然保持相对安宁。永康元年(300年),♯♯司马伦发动政变,张华惨遭杀害,年六十九。太安二年(303年),获得♯♯,追复官爵。张华工于诗赋,词藻华丽,又雅爱书籍,精于目录学,编纂有中国第一部博物学著作《博物志》;还曾与荀勖等人依照刘向《别录》整理典籍。《宣和书谱》载有其草书《得书帖》及行书《闻时帖》。《隋书·经籍志》有《张华集》十卷,今已佚。明人张溥辑有《张茂先集》。",
+ quhuang: "屈晃(?—251),祖籍汝南(今河南省汝南县),汉末避乱南下,三国吴时居章安(今属椒江区)。初为郡吏,在职清廉,颇有政声。赤乌初年,擢为尚书仆射。",
macheng: "马承,蜀汉骠骑将军马超之子。仕蜀汉,马超死后继承其斄乡侯爵位。",
- zhangzhi:
- "张芝(?—192年),字伯英,敦煌郡渊泉县(今甘肃省瓜州县)人。东汉书法家、“草书之祖”,大司农张奂的儿子。出身名门,拒绝朝廷征召,潜心研习书法。擅长草书中的章草,将古代当时字字区别、笔画分离的草法,改为上下牵连富于变化的新写法,富有独创性,在当时影响很大。李志敏评价:“张芝创造了草书问世以来的第一座高峰,精熟神妙,兼善章今”。 没有真迹传世,仅存《八月帖》等刻帖。汉献帝初平三年,去世于家中,著有《笔心论》,与钟繇、王羲之和王献之并称“书中四贤”。",
- ahuinan:
- "阿会喃,小说《三国演义》及其衍生作品中的角色,南蛮王孟获属下大将,第三洞元帅;与董荼那等人一起担任孟获的援军出征,但是被俘虏,又被诸葛亮释放,再次出战时,被唾骂不知羞耻,面红耳赤的退军。后同董荼那共同绑架孟获献于蜀军,却被诸葛亮在其二人与孟获的重要性间权衡后出卖了他们,放走了孟获,使其为孟获所杀。",
- xiahouxuan:
- "夏侯玄(209年~254年),字泰初(《三国志》等作太初),沛国谯县(今安徽省亳州市)人。三国时期曹魏大臣、思想家、文学家,征南大将军夏侯尚之子,大将军曹爽的表弟。夏侯玄少年有名望,仪表出众,时人称为“朗朗如日月之入怀”。魏文帝黄初六年(225年),袭封昌陵乡侯。魏明帝时,历任散骑黄门侍郎、羽林监。少帝曹芳继位后,拜散骑常侍、中护军,保卫皇宫。后任征西将军,任内与曹爽策划骆谷之役,大失人心。高平陵政变后,被夺去兵权,改任大鸿胪、太常卿。嘉平六年(254年),中书令李丰与外戚张缉密谋杀死大将军司马师,改以夏侯玄执政。事泄被杀,夷灭三族,夏侯玄死时年仅四十六岁。著有文集三卷,如今已佚。政治上,提出了“审官择人”、“除重官”、“改服制”等制度,被太傅司马懿评价“皆大善”。博学多识,才华出众,精通玄学,成为“四聪”之一,与何晏等人开创了魏晋玄学的先河,是早期的玄学领袖人物。",
- dengzhong:
- "邓忠(不详-264年),三国时期曹魏名将邓艾之子。景元五年(264年),钟会谋反事败,士兵哗变,钟会被杀,邓艾部将想追还邓艾父子,但卫瓘却派田续追邓艾,于绵竹西相遇,将邓艾和邓忠等人杀死。直至泰始九年(273年)才恢复名节。",
- wangyan:
- "王衍(256年~311年),字夷甫,琅邪郡临沂县(今山东省临沂市)人。西晋末年重臣,玄学清谈领袖,曹魏幽州刺史王雄之孙、平北将军王乂之子、司徒王戎堂弟。王衍出身琅琊王氏。外表清明俊秀,风姿安详文雅,笃好老庄学说,颇有时名。步入仕途后,历任黄门侍郎、中领军、尚书令、尚书仆射等职。光熙元年(307年),升任司空。次年,又任司徒。王衍位高权重,却不思为国,为保全自己,还让弟弟王澄、族弟王敦分任荆州、青州刺史,遭时人鄙夷。王弥进攻洛阳时,王衍率军抵抗。其后转任太尉兼尚书令,又兼领太傅军司。永嘉五年(311年),东海王司马越去世,王衍奉其灵柩返回东海,途中为羯人石勒所俘获。王衍在与石勒交谈时,仍推脱责任,并劝其称帝,石勒大怒,将其与西晋旧臣一同活埋,时年五十六岁。王衍工书法,尤擅行书,《宣和书谱》有其作品《尊夫人帖》。",
+ zhangzhi: "张芝(?—192年),字伯英,敦煌郡渊泉县(今甘肃省瓜州县)人。东汉书法家、“草书之祖”,大司农张奂的儿子。出身名门,拒绝朝廷征召,潜心研习书法。擅长草书中的章草,将古代当时字字区别、笔画分离的草法,改为上下牵连富于变化的新写法,富有独创性,在当时影响很大。李志敏评价:“张芝创造了草书问世以来的第一座高峰,精熟神妙,兼善章今”。 没有真迹传世,仅存《八月帖》等刻帖。汉献帝初平三年,去世于家中,著有《笔心论》,与钟繇、王羲之和王献之并称“书中四贤”。",
+ ahuinan: "阿会喃,小说《三国演义》及其衍生作品中的角色,南蛮王孟获属下大将,第三洞元帅;与董荼那等人一起担任孟获的援军出征,但是被俘虏,又被诸葛亮释放,再次出战时,被唾骂不知羞耻,面红耳赤的退军。后同董荼那共同绑架孟获献于蜀军,却被诸葛亮在其二人与孟获的重要性间权衡后出卖了他们,放走了孟获,使其为孟获所杀。",
+ xiahouxuan: "夏侯玄(209年~254年),字泰初(《三国志》等作太初),沛国谯县(今安徽省亳州市)人。三国时期曹魏大臣、思想家、文学家,征南大将军夏侯尚之子,大将军曹爽的表弟。夏侯玄少年有名望,仪表出众,时人称为“朗朗如日月之入怀”。魏文帝黄初六年(225年),袭封昌陵乡侯。魏明帝时,历任散骑黄门侍郎、羽林监。少帝曹芳继位后,拜散骑常侍、中护军,保卫皇宫。后任征西将军,任内与曹爽策划骆谷之役,大失人心。高平陵政变后,被夺去兵权,改任大鸿胪、太常卿。嘉平六年(254年),中书令李丰与外戚张缉密谋杀死大将军司马师,改以夏侯玄执政。事泄被杀,夷灭三族,夏侯玄死时年仅四十六岁。著有文集三卷,如今已佚。政治上,提出了“审官择人”、“除重官”、“改服制”等制度,被太傅司马懿评价“皆大善”。博学多识,才华出众,精通玄学,成为“四聪”之一,与何晏等人开创了魏晋玄学的先河,是早期的玄学领袖人物。",
+ dengzhong: "邓忠(不详-264年),三国时期曹魏名将邓艾之子。景元五年(264年),钟会谋反事败,士兵哗变,钟会被杀,邓艾部将想追还邓艾父子,但卫瓘却派田续追邓艾,于绵竹西相遇,将邓艾和邓忠等人杀死。直至泰始九年(273年)才恢复名节。",
+ wangyan: "王衍(256年~311年),字夷甫,琅邪郡临沂县(今山东省临沂市)人。西晋末年重臣,玄学清谈领袖,曹魏幽州刺史王雄之孙、平北将军王乂之子、司徒王戎堂弟。王衍出身琅琊王氏。外表清明俊秀,风姿安详文雅,笃好老庄学说,颇有时名。步入仕途后,历任黄门侍郎、中领军、尚书令、尚书仆射等职。光熙元年(307年),升任司空。次年,又任司徒。王衍位高权重,却不思为国,为保全自己,还让弟弟王澄、族弟王敦分任荆州、青州刺史,遭时人鄙夷。王弥进攻洛阳时,王衍率军抵抗。其后转任太尉兼尚书令,又兼领太傅军司。永嘉五年(311年),东海王司马越去世,王衍奉其灵柩返回东海,途中为羯人石勒所俘获。王衍在与石勒交谈时,仍推脱责任,并劝其称帝,石勒大怒,将其与西晋旧臣一同活埋,时年五十六岁。王衍工书法,尤擅行书,《宣和书谱》有其作品《尊夫人帖》。",
caoxiancaohua: "请分别查看「曹宪」和「曹华」的武将介绍。",
- zhaoyǎn:
- "赵俨(171~245年),字伯然,颍川阳翟(今河南禹州市)。东汉末年颍川“四大名士”之一,三国时期魏国名臣。熟读经史,精明强干。建安二年,投靠大将军曹操之后,起家朗陵县令,历任司空府掾、司空主薄、都督护军、扶风太守等职。魏文帝曹丕继位后,历任魏国侍中、驸马都尉、河东太守、典农中郎将、度支尚书,封宜土亭侯。魏明帝曹睿时期,历任大司农、骠骑将军、大司空等职。正始六年,去世,时年七十五,谥号为穆。",
+ zhaoyǎn: "赵俨(171~245年),字伯然,颍川阳翟(今河南禹州市)。东汉末年颍川“四大名士”之一,三国时期魏国名臣。熟读经史,精明强干。建安二年,投靠大将军曹操之后,起家朗陵县令,历任司空府掾、司空主薄、都督护军、扶风太守等职。魏文帝曹丕继位后,历任魏国侍中、驸马都尉、河东太守、典农中郎将、度支尚书,封宜土亭侯。魏明帝曹睿时期,历任大司农、骠骑将军、大司空等职。正始六年,去世,时年七十五,谥号为穆。",
ruiji: "芮姬,芮玄之女,太子孙登妃,黄武五年卒。",
weizi: "卫兹(?-190年),字子许,(《三国演义》中其名为卫弘,当为误记),陈留襄邑(今河南睢县)人。曾举孝廉,先后被车骑将军何苗、司徒杨赐等召辟。中平六年(189年)十二月,曹操在陈留己吾募兵,而卫兹以家财资助曹操,使曹操顺利募得五千士兵。此后,卫兹与曹操共同讨伐董卓。初平元年(190年),卫兹在跟随曹操讨伐董卓途中,于荥阳汴水遭遇董卓军徐荣,力战终日,失利身亡。",
- tengfanglan:
- "滕芳兰,生卒年不详,北海剧县(今山东省寿光市)人,太常滕胤的族女,滕牧的女儿,吴末帝孙皓的皇后。永安元年(258年),孙皓为乌程侯时被聘为妃。元兴元年(264年),孙皓登基后被立为皇后。孙吴灭亡后,随孙皓迁居洛阳。",
- qinghegongzhu:
- "清河长公主,沛国谯县人,曹操长女(按其与曹操长子曹昂同出于刘夫人,而刘夫人又早死,故其年龄应长于曹丕等其他曹操诸子女,又按长公主亦有年最长之意,故应为曹操之长女)。母刘夫人,得到曹操喜爱。清河公主后来下嫁夏侯楙。曹操初欲嫁丁仪,曹丕劝其嫁与夏侯楙。后与小叔子设计欲谋害丈夫,未果。",
- fanjiangzhangda:
- "范强,在明朝小说《三国演义》里叫做范疆。二人均为张飞手下部将。蜀汉章武元年,刘备伐吴,张飞率军从阆中前往江州,出发前,范强和张达杀死张飞,带着张飞的首级投奔了东吴。",
+ tengfanglan: "滕芳兰,生卒年不详,北海剧县(今山东省寿光市)人,太常滕胤的族女,滕牧的女儿,吴末帝孙皓的皇后。永安元年(258年),孙皓为乌程侯时被聘为妃。元兴元年(264年),孙皓登基后被立为皇后。孙吴灭亡后,随孙皓迁居洛阳。",
+ qinghegongzhu: "清河长公主,沛国谯县人,曹操长女(按其与曹操长子曹昂同出于刘夫人,而刘夫人又早死,故其年龄应长于曹丕等其他曹操诸子女,又按长公主亦有年最长之意,故应为曹操之长女)。母刘夫人,得到曹操喜爱。清河公主后来下嫁夏侯楙。曹操初欲嫁丁仪,曹丕劝其嫁与夏侯楙。后与小叔子设计欲谋害丈夫,未果。",
+ fanjiangzhangda: "范强,在明朝小说《三国演义》里叫做范疆。二人均为张飞手下部将。蜀汉章武元年,刘备伐吴,张飞率军从阆中前往江州,出发前,范强和张达杀死张飞,带着张飞的首级投奔了东吴。",
tianyu: "田豫(171年~252年),字国让,渔阳雍奴(今天津市武清区)人。三国时期曹魏将领。初从刘备,因母亲年老回乡,后跟随公孙瓒,公孙瓒败亡,劝说鲜于辅加入曹操。曹操攻略河北时,田豫正式得到曹操任用,历任颖阴、郎陵令、弋阳太守等。后来田豫常年镇守曹魏北疆,从征代郡乌桓、斩骨进、破轲比能,多有功勋;也曾参与对孙吴的作战,在成山斩杀周贺,于新城击败孙权。官至太中大夫,封长乐亭侯。有一子田彭祖。",
wuyan: "吴国及西晋初年将领。初任通江县吏,后得到大司马陆抗的提拔重用,逐渐升至建平太守。",
- fengfangnv:
- "冯方之女,司隶人,袁术妻妾。在史书中被记载为天姿国色的美人。钱大昭在《三国志辨疑》中认为冯方当为冯芳误字,冯方女实为是西园八校尉之一的冯芳的女儿。然而,在曹丕《典论》、《九州春秋》等书籍都有提及她,皆作冯方女字样,并无一书写作冯芳女或是明提是冯芳之女。最关键的一点是,冯芳是荆州西陵县人,她女儿不可能是司隶籍,冯芳也没担任过任何与司隶有关的官职。同时期名字为“○女”的并不少见,如施绩女儿施淑女,曹植女儿曹行女,夏侯令女等。",
+ fengfangnv: "冯方之女,司隶人,袁术妻妾。在史书中被记载为天姿国色的美人。钱大昭在《三国志辨疑》中认为冯方当为冯芳误字,冯方女实为是西园八校尉之一的冯芳的女儿。然而,在曹丕《典论》、《九州春秋》等书籍都有提及她,皆作冯方女字样,并无一书写作冯芳女或是明提是冯芳之女。最关键的一点是,冯芳是荆州西陵县人,她女儿不可能是司隶籍,冯芳也没担任过任何与司隶有关的官职。同时期名字为“○女”的并不少见,如施绩女儿施淑女,曹植女儿曹行女,夏侯令女等。",
zuofen: "左芬(约253年-300年4月23日),出土墓志作左棻,字兰芝,齐国临淄(今山东临淄)人,西晋诗人。少好学,善属文。为晋武帝贵人。今存诗、赋、颂、赞、诔等20余篇,大都为应诏而作,《离思赋》最著名。原有集,已失传。",
duxi: "杜袭(生卒年不详),字子绪,颍川郡定陵县(今河南省襄城县)人。三国时期魏国重臣,东汉末年颍川“四大名士”之一,济阴太守杜根的孙子。建安初年,投奔司空曹操,历任西鄂县令、议郎、丞相军咨祭酒、魏王侍中、丞相长史、驸马都尉。魏文帝时期,出任督军粮御史、尚书,累封武平亭侯。魏明帝时期,担任大将军曹真和司马懿的军师,抵御蜀国进攻,拜太中大夫,受封平阳乡侯。卒于任上,获赠少府,谥号为定。",
gaogan: "高干(?~206年),字元才,陈留郡圉县(今河南杞县圉镇)人。东汉末年并州割据将领,蜀郡太守高躬之子、大将军袁绍外甥。出身陈留高氏,才志弘邈,文武秀出。早年联合荀谌游说韩馥让出冀州牧。袁绍平定河北后,以为并州牧。官渡之战时,在西线配合作战。因曹操早有准备,没有实质进展。袁绍死后,袁谭、袁尚与曹操大战于黎阳郡时,联合郭援攻打平阳郡,为马腾为首关中将领所败,郭援为庞德所斩。袁尚败走中山郡后,出降于曹操,仍为并州刺史。建安十年,兴兵反曹,固守壶关,成功抵挡乐进进攻。得知曹操亲征后,留下别将守城,亲往匈奴呼厨泉求救,没有成功。引兵攻略河东郡,屡为钟繇、张既所败。建安十一年,投奔荆州刘表。途经上洛时,为上洛都尉捕斩之。",
- huangchengyan:
- "黄承彦,生卒年不详,汉末三国时期沔阳名士,诸葛亮岳父,黄月英之父。南郡大士蔡讽的女婿,与襄阳名士上层社会圈子:庞统(凤雏)、庞德公、司马徽、徐庶等人交好。《襄阳记》:黄承彦者,高爽开列,为沔阳名士,谓诸葛孔明曰:“闻君择妇,身有丑女,黄头黑色,而才堪配。”孔明许,即载送之。时人以为笑乐,乡里为之谚曰:“莫作孔明择妇,正得阿承丑女。”",
+ huangchengyan: "黄承彦,生卒年不详,汉末三国时期沔阳名士,诸葛亮岳父,黄月英之父。南郡大士蔡讽的女婿,与襄阳名士上层社会圈子:庞统(凤雏)、庞德公、司马徽、徐庶等人交好。《襄阳记》:黄承彦者,高爽开列,为沔阳名士,谓诸葛孔明曰:“闻君择妇,身有丑女,黄头黑色,而才堪配。”孔明许,即载送之。时人以为笑乐,乡里为之谚曰:“莫作孔明择妇,正得阿承丑女。”",
panshu: "潘淑(?-252年),会稽句章(今浙江省宁波市)人,是吴大帝孙权的皇后,吴少帝孙亮的母亲。和孙权是中国历代帝后中年龄差距较大的一对。潘淑少时与姐姐俱没入织室,容媚有宠,拜为夫人,生有一子孙亮。赤乌十三年(250年),孙权立孙亮为皇太子,翌年(251年)立潘淑为皇后。神凤元年(252年)暴崩,合葬蒋陵。世称潘淑为江东绝色,有神女之称。",
zongyu: "宗预(?-264年),字德艳 ,荆州南阳郡安众县(今河南省南阳市)人。三国时期蜀汉官员、将领。曾随张飞入蜀助平益州,又受辟为丞相诸葛亮手下主簿,升任参军、右中郎将。诸葛亮逝世后,宗预受命出使孙吴,得到孙权的赞赏。迁后将军,出督永安,又升任征西大将军,并受封关内侯。公元258年(景耀元年),因病回成都,受任镇军大将军。蜀汉灭亡后,宗预随后主刘禅徙往洛阳,在中途病逝。宗预为人坦率耿直,多次出使孙吴并深得孙权的敬重,为吴、汉两国同盟的巩固作出了一定的贡献。",
mengda: "孟达(?-228),字子度,本字子敬,因刘备的叔父名叫刘子敬,为避讳而改字。扶风郡郿人,三国时期人物。本为刘璋属下,后降刘备。关羽围樊城、襄阳时因不发兵救关羽而触怒刘备,于是投奔曹魏。此后,劝降刘封,未果。在魏官至散骑常侍、建武将军,封平阳亭侯。此后又欲反曹魏而归蜀汉,事败而死。",
wolongfengchu: "沙比武将,懒得复制粘贴,自己去看「诸葛亮」和「庞统」的介绍吧。",
- caoshuang:
- "曹爽(?-249年2月9日),字昭伯,沛国谯县(今安徽亳州市)人。三国时期魏国权臣,大司马曹真长子。曹爽体态肥胖,凭借宗室身份,出入宫廷,交好太子曹叡。魏明帝即位,起家员外散骑侍郎,累迁城门校尉、散骑常侍,转武卫将军。太和五年(231年),袭封邵陵侯。景初三年(239年),魏明帝曹叡病危,拜大将军、假黄钺,与司马懿并为托孤大臣。少帝曹芳即位,加侍中,改封武安侯。势倾四海,声震天下。任用私人,专权乱政,侵吞公产。伐蜀失败,虚耗国力。起居逾制,软禁郭太后。正始十年,太傅司马懿发动高平陵政变,掌握魏国大权。曹爽失去大将军职务,以谋反之罪处死,夷灭三族。",
- zhangling:
- "张道陵(34年2月22日—156年),字辅汉,原名陵,道教正一道实际创立者,汉朝东汉时期丰邑(今江苏徐州丰县)人。太上老君降临蜀地,“授以三天正法,命为天师”,张道陵整合当时的:黄老派、方仙道、文始派等先秦修道团体,创立道教称正一盟威之道。后世尊称为“老祖天师”、“正一真人”、“三天扶教大法师”、高明上帝、张天师。著作《老子想尔注》,弟子有3000多人,设立24治,奠基天师道。张道陵、葛玄、许逊、萨守坚合称四大天师。张道陵创建道教的背景:当时在巴蜀一带,原有巴人信奉原始巫教,大规模的淫祀而害民。而这些祀奉鬼妖(学名为:妖邪)的法教巫师聚众敛财,无恶不作。张天师携王长、赵升二位弟子和黄帝九鼎丹经,来到北邙山修行,平定了那些祸害百姓的巫妖之教。川渝一带流传的张天师以太上老君剑印符箓大破鬼兵的故事就是以此为原型的。",
- caiyang:
- "蔡阳(?-201年),又作蔡扬,东汉丞相曹操部下武将,汝南太守。于建安六年(201)奉曹操之命攻击与刘备联合的汝南贼龚都等人,兵败被刘备所杀。明代小说《三国演义》改编为“云长擂鼓斩蔡阳”。",
+ caoshuang: "曹爽(?-249年2月9日),字昭伯,沛国谯县(今安徽亳州市)人。三国时期魏国权臣,大司马曹真长子。曹爽体态肥胖,凭借宗室身份,出入宫廷,交好太子曹叡。魏明帝即位,起家员外散骑侍郎,累迁城门校尉、散骑常侍,转武卫将军。太和五年(231年),袭封邵陵侯。景初三年(239年),魏明帝曹叡病危,拜大将军、假黄钺,与司马懿并为托孤大臣。少帝曹芳即位,加侍中,改封武安侯。势倾四海,声震天下。任用私人,专权乱政,侵吞公产。伐蜀失败,虚耗国力。起居逾制,软禁郭太后。正始十年,太傅司马懿发动高平陵政变,掌握魏国大权。曹爽失去大将军职务,以谋反之罪处死,夷灭三族。",
+ zhangling: "张道陵(34年2月22日—156年),字辅汉,原名陵,道教正一道实际创立者,汉朝东汉时期丰邑(今江苏徐州丰县)人。太上老君降临蜀地,“授以三天正法,命为天师”,张道陵整合当时的:黄老派、方仙道、文始派等先秦修道团体,创立道教称正一盟威之道。后世尊称为“老祖天师”、“正一真人”、“三天扶教大法师”、高明上帝、张天师。著作《老子想尔注》,弟子有3000多人,设立24治,奠基天师道。张道陵、葛玄、许逊、萨守坚合称四大天师。张道陵创建道教的背景:当时在巴蜀一带,原有巴人信奉原始巫教,大规模的淫祀而害民。而这些祀奉鬼妖(学名为:妖邪)的法教巫师聚众敛财,无恶不作。张天师携王长、赵升二位弟子和黄帝九鼎丹经,来到北邙山修行,平定了那些祸害百姓的巫妖之教。川渝一带流传的张天师以太上老君剑印符箓大破鬼兵的故事就是以此为原型的。",
+ caiyang: "蔡阳(?-201年),又作蔡扬,东汉丞相曹操部下武将,汝南太守。于建安六年(201)奉曹操之命攻击与刘备联合的汝南贼龚都等人,兵败被刘备所杀。明代小说《三国演义》改编为“云长擂鼓斩蔡阳”。",
pujing: "湖北省当阳境内有一座山,名叫玉泉山。东汉建安末年,山上住着一个老和尚,法名普净,普净原来是沂水关镇国寺方丈,后因云游天下,来到此处,风这地方山明水秀,就于山中结草为庵,每天坐禅参道,身边只有一个小和尚,外出化一些斋饭,供养师父。在《三国演义》中,当关羽通过汜水关时,正是由于普净提醒,关羽才揭穿了卞喜的阴谋,并杀死了卞喜。关羽死后,其怨魂亦在普净的指点下醒悟,放下了心中的仇恨,专心致力于造福一方百姓。",
huban: "为《三国演义》所杜撰的人物,正史无记载,荥阳太守王植麾下从事、桓帝时议郎胡华之子。关羽过五关斩六将时其中一关就是王植所镇守,胡班奉命放火夜袭关公,因敬服公之气概,并得其父托公所带家书,班看毕,叹曰:“险些误杀忠良!”故将之放走。胡班到荆州来投降关公,公念其旧日相救之情,甚爱之;令随费诗入川,见汉中王受爵。费诗辞别关公,带了胡班,自回蜀中去了。",
- chunyuqiong:
- "淳于琼(?-200年),字仲简,颍川(治今河南禹州)人。东汉时期官吏,于汉灵帝中平五年(188)被任命为西园八校尉之一的右校尉,与蹇硕、袁绍、鲍鸿、曹操、赵融、冯芳、夏牟同列。为袁绍大将,与张郃、高览等人齐名。在官渡之战时镇守乌巢,遭到曹操的偷袭而惨败,自己也被曹操处斩。",
- lvkuanglvxiang:
- "吕旷(生卒年不详),与吕翔同是袁绍属下,袁绍去世后,为袁尚守东平,后来投降曹操,并被封为列侯。在《三国演义》中,在曹操准备往南准备攻击前,两人跟著大将曹仁和将军李典准备要攻击刘备。但吕旷被赵云刺下马身亡,而吕翔也死于张飞矛下,可以算是出师未捷身先死",
- caobuxing:
- "曹不兴,亦名弗兴,三国时著名画家。孙吴吴兴(今浙江湖州)人,生卒年不详。他在黄武年间(222—229年)享有很大的声誉。被称为“佛画之祖”。与东晋顾恺之、南朝宋陆探微、南朝梁张僧繇并称“六朝四大家”。又与赵达的算术、严武的弈棋、皇象的草书等号称“吴中八绝”。曹不兴善画龙、虎、马及人物,有“落墨为蝇”等传奇故事,其佛画成就对后世影响很大,相传其所画龙头令谢赫叹服不已。画迹今已不存,据《贞观公私画史》载,作品有《青溪龙》、《赤盘龙》、《南海监牧进十种马图》、《夷事夷兽样》、《桃源图》等,惜早已散佚。但之后的著名画家卫协直接师承其法。",
+ chunyuqiong: "淳于琼(?-200年),字仲简,颍川(治今河南禹州)人。东汉时期官吏,于汉灵帝中平五年(188)被任命为西园八校尉之一的右校尉,与蹇硕、袁绍、鲍鸿、曹操、赵融、冯芳、夏牟同列。为袁绍大将,与张郃、高览等人齐名。在官渡之战时镇守乌巢,遭到曹操的偷袭而惨败,自己也被曹操处斩。",
+ lvkuanglvxiang: "吕旷(生卒年不详),与吕翔同是袁绍属下,袁绍去世后,为袁尚守东平,后来投降曹操,并被封为列侯。在《三国演义》中,在曹操准备往南准备攻击前,两人跟著大将曹仁和将军李典准备要攻击刘备。但吕旷被赵云刺下马身亡,而吕翔也死于张飞矛下,可以算是出师未捷身先死",
+ caobuxing: "曹不兴,亦名弗兴,三国时著名画家。孙吴吴兴(今浙江湖州)人,生卒年不详。他在黄武年间(222—229年)享有很大的声誉。被称为“佛画之祖”。与东晋顾恺之、南朝宋陆探微、南朝梁张僧繇并称“六朝四大家”。又与赵达的算术、严武的弈棋、皇象的草书等号称“吴中八绝”。曹不兴善画龙、虎、马及人物,有“落墨为蝇”等传奇故事,其佛画成就对后世影响很大,相传其所画龙头令谢赫叹服不已。画迹今已不存,据《贞观公私画史》载,作品有《青溪龙》、《赤盘龙》、《南海监牧进十种马图》、《夷事夷兽样》、《桃源图》等,惜早已散佚。但之后的著名画家卫协直接师承其法。",
gaolan: "高览,生卒年不详,一名高奂,本属袁绍部将,后官渡之战淳于琼被曹操击破,与张郃一同投降曹操,被封为偏将军,东莱侯。《三国演义》里,曾与许褚、徐晃大战不分胜负。201年刘备败走荆州时,高览奉命追杀,三合斩刘辟,而后被冲阵而来的赵云刺死。",
- xunchen:
- "荀谌,字友若,荀彧之兄(一说荀彧之弟),荀绲之子,颍川人。曾任军阀袁绍的幕僚。帮助袁绍游说韩馥,夺取了冀州。",
- sunshao:
- "孙邵(163年-225年),字长绪,青州北海国人(今山东潍坊市昌乐县西)。原为北海相孔融的功曹,被孔融称赞为可任朝廷要职的人才,后随刘繇到达江东,继而辅佐孙权。孙权称吴王后,孙邵成为吴国首任丞相,数年后病逝。由于孙邵和当时吴国史官的关系并不是很好,因此在史书中并没有详细的记载。",
- yuantanyuanshang:
- "袁谭、袁尚分别是袁绍的长子和第三子。袁绍坐拥青州、冀州、幽州、并州,本是北方最强诸侯,却于官渡大败,惭恨而终。虽然袁绍生前偏爱小儿子袁尚,却并未在继承人上有明确表态,这也导致本应以嫡长子身份继承的袁谭因郭图、审配伪立遗令未能如愿。曹操击败袁绍后,进而渡过黄河追击袁家残余势力,袁谭告急,但袁尚仅给他少量兵力。曹操得郭嘉之计退兵坐观其变,恰使两人此前的种种矛盾彻底爆发,袁谭不敌便引狼入室,派辛毗作为使者向曹操求援,让袁尚不得不北逃投奔乌桓。但袁谭也在之后背叛曹操兵败被杀。没多久,乌桓也被平定,袁熙、袁尚二人投奔公孙康后被斩首送还曹操。",
+ xunchen: "荀谌,字友若,荀彧之兄(一说荀彧之弟),荀绲之子,颍川人。曾任军阀袁绍的幕僚。帮助袁绍游说韩馥,夺取了冀州。",
+ sunshao: "孙邵(163年-225年),字长绪,青州北海国人(今山东潍坊市昌乐县西)。原为北海相孔融的功曹,被孔融称赞为可任朝廷要职的人才,后随刘繇到达江东,继而辅佐孙权。孙权称吴王后,孙邵成为吴国首任丞相,数年后病逝。由于孙邵和当时吴国史官的关系并不是很好,因此在史书中并没有详细的记载。",
+ yuantanyuanshang: "袁谭、袁尚分别是袁绍的长子和第三子。袁绍坐拥青州、冀州、幽州、并州,本是北方最强诸侯,却于官渡大败,惭恨而终。虽然袁绍生前偏爱小儿子袁尚,却并未在继承人上有明确表态,这也导致本应以嫡长子身份继承的袁谭因郭图、审配伪立遗令未能如愿。曹操击败袁绍后,进而渡过黄河追击袁家残余势力,袁谭告急,但袁尚仅给他少量兵力。曹操得郭嘉之计退兵坐观其变,恰使两人此前的种种矛盾彻底爆发,袁谭不敌便引狼入室,派辛毗作为使者向曹操求援,让袁尚不得不北逃投奔乌桓。但袁谭也在之后背叛曹操兵败被杀。没多久,乌桓也被平定,袁熙、袁尚二人投奔公孙康后被斩首送还曹操。",
xujing: "许靖(?—222年),字文休。汝南郡平舆县(今河南省平舆县)人。汉末至三国蜀汉时期重臣、名士、评论家。许靖因与从弟许邵俱以品评人物而闻名于世。后被刘翊推举为孝廉,任尚书郎。曾先后投奔孔伷、陈祎、许贡、王朗等人,于孙策攻王朗前与家属俱避难交州,受到交趾太守士燮礼待。其后受益州牧刘璋邀请,相继为巴郡、广汉、蜀郡太守。于刘备包围成都时欲越墙叛逃,为刘璋所获。刘备定蜀后欲将其弃用,在法正的建议下方以其为左将军长史。建安二十三年(218年),刘备称汉中王,任命许靖为汉中王傅。章武元年(221年),刘备称帝,任命许靖为司徒,位列三公。章武二年(222年),去世。有文集二卷。",
hejin: "何进(?~189年),字遂高,南阳郡宛县(今河南南阳市宛城区)人。东汉时期外戚大臣,灵思皇后之兄。初以妹妹有宠,拜为郎中,出任虎贲中郎将、颍川太守,迁侍中、将作大匠、河南尹。黄巾起义时,拜为大将军,总镇京师,发现并镇压马元义的密谋,封为慎侯。为张大威望,在京师讲武结营,置西园八校尉。汉灵帝驾崩后,粉碎了中常侍蹇硕拥立皇子刘协的图谋,听从袁绍之言,博征智谋之士,内借元舅之资,外据辅政之权,独揽朝中大权。中平六年(189),不纳陈琳和曹操劝谏,阴结军阀董卓,联合袁绍谋诛宦竖。事情败露后,为中常侍张让等人损害,其后代是魏晋高门士族南阳何氏。",
hansui: "韩遂(?-215年),字文约。凉州金城郡人。东汉末年军阀、将领,汉末群雄之一。原名韩约,后改名遂。韩遂最初闻名于西州,被羌胡叛军劫持并推举为首领,以诛宦官为名举兵造反,聚众十万,先后败皇甫嵩、张温、董卓、孙坚等名将,使得天下骚动。后受朝廷招安,拥兵割据一方长达三十余年。韩遂曾与马腾结为异姓兄弟,后二人关系破裂。袁绍、曹操相争之际,马腾、韩遂被钟繇说服,依附于曹操。马腾入京后,留其子马超统领部队。马超推举韩遂为都督起兵反叛曹操,为曹操所败,韩遂逃奔凉州,后又为夏侯渊所败,病死(一说被杀),享年七十余岁。",
niujin: "牛金(生卒年不详),初为曹仁部曲将,周瑜军数万人来攻,前锋数千人始至,曹仁登城望,乃募得三百人,遣牛金迎战。但对方兵力较多,牛金遂被围困。曹仁亲自杀入阵中救出牛金。司马懿使牛金轻骑饵诱蜀军,刚交战诸葛亮就退兵,追至祁山。蜀将马岱入寇,司马懿遣将军牛金击退,斩千余级。公孙渊反,司马懿帅牛金、胡遵等步骑四万发自洛阳,后平定辽东。牛金官至后将军。",
- jianggan:
- "蒋干,字子翼,汉末三国时期的人物,九江(治今安徽寿县)人。历史上的蒋干是当时的名士、辩论家。而罗贯中在历史小说《三国演义》中则将蒋干刻画成了被周瑜所愚弄的小丑形象。",
+ jianggan: "蒋干,字子翼,汉末三国时期的人物,九江(治今安徽寿县)人。历史上的蒋干是当时的名士、辩论家。而罗贯中在历史小说《三国演义》中则将蒋干刻画成了被周瑜所愚弄的小丑形象。",
- caoying:
- "曹婴是在电影《三国志之见龙卸甲》中登场的虚拟人物,由李美琪饰演。曹婴是曹操的孙女,弓马娴熟,文武双全,深得曹操的用兵之道及心术。于凤鸣山一战中担任魏军大都督阻止诸葛亮北伐并因罗平安的告密而全歼关兴、张苞、赵云率领的蜀军部队。",
- simahui:
- "司马徽(约145—208年),字德操,颍川阳翟(今河南禹州)人。东汉末年名士,精通道学、奇门、兵法、经学。有“水镜先生”之称。 司马徽为人清雅,学识广博,有知人之明,并向刘备推荐了诸葛亮、庞统等人,受到世人的敬重。",
- baosanniang:
- "鲍三娘是中国民间传说中的人物,事迹多见于《花关索传》。相传她是鲍家庄鲍员外的小女儿。后来与关索成亲,关羽自传授其武艺,因此也造就了鲍三娘的文武双全。荆州失守之后鲍三娘就跟随关索一同投奔蜀汉,并随诸葛亮征讨南蛮。平定了南蛮之后,夫妻二人就此一直替诸葛亮镇守着南中,他们也的确留下了许多脍炙人口的行侠仗义故事,在民间广为流传。",
+ caoying: "曹婴是在电影《三国志之见龙卸甲》中登场的虚拟人物,由李美琪饰演。曹婴是曹操的孙女,弓马娴熟,文武双全,深得曹操的用兵之道及心术。于凤鸣山一战中担任魏军大都督阻止诸葛亮北伐并因罗平安的告密而全歼关兴、张苞、赵云率领的蜀军部队。",
+ simahui: "司马徽(约145—208年),字德操,颍川阳翟(今河南禹州)人。东汉末年名士,精通道学、奇门、兵法、经学。有“水镜先生”之称。 司马徽为人清雅,学识广博,有知人之明,并向刘备推荐了诸葛亮、庞统等人,受到世人的敬重。",
+ baosanniang: "鲍三娘是中国民间传说中的人物,事迹多见于《花关索传》。相传她是鲍家庄鲍员外的小女儿。后来与关索成亲,关羽自传授其武艺,因此也造就了鲍三娘的文武双全。荆州失守之后鲍三娘就跟随关索一同投奔蜀汉,并随诸葛亮征讨南蛮。平定了南蛮之后,夫妻二人就此一直替诸葛亮镇守着南中,他们也的确留下了许多脍炙人口的行侠仗义故事,在民间广为流传。",
- pangdegong:
- '庞德公,字尚长,荆州襄阳人,东汉末年名士、隐士。 庞德公与当时徐庶、司马徽、诸葛亮、庞统等人交往密切。庞德公曾称诸葛亮为"卧龙",庞统为"凤雏",司马徽为"水镜",被誉为知人。对诸葛亮、庞统等人早年影响较大,并得到诸葛亮的敬重。庞德公最后隐居于鹿门山,采药而终。',
- zhaotongzhaoguang:
- "赵统,赵云长子,生卒年不详。常山真定(今为河北正定)人,陈寿在正史《三国志》中记载赵云去世后,赵统袭爵永昌亭侯,官至蜀汉虎贲中郎督,加行领军。赵广(?—263年),三国时期蜀汉牙门将,赵云的次子,赵统之弟。随姜维前往沓中,官拜牙门将。曹魏司马氏派五路大军伐蜀时,随大将军姜维与魏兵战于疆川口,姜维败绩还守剑阁,赵广于沓中战死。",
+ pangdegong: '庞德公,字尚长,荆州襄阳人,东汉末年名士、隐士。 庞德公与当时徐庶、司马徽、诸葛亮、庞统等人交往密切。庞德公曾称诸葛亮为"卧龙",庞统为"凤雏",司马徽为"水镜",被誉为知人。对诸葛亮、庞统等人早年影响较大,并得到诸葛亮的敬重。庞德公最后隐居于鹿门山,采药而终。',
+ zhaotongzhaoguang: "赵统,赵云长子,生卒年不详。常山真定(今为河北正定)人,陈寿在正史《三国志》中记载赵云去世后,赵统袭爵永昌亭侯,官至蜀汉虎贲中郎督,加行领军。赵广(?—263年),三国时期蜀汉牙门将,赵云的次子,赵统之弟。随姜维前往沓中,官拜牙门将。曹魏司马氏派五路大军伐蜀时,随大将军姜维与魏兵战于疆川口,姜维败绩还守剑阁,赵广于沓中战死。",
majun: "马钧,字德衡,扶风(今陕西扶风)人,生活在汉朝末期,是中国古代科技史上最负盛名的机械发明家之一。马钧年幼时家境贫寒,自己又有口吃的毛病,所以不擅言谈却精于巧思,后来在魏国担任给事中的官职。马钧最突出的表现有还原指南车;改进当时操作笨重的织绫机;发明一种由低处向高地引水的龙骨水车;制作出一种轮转式发石机,能连续发射石块,远至数百步;把木制原动轮装于木偶下面,叫做“水转百戏”。此后,马钧还改制了诸葛连弩,对科学发展和技术进步做出了贡献。",
- simazhao:
- "司马昭(211年—265年9月6日),字子上(小说《三国演义》为子尚),河内温县(今属河南)人。三国时期曹魏权臣,西晋王朝的奠基人之一。为晋宣帝司马懿与宣穆皇后张春华次子、晋景帝司马师之弟、晋武帝司马炎之父。 司马昭早年随父抗击蜀汉,多有战功。累官洛阳典农中郎将,封新城乡侯。正元二年(255年),继兄司马师为大将军,专揽国政。甘露五年(260年),魏帝曹髦被弑杀,司马昭立曹奂为帝。景元四年(263年),分兵遣钟会、邓艾、诸葛绪三路灭亡蜀汉,受封晋公。次年,进爵晋王。 咸熙二年(265年),司马昭病逝,年五十四,葬于崇阳陵。数月后,其子司马炎代魏称帝,建立晋朝,追尊司马昭为文帝,庙号太祖。",
- wangyuanji:
- "王元姬(217年—268年4月20日),东海郯县(今山东郯城西北)人。三国时期曹魏经学家王朗之孙女、王肃之女,晋文帝司马昭妻子,晋武帝司马炎与齐王司马攸的生母。 王元姬幼时便通《诗经》、《论语》,嫁司马昭后竭尽妇道、谦虚谨慎。其人颇有远见,曾预言钟会谋反之事。泰始元年(265年),司马炎建立西晋,尊王元姬为皇太后,宫号曰崇化宫。王元姬身处太后之位,提倡节俭,身体力行,作为众妃子的表率。在其治理之下,后宫井井有条,众人和睦相处。 泰始四年(268年),王元姬崩逝,终年五十二岁。谥号文明皇后,与司马昭合葬于崇阳陵。",
+ simazhao: "司马昭(211年—265年9月6日),字子上(小说《三国演义》为子尚),河内温县(今属河南)人。三国时期曹魏权臣,西晋王朝的奠基人之一。为晋宣帝司马懿与宣穆皇后张春华次子、晋景帝司马师之弟、晋武帝司马炎之父。 司马昭早年随父抗击蜀汉,多有战功。累官洛阳典农中郎将,封新城乡侯。正元二年(255年),继兄司马师为大将军,专揽国政。甘露五年(260年),魏帝曹髦被弑杀,司马昭立曹奂为帝。景元四年(263年),分兵遣钟会、邓艾、诸葛绪三路灭亡蜀汉,受封晋公。次年,进爵晋王。 咸熙二年(265年),司马昭病逝,年五十四,葬于崇阳陵。数月后,其子司马炎代魏称帝,建立晋朝,追尊司马昭为文帝,庙号太祖。",
+ wangyuanji: "王元姬(217年—268年4月20日),东海郯县(今山东郯城西北)人。三国时期曹魏经学家王朗之孙女、王肃之女,晋文帝司马昭妻子,晋武帝司马炎与齐王司马攸的生母。 王元姬幼时便通《诗经》、《论语》,嫁司马昭后竭尽妇道、谦虚谨慎。其人颇有远见,曾预言钟会谋反之事。泰始元年(265年),司马炎建立西晋,尊王元姬为皇太后,宫号曰崇化宫。王元姬身处太后之位,提倡节俭,身体力行,作为众妃子的表率。在其治理之下,后宫井井有条,众人和睦相处。 泰始四年(268年),王元姬崩逝,终年五十二岁。谥号文明皇后,与司马昭合葬于崇阳陵。",
liuye: "刘晔(?-234年),字子扬,淮南成德人,是光武帝刘秀之子阜陵王刘延的后代,三国时期魏国著名的战略家。刘晔年少知名,人称有佐世之才,是曹操手下举足轻重的谋士,他屡献妙计,对天下形势的发展往往一语中的。刘晔历仕数朝,是曹魏的三朝元老。",
luzhi: "鲁芝(190年—273年),字世英。扶风郡郿县(今陕西眉县)人。魏晋时期名臣。官至光禄大夫,位特进,封阴平侯。泰始九年(273年)卒,时年八十四。谥号“贞”。",
- xizhicai:
- "戏志才(生卒年不详),或志才为字,名不详(一说名忠),东汉颍川郡(今河南禹州)人。经张邈推荐,成为曹操手下谋士。为人多谋略,曹操十分器重,不幸早卒。三国演义中并无此人,三国志中只有寥寥数语。由荀彧推荐给曹操,被称为有“负俗之讥”。死后,荀彧又举荐了郭嘉。
陈寿《三国志》记载:太祖与荀彧书曰:自志才亡后,莫可与计事者。汝、颍固多奇士,谁可以继之?彧荐嘉。",
- sunqian:
- "孙乾(?—约215年),字公祐。北海郡(治今山东昌乐西)人。东汉末年刘备的幕僚。最初被大儒郑玄推荐于州里。刘备领徐州,以孙乾为从事。自徐州跟随刘备,多次作为刘备的使臣。刘备定益州后,拜孙乾为秉忠将军,其待遇仅次于麋竺,与简雍相同。不久后便病逝。",
+ xizhicai: "戏志才(生卒年不详),或志才为字,名不详(一说名忠),东汉颍川郡(今河南禹州)人。经张邈推荐,成为曹操手下谋士。为人多谋略,曹操十分器重,不幸早卒。三国演义中并无此人,三国志中只有寥寥数语。由荀彧推荐给曹操,被称为有“负俗之讥”。死后,荀彧又举荐了郭嘉。
陈寿《三国志》记载:太祖与荀彧书曰:自志才亡后,莫可与计事者。汝、颍固多奇士,谁可以继之?彧荐嘉。",
+ sunqian: "孙乾(?—约215年),字公祐。北海郡(治今山东昌乐西)人。东汉末年刘备的幕僚。最初被大儒郑玄推荐于州里。刘备领徐州,以孙乾为从事。自徐州跟随刘备,多次作为刘备的使臣。刘备定益州后,拜孙乾为秉忠将军,其待遇仅次于麋竺,与简雍相同。不久后便病逝。",
miheng: "祢衡(173年-198年),字正平,平原郡(今山东德州临邑德平镇)人。个性恃才傲物.和孔融交好。孔融著有《荐祢衡表》,向曹操推荐祢衡,但是祢衡称病不肯去,曹操封他为鼓手,想要羞辱祢衡,却反而被祢衡裸身击鼓而羞辱。后来祢衡骂曹操,曹操就把他遣送给刘表,祢衡对刘表也很轻慢,刘表又把他送去给江夏太守黄祖,最后因为和黄祖言语冲突而被杀,时年二十六岁。黄祖对杀害祢衡一事感到十分后悔,便将其加以厚葬。",
quyi: "麴义(又作曲义、鞠义),生卒年不详,是东汉末年军阀袁绍部下的将领,能征善战,屡建战功,早年在凉州,精通羌人战法,率领着袁绍的精锐部队。后来由于自恃功高而骄纵不轨,被袁绍所杀。",
- taoqian:
- "陶谦(132年-194年),字恭祖。丹阳郡(治今安徽宣城)人。汉末群雄之一。陶谦最初为诸生,在州郡任职,被举茂才,历任舒、卢二县令、幽州刺史、议郎,性格刚直,有大志。后随左车骑将军皇甫嵩对抗北宫伯玉,任扬武校尉,之后又随张温征韩遂、边章。中平五年(188年),徐州黄巾起,陶谦被朝廷任为徐州刺史,击破徐州黄巾,并推行屯田,恢复生产。尔后听从王朗、赵昱建议遣使进京朝贡,获拜安东将军、徐州牧,封溧阳侯。晚年因战事上为曹操大败,徐州大半几乎遭兵祸所害,以致过度忧劳而逝,终年六十三岁。",
- wangyun:
- "王允(137~192年),字子师,太原郡祁县(今山西祁县)人。东汉末年时期大臣。出身太原王氏,世代官宦。举孝廉出身,司徒高第征为侍御史。出任豫州刺史,勤政爱民。斗争中常侍张让失败后,去官隐居。中平六年,大将军何进掌权之后,辟为从事中郎,迁河南尹。董卓拥立汉献帝即位后,代替杨彪,拜太仆、尚书令、司徒,密谋刺死董卓,联合吕布共同执政,日益骄傲自满。初平三年(192年),董卓余党李傕、郭汜、樊稠等攻破长安。王允兵败处死,时年五十六岁。",
- bianfuren:
- "武宣皇后卞氏(159年12月30日-230年7月9日),琅邪开阳(今山东临沂)人,魏武帝曹操的正妻(继室),魏文帝曹丕、任城威王曹彰、陈思王曹植、萧怀王曹熊的母亲。原本是倡家,即汉代专门从事音乐歌舞的乐人家庭,后来与曹操成婚,建安初年,原配丁夫人被废,卞夫人成为曹操的正妻。曹丕继位后尊其为皇太后,曹叡继位后尊其为太皇太后。卞后在太和四年去世,与魏武帝曹操合葬高陵。",
- shamoke:
- "沙摩柯(?-222年),东汉末三国时期五溪蛮首领。汉章武元年(221年)初,为报关羽被东吴杀害之仇,刘备亲自领兵攻孙权,以金锦爵赏诱沙摩柯助战。章武二年(222年),吴大都督陆逊以火攻破刘备,率诸军齐击,汉军四十多个营寨被攻破,沙摩柯在大乱中匹马奔逃,被乱军杀死。",
+ taoqian: "陶谦(132年-194年),字恭祖。丹阳郡(治今安徽宣城)人。汉末群雄之一。陶谦最初为诸生,在州郡任职,被举茂才,历任舒、卢二县令、幽州刺史、议郎,性格刚直,有大志。后随左车骑将军皇甫嵩对抗北宫伯玉,任扬武校尉,之后又随张温征韩遂、边章。中平五年(188年),徐州黄巾起,陶谦被朝廷任为徐州刺史,击破徐州黄巾,并推行屯田,恢复生产。尔后听从王朗、赵昱建议遣使进京朝贡,获拜安东将军、徐州牧,封溧阳侯。晚年因战事上为曹操大败,徐州大半几乎遭兵祸所害,以致过度忧劳而逝,终年六十三岁。",
+ wangyun: "王允(137~192年),字子师,太原郡祁县(今山西祁县)人。东汉末年时期大臣。出身太原王氏,世代官宦。举孝廉出身,司徒高第征为侍御史。出任豫州刺史,勤政爱民。斗争中常侍张让失败后,去官隐居。中平六年,大将军何进掌权之后,辟为从事中郎,迁河南尹。董卓拥立汉献帝即位后,代替杨彪,拜太仆、尚书令、司徒,密谋刺死董卓,联合吕布共同执政,日益骄傲自满。初平三年(192年),董卓余党李傕、郭汜、樊稠等攻破长安。王允兵败处死,时年五十六岁。",
+ bianfuren: "武宣皇后卞氏(159年12月30日-230年7月9日),琅邪开阳(今山东临沂)人,魏武帝曹操的正妻(继室),魏文帝曹丕、任城威王曹彰、陈思王曹植、萧怀王曹熊的母亲。原本是倡家,即汉代专门从事音乐歌舞的乐人家庭,后来与曹操成婚,建安初年,原配丁夫人被废,卞夫人成为曹操的正妻。曹丕继位后尊其为皇太后,曹叡继位后尊其为太皇太后。卞后在太和四年去世,与魏武帝曹操合葬高陵。",
+ shamoke: "沙摩柯(?-222年),东汉末三国时期五溪蛮首领。汉章武元年(221年)初,为报关羽被东吴杀害之仇,刘备亲自领兵攻孙权,以金锦爵赏诱沙摩柯助战。章武二年(222年),吴大都督陆逊以火攻破刘备,率诸军齐击,汉军四十多个营寨被攻破,沙摩柯在大乱中匹马奔逃,被乱军杀死。",
lvfan: "吕范(?-228年),字子衡。汝南郡细阳县(今安徽太和)人。汉末至三国时期吴国重臣。吕范年轻为汝南县吏,后避难寿春,结识孙策。此后随孙策、孙权征伐四方,对稳固孙氏在江东的统治做出了杰出的贡献,孙权将其比之于东汉开国元勋吴汉。吴国建立后,吕范累官至前将军、假节、扬州牧,封南昌侯。黄武七年(228年),吕范被拜为大司马,未得授官,便已病逝。孙权悲痛不已,遣使赠其大司马印绶。孙权还都建业后,以太牢礼祭祀吕范。",
liqueguosi: "请分别查看「李傕」和「郭汜」的武将介绍。",
maojie: "毛玠(?—216年),字孝先,陈留平丘(今河南封丘)人。东汉末年大臣。年少时为县吏,以清廉公正著称。因战乱而打算到荆州避乱,但中途知道刘表政令不严明,因而改往鲁阳。后来投靠曹操,提出“奉天子以令不臣,脩耕植,畜军资”的战略规划,得到曹操的欣赏。
毛玠与崔琰主持选举,所举用的都是清廉正直之士。而毛玠为人廉洁,激起天下廉洁之风,一改朝中奢华风气。曹操大为赞赏,曹丕也亲自去拜访他。
曹操获封魏公后,毛玠改任尚书仆射,再典选举。又密谏曹操应该立嫡长子曹丕为魏国太子。崔琰被杀后,毛玠十分不快。后来有人诬告毛玠,曹操大怒,将毛玠收于狱中。及后在桓阶、和洽营救下,只被免职,不久逝世于家中。曹操在他死后赐他棺材和钱帛。",
- huangfusong:
- "字义真。安定郡朝那县(今宁夏彭阳)人。于黄巾起义时,以中郎将身份讨伐黄巾,用火攻大破张梁、张宝。后接替董卓进攻张梁,连胜七阵。掘张角墓,拜左车骑将军、冀州牧,因拒绝贿赂宦官而被免职。 董卓死,王允命其与吕布等共至郿坞抄籍董卓家产、人口,皇甫嵩将坞中所藏良家子女,尽行释放。",
+ huangfusong: "字义真。安定郡朝那县(今宁夏彭阳)人。于黄巾起义时,以中郎将身份讨伐黄巾,用火攻大破张梁、张宝。后接替董卓进攻张梁,连胜七阵。掘张角墓,拜左车骑将军、冀州牧,因拒绝贿赂宦官而被免职。 董卓死,王允命其与吕布等共至郿坞抄籍董卓家产、人口,皇甫嵩将坞中所藏良家子女,尽行释放。",
zangba: "其父臧戒,有二子臧艾与臧舜。年少时曾召集数人将获罪的父亲救出,此后四处流亡。后来成为陶谦麾下的骑都尉,负责募兵抵抗黄巾军。与孙观、尹礼等人拥兵驻屯于开阳,自成一股独立势力,后跟随吕布。吕布战败后,投降了曹操。后与袁绍、孙权等的战役里战功赫赫,官至镇东将军。",
- zhangren:
- "刘璋的属下,以忠勇著称。刘备入蜀时,张任曾劝刘璋提防刘备,但刘璋没有听从。魏延舞剑想趁机除掉刘璋时,张任出面对舞,解救刘璋。后在刘备进攻时于落凤坡射死了庞统。",
+ zhangren: "刘璋的属下,以忠勇著称。刘备入蜀时,张任曾劝刘璋提防刘备,但刘璋没有听从。魏延舞剑想趁机除掉刘璋时,张任出面对舞,解救刘璋。后在刘备进攻时于落凤坡射死了庞统。",
jiling: "东汉末年袁术帐下将领,勇猛非常,曾奉命率军攻打小沛的刘备,在吕布辕门射戟的调停下撤兵。",
zoushi: "军阀张济之妻,张绣之婶。张绣降曹后,邹氏遂被曹操霸占。贾诩献计趁机诛杀曹操,险些得手。曹操在损失爱将典韦、侄子曹安民和长子曹昂后方才逃出生天。",
- ganfuren:
- "刘备起兵后,于沛城娶甘氏为妾。后来,甘夫人随刘备到荆州,生了阿斗(也就是后主刘禅)。223年四月,刘备病死于白帝城,追谥甘夫人为“昭烈皇后”。",
+ ganfuren: "刘备起兵后,于沛城娶甘氏为妾。后来,甘夫人随刘备到荆州,生了阿斗(也就是后主刘禅)。223年四月,刘备病死于白帝城,追谥甘夫人为“昭烈皇后”。",
jiangfei: "请分别查看「蒋琬」和「费袆」的武将介绍。",
- mifuren:
- "刘备夫人。徐州别驾糜竺之妹。长坂兵败,她怀抱年仅两岁的刘禅在乱军中走散,被赵云发现;但麋夫人因为赵云只有一匹马,不肯上马,在将阿斗托付给赵云后投井而亡。",
- chendong:
- "陈武,东吴将领,孙策攻打刘繇,陈武前来相助,孙策非常喜爱陈武,拜为校尉,使作先锋。陈武以十数骑兵力杀敌五十余人。后于赤壁等战役屡立功勋。董袭献上严虎的人头来降孙策。赤壁之战,董袭受周瑜命,分兵去汉阳,合肥会战时接应太史慈,逍遥津支援孙权。濡须口之战时,董袭在船上督战,船覆董袭坚守殉职。",
- jiangqing:
- "擅长弓术。与周泰原为活跃于长江一带的江贼,孙策脱离袁术下江东自立门户时,和周泰一起率众投靠。 孙策攻刘繇,并引出城中麾下的陈横、薛礼、张英三名将领,陈横后被蒋钦一箭射杀,后与韩当等将乘舟过江,乱箭射杀敌军。曾在赤壁之战与周泰,还有擅使长枪的韩当率领水军在三江口踏江破敌。",
- kongrong:
- "字文举,鲁国人,东汉文学家,“建安七子”之首。献帝即位后任北军中侯、虎贲中郎将、北海相,时称孔北海后因触怒曹操,为曹操所杀。能诗善文。",
+ mifuren: "刘备夫人。徐州别驾糜竺之妹。长坂兵败,她怀抱年仅两岁的刘禅在乱军中走散,被赵云发现;但麋夫人因为赵云只有一匹马,不肯上马,在将阿斗托付给赵云后投井而亡。",
+ chendong: "陈武,东吴将领,孙策攻打刘繇,陈武前来相助,孙策非常喜爱陈武,拜为校尉,使作先锋。陈武以十数骑兵力杀敌五十余人。后于赤壁等战役屡立功勋。董袭献上严虎的人头来降孙策。赤壁之战,董袭受周瑜命,分兵去汉阳,合肥会战时接应太史慈,逍遥津支援孙权。濡须口之战时,董袭在船上督战,船覆董袭坚守殉职。",
+ jiangqing: "擅长弓术。与周泰原为活跃于长江一带的江贼,孙策脱离袁术下江东自立门户时,和周泰一起率众投靠。 孙策攻刘繇,并引出城中麾下的陈横、薛礼、张英三名将领,陈横后被蒋钦一箭射杀,后与韩当等将乘舟过江,乱箭射杀敌军。曾在赤壁之战与周泰,还有擅使长枪的韩当率领水军在三江口踏江破敌。",
+ kongrong: "字文举,鲁国人,东汉文学家,“建安七子”之首。献帝即位后任北军中侯、虎贲中郎将、北海相,时称孔北海后因触怒曹操,为曹操所杀。能诗善文。",
mateng: "字寿成,扶风茂陵人,东汉末年征西将军,割据西凉一带的军阀,伏波将军马援的后代,官至卫尉,封爵槐里乡侯。因其子马超谋反,而被杀,夷灭三族。",
- tianfeng:
- "字元皓。东汉末年大军阀袁绍部下重要谋士。为人刚直不阿,曾多次向袁绍进言而不被采纳。后因谏阻袁绍征伐曹操而被袁绍下令监禁,并于官渡之战后,被袁绍杀害。",
- caochun:
- "字子和,沛国谯(今安徽亳州)人。东汉末年曹操麾下将领,曹仁之弟。曹纯是曹操部下精锐部队“虎豹骑”的统领者之一,因在平定北方的战役中颇有功绩,被加封为高陵亭侯。死后谥曰威侯。曹纯擅战,甚得人心,为人重纲纪,不失理智,好学问,敬爱学士,闻名天下。",
+ tianfeng: "字元皓。东汉末年大军阀袁绍部下重要谋士。为人刚直不阿,曾多次向袁绍进言而不被采纳。后因谏阻袁绍征伐曹操而被袁绍下令监禁,并于官渡之战后,被袁绍杀害。",
+ caochun: "字子和,沛国谯(今安徽亳州)人。东汉末年曹操麾下将领,曹仁之弟。曹纯是曹操部下精锐部队“虎豹骑”的统领者之一,因在平定北方的战役中颇有功绩,被加封为高陵亭侯。死后谥曰威侯。曹纯擅战,甚得人心,为人重纲纪,不失理智,好学问,敬爱学士,闻名天下。",
hanba: "中国古代神话传说中引起旱灾的怪物。《诗·大雅·云汉》:“旱魃为虐,如惔如焚。”",
cuiyan: "字季珪,清河东武城(今河北省清河县)人。东汉末年名士,司空崔林的从兄,曹操帐下谋士。崔琰相貌俊美,很有威望,曹操对他也很敬畏。建安二十一年(216年),崔琰在给杨训的书信中写道“时乎时乎,会当有变时”,曹操认为此句有不逊之意,因而将崔琰下狱,不久崔琰即被曹操赐死。",
lifeng: "南阳(治今河南南阳)人,三国时期蜀汉大臣李严之子。230年,李严迁为骠骑将军,率军前往汉中,诸葛亮上表推举李丰为江州都督督军,以代替李严管理后方事务。李严去世后,李丰在蜀汉官至朱提太守。",
sunru: "孙茹,孙坚之妹,其名载于《江浙通志》中。儿子徐琨亦为孙吴早期名将,当初母子二人随军跟从孙策渡长江时,因为暂时没足够的船,孙策感到苦恼打算暂时驻军江边。孙茹夫人献计以芦苇为筏,孙策大喜。吴军遂以神不知鬼不觉的速度过长江击破刘繇部将张英,立下平江东第一功。",
- lingcao:
- "东汉末年将领,吴郡余杭(今浙江余杭)人,凌统之父。早年跟随孙策转战江东。孙权统军后,凌操随其征伐黄祖,被甘宁射杀。《吴书》载:甘宁以善射,将兵在后,射杀校尉凌操",
- zhugeguo:
- "诸葛果,为《历代神仙通鉴》中诸葛亮女儿的名字,《历代神仙通鉴》记录从上古到明代的神仙历史,因此诸葛果不见于任何史书。成都西南有朝真观,即乘烟观。相传,诸葛果在这里修行后成仙升天。",
- zhuling:
- "朱灵(生卒年不详),字文博,冀州清河国人,三国时期曹魏名将。官至后将军,封为高唐侯,谥号威侯。初为袁绍部将,后归顺曹操,随曹操征伐四方,屡建战功。",
- re_yuanshu:
- "字公路,汝南汝阳人,袁绍之弟。初为虎贲中郎将。董卓进京后以袁术为后将军,袁术因畏祸而出奔南阳。初平元年与袁绍、曹操等同时起兵,共讨董卓。后与袁绍对立,被袁绍、曹操击败,率馀众奔九江,割据扬州。建安二年称帝,建号仲氏。",
+ lingcao: "东汉末年将领,吴郡余杭(今浙江余杭)人,凌统之父。早年跟随孙策转战江东。孙权统军后,凌操随其征伐黄祖,被甘宁射杀。《吴书》载:甘宁以善射,将兵在后,射杀校尉凌操",
+ zhugeguo: "诸葛果,为《历代神仙通鉴》中诸葛亮女儿的名字,《历代神仙通鉴》记录从上古到明代的神仙历史,因此诸葛果不见于任何史书。成都西南有朝真观,即乘烟观。相传,诸葛果在这里修行后成仙升天。",
+ zhuling: "朱灵(生卒年不详),字文博,冀州清河国人,三国时期曹魏名将。官至后将军,封为高唐侯,谥号威侯。初为袁绍部将,后归顺曹操,随曹操征伐四方,屡建战功。",
+ re_yuanshu: "字公路,汝南汝阳人,袁绍之弟。初为虎贲中郎将。董卓进京后以袁术为后将军,袁术因畏祸而出奔南阳。初平元年与袁绍、曹操等同时起兵,共讨董卓。后与袁绍对立,被袁绍、曹操击败,率馀众奔九江,割据扬州。建安二年称帝,建号仲氏。",
fuwan: "伏完(?-209),琅邪东武(今属山东)人,东汉末大臣,汉献帝伏皇后之父。历官辅国将军、中散大夫、屯骑校尉。",
liuxie: "字伯和,又字合。汉族,祖籍沛县,生于洛阳。汉灵帝第三子,被董卓迎立为帝。董卓被王允和吕布诛杀后,董卓部将李傕等攻入长安,再次挟持了他,后来逃出长安。公元196年,曹操控制了刘协,并迁都许昌,“挟天子以令诸侯”。公元220年,曹操病死,刘协被曹丕控制,随后被迫禅让于曹丕。",
- yuanshu:
- "字公路,汝南汝阳人,袁绍之弟。初为虎贲中郎将。董卓进京后以袁术为后将军,袁术因畏祸而出奔南阳。初平元年与袁绍、曹操等同时起兵,共讨董卓。后与袁绍对立,被袁绍、曹操击败,率馀众奔九江,割据扬州。建安二年称帝,建号仲氏。",
- gongsunzan:
- "字伯珪,汉族,号“白马义从”。辽西令支人。东汉末年献帝年间占据幽州一带的军阀,汉末群雄之一。出身贵族,因母地位卑贱,只当了郡中小吏。他貌美,声音洪亮,机智善辩。后随卢植于缑氏山中读书,粗通经传。",
- caohong:
- "字子廉,沛国谯(今安徽亳县)人,曹操从弟,曾献马并救护曹操。后多随军征伐,平兖州、征刘表、讨祝臂。曹丕即位时封曹洪为骠骑将军。曹叡即位,拜曹洪为后将军,更封乐城侯,后复拜为骠骑将军。曹洪逝世,追谥曰恭侯。",
- guanyinping:
- "河东解县(今山西运城)人,美髯公关羽之女。因在关羽的四个子女中排行第三,故又被称作“关三小姐”、“关氏三姐”或“关羽三小姐”。传说她是赵云的弟子、并随同诸葛亮平定南蛮。",
- xiahouba:
- "夏侯渊次子。本为曹魏武将,后因司马懿诛曹爽一族,夏侯霸身为曹氏宗室而心怀不安,遂投降蜀汉。后随蜀将姜维北伐,官至车骑将军。",
- daxiaoqiao:
- "大乔,庐江皖县人,为乔公长女,孙策之妻,容貌国色流离。小乔为大乔之妹,周瑜之妻,资貌绝伦。两人合称“二乔”。",
+ yuanshu: "字公路,汝南汝阳人,袁绍之弟。初为虎贲中郎将。董卓进京后以袁术为后将军,袁术因畏祸而出奔南阳。初平元年与袁绍、曹操等同时起兵,共讨董卓。后与袁绍对立,被袁绍、曹操击败,率馀众奔九江,割据扬州。建安二年称帝,建号仲氏。",
+ gongsunzan: "字伯珪,汉族,号“白马义从”。辽西令支人。东汉末年献帝年间占据幽州一带的军阀,汉末群雄之一。出身贵族,因母地位卑贱,只当了郡中小吏。他貌美,声音洪亮,机智善辩。后随卢植于缑氏山中读书,粗通经传。",
+ caohong: "字子廉,沛国谯(今安徽亳县)人,曹操从弟,曾献马并救护曹操。后多随军征伐,平兖州、征刘表、讨祝臂。曹丕即位时封曹洪为骠骑将军。曹叡即位,拜曹洪为后将军,更封乐城侯,后复拜为骠骑将军。曹洪逝世,追谥曰恭侯。",
+ guanyinping: "河东解县(今山西运城)人,美髯公关羽之女。因在关羽的四个子女中排行第三,故又被称作“关三小姐”、“关氏三姐”或“关羽三小姐”。传说她是赵云的弟子、并随同诸葛亮平定南蛮。",
+ xiahouba: "夏侯渊次子。本为曹魏武将,后因司马懿诛曹爽一族,夏侯霸身为曹氏宗室而心怀不安,遂投降蜀汉。后随蜀将姜维北伐,官至车骑将军。",
+ daxiaoqiao: "大乔,庐江皖县人,为乔公长女,孙策之妻,容貌国色流离。小乔为大乔之妹,周瑜之妻,资貌绝伦。两人合称“二乔”。",
yuejin: "字文谦,魏“五子良将”之一。容貌短小,以胆烈跟从曹操,南征北讨,战功无数。从击袁绍于官渡,奋勇力战,斩袁绍部将淳于琼。又从击袁绍子谭、尚于黎阳,斩其大将严敬。从平荆州,留屯襄阳,进击关羽、苏非等人,击退其众,南郡诸郡的山谷蛮夷都前往乐进处投降。后来从曹操征孙权,假进节。曹操回师后,留乐进与张辽、李典屯于合肥。又以乐进数有军功,迁右将军。建安二十三年逝世,谥曰威侯。",
caoang: "字子修,曹操的长子,由于性情谦和且聪慧所以深得曹操喜爱。曹操征讨张绣时,羞辱张绣之婶邹氏,被张绣突然袭击。曹昂为保护曹操撤退,与典韦一起战死在宛城。",
- zhugejin:
- "字子瑜,吴国大臣,诸葛亮之兄,诸葛恪之父。经鲁肃推荐,为东吴效力。胸怀宽广,温厚诚信,得到孙权的深深信赖,努力缓和蜀汉与东吴的关系。建安二十五年(220年)吕蒙病逝,诸葛瑾代吕蒙领南郡太守,驻守公安。孙权称帝后,诸葛瑾官至大将军,领豫州牧。",
+ zhugejin: "字子瑜,吴国大臣,诸葛亮之兄,诸葛恪之父。经鲁肃推荐,为东吴效力。胸怀宽广,温厚诚信,得到孙权的深深信赖,努力缓和蜀汉与东吴的关系。建安二十五年(220年)吕蒙病逝,诸葛瑾代吕蒙领南郡太守,驻守公安。孙权称帝后,诸葛瑾官至大将军,领豫州牧。",
zhangxingcai: "蜀名将张飞与夏侯氏所生之女,刘禅的妻子,史上称为“敬哀皇后”。",
zumao: "字大荣,吴郡富春人,使用双刀。孙坚在汜水关被华雄击败,祖茂为保护主公而主动提出与孙坚交换头盔,孙坚因此得脱。祖茂将孙坚的赤帻挂在柱子上,准备以此引诱华雄,趁机偷袭,却反被华雄所杀。",
- dingfeng:
- "吴国将领。年少时以骁勇为小将,经常奋勇杀敌,屡立功勋,此后又于东兴之战中“雪中奋短兵”,大破侵犯东吴的魏军。吴景帝孙休在位时,丁奉设计除掉了东吴的权臣孙綝,被拜为大将军,后为右大司马、左军师。",
- panfeng:
- "冀州牧韩馥部下的上将。当十八路诸侯讨伐董卓之时,他奉韩馥之命前往汜水关前挑战董卓部下大将华雄,不敌被斩。",
- maliang:
- "字季常,因眉毛中有白毛,人称白眉马良,马谡的兄长。马良在兄弟五人中名声最佳,因此有“马氏五常,白眉最良”的说法。",
- zhugedan:
- "字公休,曹魏后期的重要将领,诸葛亮的族弟。曾与司马师一同平定毌丘俭、文钦的叛乱。之后因与被诛的夏侯玄、邓飏交厚,且见到王淩、毌丘俭等人的覆灭而心不自安,于甘露二年起兵,并得到东吴的支援,但于次年被镇压,被大将军司马胡奋所斩。",
- hetaihou:
- "大将军何进的妹妹,汉灵帝刘宏第二任皇后,汉少帝刘辩的生母。何氏出身于屠户家庭,后选入掖庭,得到汉灵帝临幸,生下皇子刘辩,并受封贵人。光和三年(180年),立为皇后。中平六年(189年),汉灵帝去世,刘辩继位,尊何氏为皇太后。董卓进京,废黜刘辩,不久毒杀刘辩及何氏。",
+ dingfeng: "吴国将领。年少时以骁勇为小将,经常奋勇杀敌,屡立功勋,此后又于东兴之战中“雪中奋短兵”,大破侵犯东吴的魏军。吴景帝孙休在位时,丁奉设计除掉了东吴的权臣孙綝,被拜为大将军,后为右大司马、左军师。",
+ panfeng: "冀州牧韩馥部下的上将。当十八路诸侯讨伐董卓之时,他奉韩馥之命前往汜水关前挑战董卓部下大将华雄,不敌被斩。",
+ maliang: "字季常,因眉毛中有白毛,人称白眉马良,马谡的兄长。马良在兄弟五人中名声最佳,因此有“马氏五常,白眉最良”的说法。",
+ zhugedan: "字公休,曹魏后期的重要将领,诸葛亮的族弟。曾与司马师一同平定毌丘俭、文钦的叛乱。之后因与被诛的夏侯玄、邓飏交厚,且见到王淩、毌丘俭等人的覆灭而心不自安,于甘露二年起兵,并得到东吴的支援,但于次年被镇压,被大将军司马胡奋所斩。",
+ hetaihou: "大将军何进的妹妹,汉灵帝刘宏第二任皇后,汉少帝刘辩的生母。何氏出身于屠户家庭,后选入掖庭,得到汉灵帝临幸,生下皇子刘辩,并受封贵人。光和三年(180年),立为皇后。中平六年(189年),汉灵帝去世,刘辩继位,尊何氏为皇太后。董卓进京,废黜刘辩,不久毒杀刘辩及何氏。",
sunluyu: "又名小虎,孙权与步练师之女。吴后期,孙鲁班诬陷孙鲁育参与谋反,于是孙峻杀害了孙鲁育。",
wenpin: "本为刘表大将,刘表死后,跟随刘琮投降曹操。后曹操令其镇守江夏,多次阻止了关羽和孙权的进攻,为曹操倚为屏障的大将之一。",
- zhanglu:
- "汉宁太守,继父祖之后传播五斗米教。刘璋杀张鲁之母,二人因此结仇,多次交战。刘备攻益州时,刘璋向张鲁求援。张鲁派马超前往,但马超投降刘备。张鲁后见曹操自封魏王,想要自立为汉宁王,为谋士阎圃劝免。后曹操讨汉中,张鲁败,众人劝其烧粮仓,张鲁认为这是国家之物,未听从,为曹操所称赞。后投降曹操,任镇南将军。",
+ zhanglu: "汉宁太守,继父祖之后传播五斗米教。刘璋杀张鲁之母,二人因此结仇,多次交战。刘备攻益州时,刘璋向张鲁求援。张鲁派马超前往,但马超投降刘备。张鲁后见曹操自封魏王,想要自立为汉宁王,为谋士阎圃劝免。后曹操讨汉中,张鲁败,众人劝其烧粮仓,张鲁认为这是国家之物,未听从,为曹操所称赞。后投降曹操,任镇南将军。",
mayunlu: "马腾之女,马超之妹,赵云之妻。父亲令其自幼习武,枪术非凡,寻常男子也是难以匹敌。",
tadun: "东汉末年辽西乌桓(亦称乌丸)的首领,乌桓大人丘力居的从子,总摄三王部。曾出兵协助袁绍,击破公孙瓒。此后受袁绍假传朝廷诏命,与三王难楼、苏仆延、乌延等人同受单于称号及印绶。后难楼、苏仆延率其部众奉立楼班为单于,蹋顿于是退位为王。袁绍死后,收到被曹操击败的袁尚的求助,纠集逃亡至乌桓的幽州、冀州官吏百姓,企图夺回河北。东汉建安十二年,曹操亲征乌桓。八月,乌桓、袁氏部队于柳城白狼山为曹军所败,蹋顿在此战中被曹操的先锋张辽所斩杀。 ",
- yanbaihu:
- "吴郡乌程县人,原名“严虎”,别号“白虎”,东汉末年盘据吴郡一带山贼出身的地方豪帅。献帝初拥兵万人自固。孙策受袁术使渡江,攻破白虎等。白虎奔余杭,投靠许昭。建安二年,再度被孙策击败,至此不知亡佚何处。",
- simalang:
- "字伯达,“司马八达”之一。曹操任司空后,司马朗被辟为司空属官,又历任成皋令、堂阳长、元城令、丞相主簿、兖州刺史等职,所在皆有政绩,深受百姓爱戴。后司马朗与夏侯惇、臧霸等征讨吴国,到达居巢。军队中流行瘟疫,司马朗亲自去视察,派送医药,因此染病去世。",
+ yanbaihu: "吴郡乌程县人,原名“严虎”,别号“白虎”,东汉末年盘据吴郡一带山贼出身的地方豪帅。献帝初拥兵万人自固。孙策受袁术使渡江,攻破白虎等。白虎奔余杭,投靠许昭。建安二年,再度被孙策击败,至此不知亡佚何处。",
+ simalang: "字伯达,“司马八达”之一。曹操任司空后,司马朗被辟为司空属官,又历任成皋令、堂阳长、元城令、丞相主簿、兖州刺史等职,所在皆有政绩,深受百姓爱戴。后司马朗与夏侯惇、臧霸等征讨吴国,到达居巢。军队中流行瘟疫,司马朗亲自去视察,派送医药,因此染病去世。",
wangji: "字伯舆,东莱曲城人。三国时期魏国将领。王基文武兼备,才高于世,德溥于时,深得司马懿、司马师、司马昭的器重,尤其在南征毋丘俭,文钦之乱,东征诸葛诞之叛大规模军事活动中,王基与司马师、司马昭结下了深厚的军友情谊。魏景元二年王基去世,追赠司空,谥号为景侯。",
buzhi: "吴重臣,最初避难江东,于孙权统事后,被召为主记。后游历吴地,又任海盐县长,还任东曹掾,出领鄱阳太守。建安十五年,转交州刺史、立武中郎将,率军接管往交州,追拜使持节、征南中郎将。次年,以平定交州功,加平戎将军,封广信侯。后迁右将军、左护军,改封临湘侯。孙权称帝后,拜骠骑将军,领冀州牧,后因冀州分与蜀汉而解牧职。又都督西陵。赤乌九年,代陆逊为丞相。",
litong: "字文达,小字万亿。江夏平春(今河南信阳)人,汝南太守。早年以游侠闻名于江汝,在率众补充曹操兵源有功拜为阳安都尉,其间不因私而忘公,不因其妻子的求请而过问执法者。后来在曹操讨伐马超时出阵挑战,死于马超枪下。",
mizhu: "原为徐州富商,后被徐州牧陶谦辟为别驾从事。陶谦病死后,奉其遗命迎接刘备。与其弟麋芳拒绝曹操的任命而跟随刘备,在刘备最潦倒之时给予刘备很大的帮助,使他重新振作。214年(建安十九年),刘备入主益州后,拜麋竺为安汉将军,地位在诸葛亮之上,为刘备手下众臣之最。吕蒙袭取荆州,麋芳举城投降,导致关羽兵败身亡,麋竺面缚请罪,刘备劝慰麋竺,对他待遇如初。",
- dongbai:
- "东汉末年县君,陇西临洮(今甘肃省岷县)人,董卓之孙女。董卓当权时,遍封其宗族,其中孙女董白尚未及笄,被封为渭阳君。",
+ dongbai: "东汉末年县君,陇西临洮(今甘肃省岷县)人,董卓之孙女。董卓当权时,遍封其宗族,其中孙女董白尚未及笄,被封为渭阳君。",
zhaoxiang: "赵云与马云騄之女,赵统赵广之妹,关平之妻。",
heqi: "早年在平定山越的战争中立有大功,又讨平叛乱无数,身经百战,所向披靡,深受孙权器重。后来在与魏国的多次边境争斗中也屡立战功,官至后将军,并领徐州牧。",
- dongyun:
- "大汉重臣,掌军中郎将董和之子。东汉末年,其父董和事刘璋为益州太守,刘备立太子时,允被选为洗马,后为黄门侍郎,延熙六年(公元243年)加辅国将军,延熙七年(公元244年)以侍中守尚书令,任大将军费祎的副手。",
- mazhong:
- "本名狐笃,字德信,巴西阆中人,初次出场时随丞相诸葛亮南征孟获,诸葛亮遣马忠与赵云两路夹攻,大败蛮将阿会喃。孟获派弟孟优赴汉军处假投降,欲内应外合,诸葛亮将计就计,埋伏擒获孟获和诸洞酋长,马忠亦于此战立下战功。后诸葛亮北伐时亦数次出阵,立下汗马功劳。",
+ dongyun: "大汉重臣,掌军中郎将董和之子。东汉末年,其父董和事刘璋为益州太守,刘备立太子时,允被选为洗马,后为黄门侍郎,延熙六年(公元243年)加辅国将军,延熙七年(公元244年)以侍中守尚书令,任大将军费祎的副手。",
+ mazhong: "本名狐笃,字德信,巴西阆中人,初次出场时随丞相诸葛亮南征孟获,诸葛亮遣马忠与赵云两路夹攻,大败蛮将阿会喃。孟获派弟孟优赴汉军处假投降,欲内应外合,诸葛亮将计就计,埋伏擒获孟获和诸洞酋长,马忠亦于此战立下战功。后诸葛亮北伐时亦数次出阵,立下汗马功劳。",
kanze: "孙权谋士,在孙权广纳贤才之时与严畯等来到江东,甚为孙权礼遇。第一个识破周瑜打黄盖是苦肉计,后欣然向曹操献诈降书,被曹操识破后面不改色,哈哈大笑,一番妙言让曹操相信了诈降书,是苦肉计中的关键人物。后劝孙权不要设局请关羽。在刘备御驾亲征东吴时,向孙权举荐陆逊为都督,间接上挽救了东吴的命运。",
lingju: "相传为吕布与貂蝉的女儿,被汉献帝掳走并训练为死士,被秘密送入宫中接近曹操,成为其“忘年红颜知己”。外表是柔弱的女子,实际上身怀致命的杀人绝技,等待时机给予曹操致命一击。",
- yangxiu:
- "字德祖,今陕西华阴人,是东汉末年的文学家。杨修学问渊博,极聪慧,任丞相府主簿。史载,“是时,军国多事,修总知外内,事皆称意”。",
- chenlin:
- "陈琳(?-217年),字孔璋,广陵射阳(今江苏宝应)人。东汉末年著名文学家,“建安七子”之一。",
- zhugeke:
- "字元逊,琅邪阳都(今山东沂南)人。三国时期吴臣,蜀丞相诸葛亮之侄,吴大将军诸葛瑾长子,从小就以神童著称,深受孙权赏识。",
- zhangbao:
- "东汉末年黄巾起义的首领之一,张角之弟,张梁之兄。中平元年(184)随兄张角起义,号称“地公将军”。",
- chengyu:
- "字仲德,本名程立,因梦中於泰山捧日,更名程昱。荀彧投曹操时向其举荐程昱。他参与了攻打吕布、袁绍、刘备、孙权的大部份战事,一直出谋献策,表现出众。",
+ yangxiu: "字德祖,今陕西华阴人,是东汉末年的文学家。杨修学问渊博,极聪慧,任丞相府主簿。史载,“是时,军国多事,修总知外内,事皆称意”。",
+ chenlin: "陈琳(?-217年),字孔璋,广陵射阳(今江苏宝应)人。东汉末年著名文学家,“建安七子”之一。",
+ zhugeke: "字元逊,琅邪阳都(今山东沂南)人。三国时期吴臣,蜀丞相诸葛亮之侄,吴大将军诸葛瑾长子,从小就以神童著称,深受孙权赏识。",
+ zhangbao: "东汉末年黄巾起义的首领之一,张角之弟,张梁之兄。中平元年(184)随兄张角起义,号称“地公将军”。",
+ chengyu: "字仲德,本名程立,因梦中於泰山捧日,更名程昱。荀彧投曹操时向其举荐程昱。他参与了攻打吕布、袁绍、刘备、孙权的大部份战事,一直出谋献策,表现出众。",
sunhao: "孙权之孙,孙和之子,东吴的末代君主。在位初期虽施行过明政,但不久即沉溺酒色,专于杀戮,变得昏庸暴虐,嗜用挖眼、剥皮等酷刑。280年,吴国被西晋所灭,孙皓投降西晋,被封为归命侯。",
wutugu: "南蛮乌戈国主,身长丈二(约合现在2.77米),不食五谷,以生蛇恶兽为饭。身有鳞甲,刀箭不能侵。兀突骨乘骑巨象,头戴日月狼须帽,身披金珠缨络,两肋下露出生鳞甲,眼目中微有光芒。",
shixie: "割据交州(今越南)一带的军阀,年少时师事刘陶,经逐渐升迁任交趾太守。后被朝廷加职绥南中郎将,迁安远将军,封龙度亭侯。在步骘接管交州时积极配合,归附孙权,被孙权加为左将军;此后又因诱降益州豪族雍闿而迁任卫将军,进封龙编侯。任交趾太守四十年。",
- guansuo:
- "关羽的三子。自荆州失陷后,逃难在鲍家庄养病,伤势痊愈之后入蜀,逢丞相诸葛亮南征,拜之为前部先锋,一同南征。",
- wanglang:
- "字景兴,汉末三国经学家,曹魏初期重臣。曾任会稽太守举兵抵抗孙策,后为曹操所征,被拜为谏议大夫等职。曹丕建立魏国后任命为司空。小说《三国演义》中他在阵前与诸葛亮饶舌比拼,最终被诸葛亮言词所驳倒,一时气愤坠马身亡。",
- zhangliang:
- "东汉末年黄巾起义首领之一,张角的三弟。中平元年(184)随兄起义,号称“人公将军”。遭到朝廷所派左中郎将皇甫嵩进攻时,他率军在广宗(今河北威县)进行反击。后因警戒疏忽,遭到汉军夜袭,兵败身亡。",
+ guansuo: "关羽的三子。自荆州失陷后,逃难在鲍家庄养病,伤势痊愈之后入蜀,逢丞相诸葛亮南征,拜之为前部先锋,一同南征。",
+ wanglang: "字景兴,汉末三国经学家,曹魏初期重臣。曾任会稽太守举兵抵抗孙策,后为曹操所征,被拜为谏议大夫等职。曹丕建立魏国后任命为司空。小说《三国演义》中他在阵前与诸葛亮饶舌比拼,最终被诸葛亮言词所驳倒,一时气愤坠马身亡。",
+ zhangliang: "东汉末年黄巾起义首领之一,张角的三弟。中平元年(184)随兄起义,号称“人公将军”。遭到朝廷所派左中郎将皇甫嵩进攻时,他率军在广宗(今河北威县)进行反击。后因警戒疏忽,遭到汉军夜袭,兵败身亡。",
},
characterTitle: {},
perfectPair: {
@@ -899,10 +660,7 @@ game.import("character", function () {
skills: ["zhuangshu_basic"],
forceDie: true,
onLose: function () {
- if (
- (!event.getParent(2) || event.getParent(2).name != "swapEquip") &&
- (event.getParent().type != "equip" || event.getParent().swapEquip)
- ) {
+ if ((!event.getParent(2) || event.getParent(2).name != "swapEquip") && (event.getParent().type != "equip" || event.getParent().swapEquip)) {
card.fix();
card.remove();
card.destroyed = true;
@@ -928,10 +686,7 @@ game.import("character", function () {
forceDie: true,
skills: ["zhuangshu_trick"],
onLose: function () {
- if (
- (!event.getParent(2) || event.getParent(2).name != "swapEquip") &&
- (event.getParent().type != "equip" || event.getParent().swapEquip)
- ) {
+ if ((!event.getParent(2) || event.getParent(2).name != "swapEquip") && (event.getParent().type != "equip" || event.getParent().swapEquip)) {
card.fix();
card.remove();
card.destroyed = true;
@@ -952,10 +707,7 @@ game.import("character", function () {
forceDie: true,
inherit: "zhuangshu_basic",
onLose: function () {
- if (
- (!event.getParent(2) || event.getParent(2).name != "swapEquip") &&
- (event.getParent().type != "equip" || event.getParent().swapEquip)
- ) {
+ if ((!event.getParent(2) || event.getParent(2).name != "swapEquip") && (event.getParent().type != "equip" || event.getParent().swapEquip)) {
card.fix();
card.remove();
card.destroyed = true;
@@ -972,18 +724,18 @@ game.import("character", function () {
audio: 2,
trigger: { player: "phaseUseBegin" },
filter(event, player) {
- return game.hasPlayer((target) => target != player);
+ return game.hasPlayer(target => target != player);
},
async cost(event, trigger, player) {
event.result = await player
.chooseTarget(get.prompt2("olliantao"), lib.filter.notMe)
- .set("ai", (target) => {
+ .set("ai", target => {
const player = get.event("player"),
att = get.attitude(player, target);
- const colors = Object.keys(lib.color).filter((i) => i != "none");
+ const colors = Object.keys(lib.color).filter(i => i != "none");
if (
- !colors.some((color) =>
- player.hasCard((card) => {
+ !colors.some(color =>
+ player.hasCard(card => {
const juedou = get.autoViewAs({ name: "juedou" }, [card]);
return player.canUse(juedou, target, false);
}, "h")
@@ -991,7 +743,7 @@ game.import("character", function () {
)
return 20 + (3 - get.sgn(att)) + Math.random();
const effs = colors.reduce((list, color) => {
- const cards = player.getCards("h", (card) => {
+ const cards = player.getCards("h", card => {
const juedou = get.autoViewAs({ name: "juedou" }, [card]);
return player.canUse(juedou, target, false);
});
@@ -1011,7 +763,7 @@ game.import("character", function () {
},
async content(event, trigger, player) {
const target = event.targets[0];
- const colors = Object.keys(lib.color).filter((i) => i != "none");
+ const colors = Object.keys(lib.color).filter(i => i != "none");
if (colors.length && player.countCards("h")) {
const result = await target
.chooseControl(colors)
@@ -1023,7 +775,7 @@ game.import("character", function () {
if (controls.length == 1) return controls[0];
const getSum = function (color, player, source) {
return source
- .getCards("h", (card) => {
+ .getCards("h", card => {
if (get.color(card) != color) return false;
const juedou = get.autoViewAs({ name: "juedou" }, [card]);
return source.canUse(juedou, player, false);
@@ -1033,15 +785,9 @@ game.import("character", function () {
return num + get.effect(player, juedou, source, player);
}, 0);
};
- return controls.sort(
- (a, b) => getSum(b, player, source) - getSum(a, player, source)
- )[0];
+ return controls.sort((a, b) => getSum(b, player, source) - getSum(a, player, source))[0];
})
- .set(
- "prompt2",
- get.translation(player) +
- "将对你依次使用由其手牌中所有此颜色的牌转化的【决斗】"
- )
+ .set("prompt2", get.translation(player) + "将对你依次使用由其手牌中所有此颜色的牌转化的【决斗】")
.forResult();
const color = result.control;
game.broadcastAll(
@@ -1059,26 +805,15 @@ game.import("character", function () {
);
while (
target.isIn() &&
- player.hasCard((card) => lib.skill.olliantao_backup.filterCard(card, player)) &&
- !game.getGlobalHistory("everything", (evt) => {
- return (
- evt.name == "dying" &&
- [player, target].includes(evt.player) &&
- evt.getParent("olliantao") == event
- );
+ player.hasCard(card => lib.skill.olliantao_backup.filterCard(card, player)) &&
+ !game.getGlobalHistory("everything", evt => {
+ return evt.name == "dying" && [player, target].includes(evt.player) && evt.getParent("olliantao") == event;
}).length
) {
await player
.chooseToUse()
.set("forced", true)
- .set(
- "openskilldialog",
- "连讨:将一张" +
- get.translation(color) +
- "手牌当作【决斗】对" +
- get.translation(target) +
- "使用"
- )
+ .set("openskilldialog", "连讨:将一张" + get.translation(color) + "手牌当作【决斗】对" + get.translation(target) + "使用")
.set("norestore", true)
.set("_backupevent", "olliantao_backup")
.set("custom", {
@@ -1089,11 +824,7 @@ game.import("character", function () {
.set("targetRequired", true)
.set("complexSelect", true)
.set("filterTarget", function (card, player, target) {
- if (
- target != _status.event.sourcex &&
- !ui.selected.targets.includes(_status.event.sourcex)
- )
- return false;
+ if (target != _status.event.sourcex && !ui.selected.targets.includes(_status.event.sourcex)) return false;
return lib.filter.targetEnabled.apply(this, arguments);
})
.set("sourcex", target)
@@ -1101,14 +832,14 @@ game.import("character", function () {
}
}
const num = player
- .getHistory("sourceDamage", (evt) => {
+ .getHistory("sourceDamage", evt => {
return evt.getParent(4) == event;
})
.reduce((sum, evt) => sum + evt.num, 0);
if (num) await player.draw(num);
if (
- !game.hasPlayer2((current) => {
- return current.getHistory("damage", (evt) => {
+ !game.hasPlayer2(current => {
+ return current.getHistory("damage", evt => {
return evt.getParent(4) == event;
}).length;
})
@@ -1148,7 +879,8 @@ game.import("character", function () {
enable: "phaseUse",
usable: 1,
async content(event, trigger, player) {
- let num = player.maxHp, cards = get.cards(num);
+ let num = player.maxHp,
+ cards = get.cards(num);
await game.cardsGotoOrdering(cards);
await player.showCards(cards, get.translation(player) + "发动了【易城】");
if (player.countCards("h")) {
@@ -1161,41 +893,25 @@ game.import("character", function () {
[
"牌堆顶",
cards,
- (list) => {
- const sum2 = list.reduce(
- (num, card) => num + get.number(card, false),
- 0
- );
- return (
- "牌堆顶(现" +
- sum2 +
- { 0: "=", "-1": "<", 1: ">" }[get.sgn(sum2 - sum).toString()] +
- "原" +
- sum +
- ")"
- );
+ list => {
+ const sum2 = list.reduce((num, card) => num + get.number(card, false), 0);
+ return "牌堆顶(现" + sum2 + { 0: "=", "-1": "<", 1: ">" }[get.sgn(sum2 - sum).toString()] + "原" + sum + ")";
},
],
["手牌", player.getCards("h")],
])
- .set("filterOk", (moved) => moved[1].some((i) => !get.owner(i)))
- .set("processAI", (list) => {
+ .set("filterOk", moved => moved[1].some(i => !get.owner(i)))
+ .set("processAI", list => {
const player = get.event("player"),
limit = Math.min(get.event("num"), player.countCards("h"));
let cards = list[0][1].slice(),
hs = player.getCards("h");
- if (
- cards.reduce((num, card) => num + get.value(card), 0) >
- player.getCards("h").reduce((num, card) => num + get.value(card), 0)
- ) {
+ if (cards.reduce((num, card) => num + get.value(card), 0) > player.getCards("h").reduce((num, card) => num + get.value(card), 0)) {
cards.sort((a, b) => get.number(a) - get.number(b));
hs.sort((a, b) => get.number(b) - get.number(a));
let cards2 = cards.slice(0, limit),
hs2 = hs.slice(0, limit);
- if (
- hs2.reduce((num, card) => num + get.number(card), 0) >
- cards2.reduce((num, card) => num + get.number(card), 0)
- ) {
+ if (hs2.reduce((num, card) => num + get.number(card), 0) > cards2.reduce((num, card) => num + get.number(card), 0)) {
cards.removeArray(cards2);
hs.removeArray(hs2);
return [cards.concat(hs2), hs.concat(cards2)];
@@ -1219,48 +935,30 @@ game.import("character", function () {
})
.set("num", num);
if (bool) {
- const puts = player.getCards("h", (i) => moved[0].includes(i));
- const gains = cards.filter((i) => moved[1].includes(i));
+ const puts = player.getCards("h", i => moved[0].includes(i));
+ const gains = cards.filter(i => moved[1].includes(i));
if (puts.length && gains.length) {
player.$throw(puts, 1000);
await player.lose(puts, ui.special);
await player.gain(gains, "gain2");
cards = moved[0].slice();
- await player.showCards(
- cards,
- get.translation(player) + "【易城】第一次交换后"
- );
- if (
- cards.reduce((num, card) => num + get.number(card), 0) > sum &&
- player.countCards("h")
- ) {
+ await player.showCards(cards, get.translation(player) + "【易城】第一次交换后");
+ if (cards.reduce((num, card) => num + get.number(card), 0) > sum && player.countCards("h")) {
const {
result: { bool },
- } = await player
- .chooseBool(
- "易城:是否使用全部手牌交换" + get.translation(cards) + "?"
- )
- .set(
- "choice",
- (() => {
- return (
- cards.reduce((num, card) => num + get.value(card), 0) >
- player
- .getCards("h")
- .reduce((num, card) => num + get.value(card), 0)
- );
- })()
- );
+ } = await player.chooseBool("易城:是否使用全部手牌交换" + get.translation(cards) + "?").set(
+ "choice",
+ (() => {
+ return cards.reduce((num, card) => num + get.value(card), 0) > player.getCards("h").reduce((num, card) => num + get.value(card), 0);
+ })()
+ );
if (bool) {
const hs = player.getCards("h");
player.$throw(hs, 1000);
await player.lose(hs, ui.special);
await player.gain(cards, "gain2");
cards = hs.slice();
- await player.showCards(
- cards,
- get.translation(player) + "【易城】第二次交换后"
- );
+ await player.showCards(cards, get.translation(player) + "【易城】第二次交换后");
}
}
}
@@ -1289,7 +987,7 @@ game.import("character", function () {
filter(event, player) {
if (!player.countCards("he") || event.type == "wuxie") return false;
return get
- .inpileVCardList((info) => {
+ .inpileVCardList(info => {
const name = info[2],
type = get.type(name),
infox = get.info({ name: name });
@@ -1297,13 +995,13 @@ game.import("character", function () {
if (type == "trick" && (!infox || !infox.filterTarget)) return false;
return (type != "basic") == (player.storage.olxuanzhu || false);
})
- .some((card) => event.filterCard({ name: card[2], nature: card[3] }, player, event));
+ .some(card => event.filterCard({ name: card[2], nature: card[3] }, player, event));
},
usable: 1,
chooseButton: {
dialog(event, player) {
const list = get
- .inpileVCardList((info) => {
+ .inpileVCardList(info => {
const name = info[2],
type = get.type(name),
infox = get.info({ name: name });
@@ -1311,16 +1009,12 @@ game.import("character", function () {
if (type == "trick" && (!infox || !infox.filterTarget)) return false;
return (type != "basic") == (player.storage.olxuanzhu || false);
})
- .filter((card) =>
- event.filterCard({ name: card[2], nature: card[3] }, player, event)
- );
+ .filter(card => event.filterCard({ name: card[2], nature: card[3] }, player, event));
return ui.create.dialog("玄注", [list, "vcard"]);
},
check(button) {
if (get.event().getParent().type != "phase") return 1;
- return get
- .event("player")
- .getUseValue({ name: button.link[2], nature: button.link[3] });
+ return get.event("player").getUseValue({ name: button.link[2], nature: button.link[3] });
},
backup(links, player) {
let next = {
@@ -1343,7 +1037,7 @@ game.import("character", function () {
event.result.cards = [];
player
.when("useCardAfter")
- .filter((evt) => evt.skill == "olxuanzhu_backup")
+ .filter(evt => evt.skill == "olxuanzhu_backup")
.then(() => {
const card = cards[0];
if (get.type(card) != "equip") player.chooseToDiscard("he", true);
@@ -1391,24 +1085,14 @@ game.import("character", function () {
number: null,
isCard: true,
};
- const str =
- "将一张牌称为“玄”置于武将牌上,然后视为使用" +
- (get.translation(links[0][3]) || "") +
- "【" +
- get.translation(links[0][2]) +
- "】";
+ const str = "将一张牌称为“玄”置于武将牌上,然后视为使用" + (get.translation(links[0][3]) || "") + "【" + get.translation(links[0][2]) + "】";
return str + (get.info("xunshi").isXunshi(viewAs) ? "(仅能指定一个目标)" : "");
},
},
hiddenCard(player, name) {
- if (
- !lib.inpile.includes(name) ||
- player.getStat("skill").olxuanzhu ||
- !player.countCards("he")
- )
- return false;
+ if (!lib.inpile.includes(name) || player.getStat("skill").olxuanzhu || !player.countCards("he")) return false;
return get
- .inpileVCardList((info) => {
+ .inpileVCardList(info => {
const name = info[2],
type = get.type(name),
infox = get.info({ name: name });
@@ -1416,14 +1100,14 @@ game.import("character", function () {
if (type == "trick" && (!infox || !infox.filterTarget)) return false;
return (type != "basic") == (player.storage.olxuanzhu || false);
})
- .map((card) => card[2])
+ .map(card => card[2])
.includes(name);
},
ai: {
order(item, player) {
if (player && get.event().type == "phase") {
let list = get
- .inpileVCardList((info) => {
+ .inpileVCardList(info => {
const name = info[2],
type = get.type(name),
infox = get.info({ name: name });
@@ -1431,24 +1115,20 @@ game.import("character", function () {
if (type == "trick" && (!infox || !infox.filterTarget)) return false;
return (type != "basic") == (player.storage.olxuanzhu || false);
})
- .map((card) => {
+ .map(card => {
return { name: card[2], nature: card[3] };
})
- .filter((card) => player.getUseValue(card, true, true) > 0);
+ .filter(card => player.getUseValue(card, true, true) > 0);
if (!list.length) return 0;
list.sort((a, b) => {
const getNum = function (card) {
if (get.info("xunshi").isXunshi(card))
return get.effect(
game
- .filterPlayer((target) => {
+ .filterPlayer(target => {
return player.canUse(card, target, true, true);
})
- .sort(
- (a, b) =>
- get.effect(b, card, player, player) -
- get.effect(a, card, player, player)
- )[0],
+ .sort((a, b) => get.effect(b, card, player, player) - get.effect(a, card, player, player))[0],
card,
player,
player
@@ -1477,8 +1157,7 @@ game.import("character", function () {
if (cards.length) dialog.addSmall(player.getExpansions("olxuanzhu"));
dialog.addText(
(() => {
- if (storage)
- return "每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。";
+ if (storage) return "每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。";
return "每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用任意基本牌。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。";
})(storage)
);
@@ -1494,13 +1173,7 @@ game.import("character", function () {
audio: 2,
trigger: { player: ["shaDamage", "useCardToEnd"] },
filter(event, player, name) {
- if (
- event.type != "card" ||
- !event.target ||
- !event.target.isIn() ||
- event.target == player
- )
- return false;
+ if (event.type != "card" || !event.target || !event.target.isIn() || event.target == player) return false;
if (name == "shaDamage") return true;
return event.card.name != "sha" && !event.getParent()._neutralized;
},
@@ -1531,8 +1204,7 @@ game.import("character", function () {
ai: {
directHit_ai: true,
skillTagFilter(player, tag, arg) {
- if (!arg || !arg.target || !arg.target.hasSkill("oljiane_neutralized"))
- return false;
+ if (!arg || !arg.target || !arg.target.hasSkill("oljiane_neutralized")) return false;
},
},
},
@@ -1569,21 +1241,7 @@ game.import("character", function () {
audio: 2,
trigger: { player: "useCardToPlayered" },
filter(event, player) {
- if (
- !game.hasPlayer(
- (target) =>
- target != player &&
- !event.targets.includes(target) &&
- lib.filter.targetEnabled2(event.card, player, target) &&
- lib.filter.targetInRange(event.card, player, target)
- )
- )
- return false;
- return (
- get.color(event.card) == "black" &&
- (event.card.name == "sha" || get.type(event.card) == "trick") &&
- event.targets.length == 1
- );
+ return (event.card.name == "sha" || get.type(event.card) == "trick") && event.targets.length == 1;
},
usable: 1,
direct: true,
@@ -1595,63 +1253,41 @@ game.import("character", function () {
} = await player
.chooseTarget(get.prompt("olpijing"), [1, num], (card, player, target) => {
const trigger = get.event().getTrigger();
- return (
- target != player &&
- !trigger.targets.includes(target) &&
- lib.filter.targetEnabled2(trigger.card, player, target) &&
- lib.filter.targetInRange(trigger.card, player, target)
- );
+ if (trigger.targets.includes(target)) return true;
+ return target != player && lib.filter.targetEnabled2(trigger.card, player, target) && lib.filter.targetInRange(trigger.card, player, target);
})
- .set("ai", (target) => {
+ .set("ai", target => {
const player = get.event("player"),
trigger = get.event().getTrigger();
- return (
- get.effect(target, trigger.card, player, player) *
- (target.getStorage("olpijing_effect").includes(player) ? 2 : 1) +
- get.effect(target, { name: "shunshou_copy2" }, player, player)
- );
+ return (trigger.targets.includes(target) ? -1 : 1) * get.effect(target, trigger.card, player, player) * (target.getStorage("olpijing_effect").includes(player) ? 2 : 1) + get.effect(target, { name: "shunshou_copy2" }, player, player);
})
- .set(
- "prompt2",
- "令至多" +
- get.cnNumber(num) +
- "名角色成为" +
- get.translation(trigger.card) +
- "的目标并交给你一张牌"
- );
+ .set("prompt2", "令至多" + get.cnNumber(num) + "名角色成为或取消成为" + get.translation(trigger.card) + "的目标并随机交给你一张牌");
if (bool) {
player.logSkill("olpijing", targets);
- trigger.targets.addArray(targets);
+ for (const i of targets) {
+ trigger.targets[trigger.targets.includes(i) ? "add" : "remove"](i);
+ }
for (const target of targets) {
target.addSkill("olpijing_effect");
target.markAuto("olpijing_effect", [player]);
- await target.chooseToGive(
- player,
- "he",
- true,
- "披荆:交给" + get.translation(player) + "一张牌"
- );
+ const cards = target.getGainableCards(player, "he");
+ if (cards.length) {
+ await target.give(cards.randomGets(1), player);
+ }
}
} else player.storage.counttrigger.olpijing--;
},
mod: {
aiOrder(player, card, num) {
- if (!(card.name == "sha" || get.type(card) == "trick") || get.color(card) != "black")
- return;
+ if (!(card.name == "sha" || get.type(card) == "trick")) return;
const info = get.info(card);
if (
info &&
!info.notarget &&
- (info.toself ||
- info.singleCard ||
- !info.selectTarget ||
- info.selectTarget == 1) &&
- game.countPlayer((target) => {
+ (info.toself || info.singleCard || !info.selectTarget || info.selectTarget == 1) &&
+ game.countPlayer(target => {
if (get.effect(target, card, player, player) <= 0) return false;
- return (
- lib.filter.targetEnabled2(card, player, target) &&
- lib.filter.targetInRange(card, player, target)
- );
+ return lib.filter.targetEnabled2(card, player, target) && lib.filter.targetInRange(card, player, target);
}) > 1
)
return num + 0.01;
@@ -1662,15 +1298,11 @@ game.import("character", function () {
charlotte: true,
onremove: true,
intro: {
- content:
- "使用的下一张基本牌或普通锦囊牌指定唯一目标时,可指定$为额外目标或摸一张牌",
+ content: "使用的下一张基本牌或普通锦囊牌指定唯一目标时,可指定$为额外目标或摸一张牌",
},
trigger: { player: "useCardToPlayer" },
filter(event, player) {
- return (
- (get.type(event.card) == "basic" || get.type(event.card) == "trick") &&
- event.targets.length == 1
- );
+ return (get.type(event.card) == "basic" || get.type(event.card) == "trick") && event.targets.length == 1;
},
forced: true,
popup: false,
@@ -1680,27 +1312,15 @@ game.import("character", function () {
const {
result: { bool, targets },
} = await player
- .chooseTarget(
- "披荆:请选择此牌的额外目标",
- [1, storage.length],
- (card, player, target) => {
- const trigger = get.event().getTrigger();
- return (
- !trigger.targets.includes(target) &&
- get.event("storage").includes(target) &&
- lib.filter.targetEnabled2(trigger.card, player, target) &&
- lib.filter.targetInRange(trigger.card, player, target)
- );
- }
- )
+ .chooseTarget("披荆:请选择此牌的额外目标", [1, storage.length], (card, player, target) => {
+ const trigger = get.event().getTrigger();
+ return !trigger.targets.includes(target) && get.event("storage").includes(target) && lib.filter.targetEnabled2(trigger.card, player, target) && lib.filter.targetInRange(trigger.card, player, target);
+ })
.set("prompt2", "不选择的角色视为你选择摸牌项")
- .set("ai", (target) => {
+ .set("ai", target => {
const player = get.event("player"),
trigger = get.event().getTrigger();
- return (
- get.effect(target, trigger.card, player, player) -
- get.effect(player, { name: "draw" }, player, player)
- );
+ return get.effect(target, trigger.card, player, player) - get.effect(player, { name: "draw" }, player, player);
})
.set("storage", storage);
if (bool) {
@@ -1722,7 +1342,7 @@ game.import("character", function () {
delay: false,
async content(event, trigger, player) {
await player.draw();
- if (player.countCards("h") && game.hasPlayer((target) => target != player)) {
+ if (player.countCards("h") && game.hasPlayer(target => target != player)) {
const {
result: { bool, targets, cards },
} = await player.chooseCardTarget({
@@ -1766,11 +1386,7 @@ game.import("character", function () {
content: "expansion",
markcount: "expansion",
mark(dialog, storage, player) {
- return (
- "共扣置" +
- get.cnNumber(player.getExpansions("olqushi_effect").length) +
- "张“趋”"
- );
+ return "共扣置" + get.cnNumber(player.getExpansions("olqushi_effect").length) + "张“趋”";
},
},
trigger: { player: "phaseJieshuBegin" },
@@ -1782,13 +1398,13 @@ game.import("character", function () {
await player.loseToDiscardpile(cards);
const targets = player
.getStorage("olqushi_effect")
- .filter((i) => {
+ .filter(i => {
return i.isIn();
})
.sortBySeat();
const num = Math.min(
player
- .getHistory("useCard", (evt) => {
+ .getHistory("useCard", evt => {
return evt.targets && evt.targets.length;
})
.reduce((sum, evt) => {
@@ -1798,8 +1414,8 @@ game.import("character", function () {
);
if (
targets.length &&
- player.getHistory("useCard", (evt) => {
- return cards.some((card) => get.type2(card) == get.type2(evt.card));
+ player.getHistory("useCard", evt => {
+ return cards.some(card => get.type2(card) == get.type2(evt.card));
}).length &&
num
) {
@@ -1816,7 +1432,7 @@ game.import("character", function () {
enable: ["chooseToUse", "chooseToRespond"],
filter(event, player) {
if (
- !game.hasPlayer((target) => {
+ !game.hasPlayer(target => {
return get.distance(player, target) == 1 && target.countCards("h");
}) ||
_status.currentPhase === player ||
@@ -1824,45 +1440,28 @@ game.import("character", function () {
)
return false;
return get
- .inpileVCardList((info) => {
+ .inpileVCardList(info => {
const name = info[2];
return get.type(name) == "basic";
})
- .some((card) =>
- event.filterCard({ name: card[2], nature: card[3], isCard: true }, player, event)
- );
+ .some(card => event.filterCard({ name: card[2], nature: card[3], isCard: true }, player, event));
},
chooseButton: {
dialog(event, player) {
const list = get
- .inpileVCardList((info) => {
+ .inpileVCardList(info => {
const name = info[2];
return get.type(name) == "basic";
})
- .filter((card) =>
- event.filterCard(
- { name: card[2], nature: card[3], isCard: true },
- player,
- event
- )
- );
+ .filter(card => event.filterCard({ name: card[2], nature: card[3], isCard: true }, player, event));
return ui.create.dialog("诿解", [list, "vcard"]);
},
filter(button, player) {
- return get
- .event()
- .getParent()
- .filterCard(
- { name: button.link[2], nature: button.link[3], isCard: true },
- player,
- _status.event.getParent()
- );
+ return get.event().getParent().filterCard({ name: button.link[2], nature: button.link[3], isCard: true }, player, _status.event.getParent());
},
check(button) {
if (get.event().getParent().type != "phase") return 1;
- return get
- .event("player")
- .getUseValue({ name: button.link[2], nature: button.link[3], isCard: true });
+ return get.event("player").getUseValue({ name: button.link[2], nature: button.link[3], isCard: true });
},
backup(links, player) {
return {
@@ -1878,39 +1477,19 @@ game.import("character", function () {
const player = map.player;
let stop = false;
const result = yield player
- .chooseTarget(
- "请选择一名距离为1的角色",
- "弃置其一张手牌,若此牌牌名为【" +
- get.translation(event.result.card.name) +
- "】,则视为你使用/打出之",
- (card, player, target) => {
- return (
- get.distance(player, target) == 1 && target.countCards("h")
- );
- }
- )
- .set(
- "ai",
- (target) => 1 - get.sgn(get.attitude(get.event("player"), target))
- );
+ .chooseTarget("请选择一名距离为1的角色", "弃置其一张手牌,若此牌牌名为【" + get.translation(event.result.card.name) + "】,则视为你使用/打出之", (card, player, target) => {
+ return get.distance(player, target) == 1 && target.countCards("h");
+ })
+ .set("ai", target => 1 - get.sgn(get.attitude(get.event("player"), target)));
if (result.bool) {
const target = result.targets[0];
player.logSkill("olweijie", target);
player.tempBanSkill("olweijie", null, false);
const result2 = yield player
.discardPlayerCard(target, "h", true)
- .set(
- "prompt2",
- "若弃置的牌名为【" +
- get.translation(event.result.card.name) +
- "】,则视为你使用/打出之"
- )
- .set("ai", (button) => {
- if (
- button.link.isKnownBy(get.event("player")) &&
- button.link.name == get.event("namex")
- )
- return 114514;
+ .set("prompt2", "若弃置的牌名为【" + get.translation(event.result.card.name) + "】,则视为你使用/打出之")
+ .set("ai", button => {
+ if (button.link.isKnownBy(get.event("player")) && button.link.name == get.event("namex")) return 114514;
return 1 + Math.random();
})
.set("namex", event.result.card.name);
@@ -1935,13 +1514,7 @@ game.import("character", function () {
prompt(links, player) {
const nature = get.translation(links[0][3]) || "";
const name = "【" + get.translation(links[0][2]) + "】";
- return (
- "弃置距离为1的一名角色的一张手牌,若此牌牌名为" +
- name +
- ",则你视为使用" +
- nature +
- name
- );
+ return "弃置距离为1的一名角色的一张手牌,若此牌牌名为" + name + ",则你视为使用" + nature + name;
},
},
ai: {
@@ -1954,9 +1527,8 @@ game.import("character", function () {
},
result: {
player(player) {
- if (_status.event.dying && get.attitude(player, _status.event.dying) <= 0)
- return 0;
- return game.hasPlayer((target) => {
+ if (_status.event.dying && get.attitude(player, _status.event.dying) <= 0) return 0;
+ return game.hasPlayer(target => {
if (get.attitude(player, target) > 0) return false;
return get.distance(player, target) == 1 && target.countCards("h");
})
@@ -1966,15 +1538,10 @@ game.import("character", function () {
},
},
hiddenCard(player, name) {
- if (
- !lib.inpile.includes(name) ||
- _status.currentPhase === player ||
- player.isTempBanned("olweijie")
- )
- return false;
+ if (!lib.inpile.includes(name) || _status.currentPhase === player || player.isTempBanned("olweijie")) return false;
return (
get.type(name) == "basic" &&
- game.hasPlayer((target) => {
+ game.hasPlayer(target => {
return get.distance(player, target) == 1 && target.countCards("h");
})
);
@@ -1991,17 +1558,10 @@ game.import("character", function () {
const storage = player.getStorage("olqingyuan");
if (event.name == "gain" || event.name == "loseAsync") {
if (player.hasSkill("olqingyuan_used")) return false;
- return (
- storage.some((target) => event.getg(target).length) &&
- storage.some((target) =>
- target.hasCard((card) => lib.filter.canBeGained(card, target, player), "h")
- )
- );
+ return storage.some(target => event.getg(target).length) && storage.some(target => target.hasCard(card => lib.filter.canBeGained(card, target, player), "h"));
}
- if (!game.hasPlayer((target) => !storage.includes(target) && target != player))
- return false;
- if (event.name == "damage" && player.getAllHistory("damage").indexOf(event) != 0)
- return false;
+ if (!game.hasPlayer(target => !storage.includes(target) && target != player)) return false;
+ if (event.name == "damage" && player.getAllHistory("damage").indexOf(event) != 0) return false;
return event.name != "phase" || game.phaseNumber == 0;
},
forced: true,
@@ -2009,15 +1569,13 @@ game.import("character", function () {
if (trigger.name == "gain" || trigger.name == "loseAsync") {
const target = player
.getStorage("olqingyuan")
- .filter((target) =>
- target.hasCard((card) => lib.filter.canBeGained(card, target, player), "h")
- )
+ .filter(target => target.hasCard(card => lib.filter.canBeGained(card, target, player), "h"))
.randomGet();
player.line(target);
player.addTempSkill("olqingyuan_used");
player.gain(
target
- .getCards("h", (card) => {
+ .getCards("h", card => {
return lib.filter.canBeGained(card, target, player);
})
.randomGet(),
@@ -2028,25 +1586,17 @@ game.import("character", function () {
const filterTarget = (card, player, target) => {
return target != player && !player.getStorage("olqingyuan").includes(target);
},
- targetsx = game.filterPlayer((current) => filterTarget(null, player, current));
+ targetsx = game.filterPlayer(current => filterTarget(null, player, current));
let result;
if (targetsx.length == 1) result = { bool: true, targets: targetsx };
else
result = await player
.chooseTarget(filterTarget, true)
- .set(
- "prompt2",
- "每回合限一次,当你以此法选择的角色获得牌后,你随机获得其中一名角色的一张手牌"
- )
+ .set("prompt2", "每回合限一次,当你以此法选择的角色获得牌后,你随机获得其中一名角色的一张手牌")
.set("prompt", "请选择【轻缘】的目标")
- .set("ai", (target) => {
+ .set("ai", target => {
const player = get.event("player");
- return get.effect(
- target,
- new lib.element.VCard({ name: "shunshou_copy2" }),
- player,
- player
- );
+ return get.effect(target, new lib.element.VCard({ name: "shunshou_copy2" }), player, player);
})
.forResult();
if (result.bool) {
@@ -2068,22 +1618,12 @@ game.import("character", function () {
locked: false,
enable: "chooseToUse",
filterCard(card) {
- return (
- get.itemtype(card) == "card" &&
- card.hasGaintag("olchongshen") &&
- get.color(card) == "red"
- );
+ return get.itemtype(card) == "card" && card.hasGaintag("olchongshen") && get.color(card) == "red";
},
position: "h",
viewAs: { name: "shan" },
viewAsFilter(player) {
- if (
- !player.countCards(
- "h",
- (card) => card.hasGaintag("olchongshen") && get.color(card) == "red"
- )
- )
- return false;
+ if (!player.countCards("h", card => card.hasGaintag("olchongshen") && get.color(card) == "red")) return false;
},
prompt: "将本轮得到的红色牌当作【闪】使用",
check(card) {
@@ -2093,16 +1633,7 @@ game.import("character", function () {
order: 2,
respondShan: true,
skillTagFilter(player, tag, arg) {
- if (
- arg == "respond" ||
- !player.countCards(
- "h",
- (card) =>
- _status.connectMode ||
- (card.hasGaintag("olchongshen") && get.color(card) == "red")
- )
- )
- return false;
+ if (arg == "respond" || !player.countCards("h", card => _status.connectMode || (card.hasGaintag("olchongshen") && get.color(card) == "red"))) return false;
},
effect: {
target(card, player, target, current) {
@@ -2113,25 +1644,14 @@ game.import("character", function () {
group: "olchongshen_mark",
mod: {
aiValue(player, card, num) {
- if (
- get.name(card) != "shan" &&
- get.itemtype(card) == "card" &&
- (!card.hasGaintag("olchongshen") || get.color(card) != "red")
- )
- return;
- let cards = player.getCards(
- "hs",
- (card) => get.name(card) == "shan" || card.hasGaintag("olchongshen")
- );
- cards.sort(
- (a, b) => (get.name(b) == "shan" ? 1 : 2) - (get.name(a) == "shan" ? 1 : 2)
- );
+ if (get.name(card) != "shan" && get.itemtype(card) == "card" && (!card.hasGaintag("olchongshen") || get.color(card) != "red")) return;
+ let cards = player.getCards("hs", card => get.name(card) == "shan" || card.hasGaintag("olchongshen"));
+ cards.sort((a, b) => (get.name(b) == "shan" ? 1 : 2) - (get.name(a) == "shan" ? 1 : 2));
const geti = () => {
if (cards.includes(card)) return cards.indexOf(card);
return cards.length;
};
- if (get.name(card) == "shan")
- return Math.min(num, [6, 4, 3][Math.min(geti(), 2)]) * 0.6;
+ if (get.name(card) == "shan") return Math.min(num, [6, 4, 3][Math.min(geti(), 2)]) * 0.6;
return Math.max(num, [6.5, 4, 3][Math.min(geti(), 2)]);
},
aiUseful() {
@@ -2155,7 +1675,7 @@ game.import("character", function () {
}
if (history[i].isRound) break;
}
- cards = cards.filter((i) => hs.includes(i));
+ cards = cards.filter(i => hs.includes(i));
if (cards.length) player.addGaintag(cards, "olchongshen");
}
},
@@ -2183,7 +1703,7 @@ game.import("character", function () {
audio: 2,
enable: "phaseUse",
filter(event, player) {
- return game.hasPlayer((target) => lib.skill.olshandao.filterTarget(null, player, target));
+ return game.hasPlayer(target => lib.skill.olshandao.filterTarget(null, player, target));
},
filterTarget(card, player, target) {
return target.countCards("he");
@@ -2195,7 +1715,7 @@ game.import("character", function () {
async content(event, trigger, player) {
const wugu = new lib.element.VCard({ name: "wugu" });
const wanjian = new lib.element.VCard({ name: "wanjian" });
- const targets = game.filterPlayer((target) => {
+ const targets = game.filterPlayer(target => {
if (target == player) return false;
return !event.targets.includes(target) && player.canUse(wanjian, target, false);
}),
@@ -2205,36 +1725,27 @@ game.import("character", function () {
const name = target == player ? "你" : get.translation(target);
if (target.countCards("h")) {
dialog.add('' + name + "的手牌区
");
- if (player.hasSkillTag("viewHandcard", null, target, true) || player == target)
- dialog.push(target.getCards("h"));
+ if (player.hasSkillTag("viewHandcard", null, target, true) || player == target) dialog.push(target.getCards("h"));
else dialog.push([target.getCards("h"), "blank"]);
}
- if (target.countCards("e"))
- dialog.addArray([
- '' + name + "的装备区
",
- target.getCards("e"),
- ]);
+ if (target.countCards("e")) dialog.addArray(['' + name + "的装备区
", target.getCards("e")]);
}
const {
result: { bool, links },
} = await player
.chooseButton(dialog, event.targets.length, true)
- .set("filterButton", (button) => {
- return !ui.selected.buttons.some(
- (but) => get.owner(but.link) == get.owner(button.link)
- );
+ .set("filterButton", button => {
+ return !ui.selected.buttons.some(but => get.owner(but.link) == get.owner(button.link));
})
- .set("ai", (button) => 1 / (get.value(button.link, get.owner(button.link)) || 0.5));
+ .set("ai", button => 1 / (get.value(button.link, get.owner(button.link)) || 0.5));
if (bool) {
- const cards = links.sort(
- (a, b) => targetx.indexOf(get.owner(a)) - targetx.indexOf(get.owner(b))
- );
+ const cards = links.sort((a, b) => targetx.indexOf(get.owner(a)) - targetx.indexOf(get.owner(b)));
for (const card of cards) {
const target = get.owner(card);
target.$throw(1, 1000);
await target.lose([card], ui.cardPile, "insert");
}
- const targety = targetx.filter((target) => player.canUse(wugu, target, false));
+ const targety = targetx.filter(target => player.canUse(wugu, target, false));
if (targety.length) await player.useCard(wugu, targety, false);
if (targets.length) await player.useCard(wanjian, targets, false);
}
@@ -2259,36 +1770,16 @@ game.import("character", function () {
for (let current of [player, target]) {
let list1 = list.slice(),
choiceList1 = choiceList.slice();
- list1 = list1.filter((control) => {
+ list1 = list1.filter(control => {
if (control == "无法选择") return false;
- if (control == "重铸")
- return current.countCards("he", (card) => current.canRecast(card));
- if (control == "出杀")
- return current.countCards(
- "he",
- (card) => card.name == "sha" && current.hasUseTarget(card)
- );
- if (control == "弃牌")
- return (
- current.countCards("he", (card) =>
- lib.filter.cardDiscardable(card, current)
- ) > 1
- );
+ if (control == "重铸") return current.countCards("he", card => current.canRecast(card));
+ if (control == "出杀") return current.countCards("he", card => card.name == "sha" && current.hasUseTarget(card));
+ if (control == "弃牌") return current.countCards("he", card => lib.filter.cardDiscardable(card, current)) > 1;
});
- choiceList1 = choiceList.filter((control) => {
- if (choiceList.indexOf(control) == 0)
- return current.countCards("he", (card) => current.canRecast(card));
- if (choiceList.indexOf(control) == 1)
- return current.countCards(
- "he",
- (card) => card.name == "sha" && current.hasUseTarget(card)
- );
- if (choiceList.indexOf(control) == 2)
- return (
- current.countCards("he", (card) =>
- lib.filter.cardDiscardable(card, current)
- ) > 1
- );
+ choiceList1 = choiceList.filter(control => {
+ if (choiceList.indexOf(control) == 0) return current.countCards("he", card => current.canRecast(card));
+ if (choiceList.indexOf(control) == 1) return current.countCards("he", card => card.name == "sha" && current.hasUseTarget(card));
+ if (choiceList.indexOf(control) == 2) return current.countCards("he", card => lib.filter.cardDiscardable(card, current)) > 1;
});
if (list1.length) {
if (list1.length == 1) result.push(list.indexOf(list1[0]));
@@ -2298,14 +1789,7 @@ game.import("character", function () {
.set("ai", () => {
const current = _status.event.player;
const controls = _status.event.controls.slice();
- if (
- controls.includes("出杀") &&
- current.countCards(
- "hs",
- (card) => card.name == "sha" && current.hasValueTarget(card)
- )
- )
- return "出杀";
+ if (controls.includes("出杀") && current.countCards("hs", card => card.name == "sha" && current.hasValueTarget(card))) return "出杀";
if (controls.includes("重铸")) return "重铸";
return "弃牌";
})
@@ -2319,12 +1803,7 @@ game.import("character", function () {
for (let current of [player, target]) {
switch (list[result[current == player ? 0 : 1]]) {
case "重铸":
- let result2 = yield current.chooseCard(
- "he",
- "请重铸一张牌",
- (card, player) => player.canRecast(card),
- true
- );
+ let result2 = yield current.chooseCard("he", "请重铸一张牌", (card, player) => player.canRecast(card), true);
if (result2.bool) current.recast(result2.cards);
break;
case "出杀":
@@ -2354,15 +1833,11 @@ game.import("character", function () {
target: function (player, target) {
const att = get.attitude(player, target);
if (
- target.countCards("hs", (card) => {
+ target.countCards("hs", card => {
return (
card.name == "sha" &&
- game.hasPlayer((current) => {
- return (
- target.canUse(card, current) &&
- get.effect(current, card, target, target) > 0 &&
- get.effect(current, card, target, player) > 0
- );
+ game.hasPlayer(current => {
+ return target.canUse(card, current) && get.effect(current, card, target, target) > 0 && get.effect(current, card, target, player) > 0;
})
);
})
@@ -2381,14 +1856,13 @@ game.import("character", function () {
trigger: { player: "phaseJieshuBegin" },
filter: function (event, player) {
return (
- player.getHistory("lose", (evt) => {
+ player.getHistory("lose", evt => {
if (evt.type == "discard") {
var evtx = evt.getl(player);
return evtx && evtx.cards2.length == 2;
}
return evt.getParent(2).name == "recast";
- }).length ||
- player.getHistory("useCard", (evt) => evt.card.name == "sha").length
+ }).length || player.getHistory("useCard", evt => evt.card.name == "sha").length
);
},
forced: true,
@@ -2396,11 +1870,10 @@ game.import("character", function () {
content: function* (event, map) {
let num = 0,
player = map.player;
- if (player.getHistory("lose", (evt) => evt.getParent(2).name == "recast").length)
- num++;
- if (player.getHistory("useCard", (evt) => evt.card.name == "sha").length) num++;
+ if (player.getHistory("lose", evt => evt.getParent(2).name == "recast").length) num++;
+ if (player.getHistory("useCard", evt => evt.card.name == "sha").length) num++;
if (
- player.getHistory("lose", (evt) => {
+ player.getHistory("lose", evt => {
if (evt.type == "discard") {
var evtx = evt.getl(player);
return evtx && evtx.cards2.length == 2;
@@ -2408,22 +1881,11 @@ game.import("character", function () {
}).length
)
num++;
- if (num && player.countCards("he", (card) => player.canRecast(card))) {
- let result = yield player.chooseCard(
- "he",
- "请重铸一张牌",
- (card, player) => player.canRecast(card),
- true
- );
+ if (num && player.countCards("he", card => player.canRecast(card))) {
+ let result = yield player.chooseCard("he", "请重铸一张牌", (card, player) => player.canRecast(card), true);
if (result.bool) yield player.recast(result.cards);
}
- if (
- num > 1 &&
- player.countCards(
- "he",
- (card) => card.name == "sha" && player.hasUseTarget(card)
- )
- ) {
+ if (num > 1 && player.countCards("he", card => card.name == "sha" && player.hasUseTarget(card))) {
yield player.chooseToUse({
prompt: "请使用一张【杀】",
filterCard: function (card, player) {
@@ -2436,11 +1898,7 @@ game.import("character", function () {
},
});
}
- if (
- num > 2 &&
- player.countCards("he", (card) => lib.filter.cardDiscardable(card, player))
- )
- yield player.chooseToDiscard("he", 2, true);
+ if (num > 2 && player.countCards("he", card => lib.filter.cardDiscardable(card, player))) yield player.chooseToDiscard("he", 2, true);
},
},
},
@@ -2456,14 +1914,8 @@ game.import("character", function () {
equipSkill: true,
trigger: { player: ["shaMiss", "eventNeutralized"] },
filter: function (event, player) {
- if (
- !player.hasEmptySlot(1) ||
- !lib.card.guanshi ||
- player.hasSkillTag("unequip_equip1")
- )
- return false;
- if (event.type != "card" || event.card.name != "sha" || !event.target.isIn())
- return false;
+ if (!player.hasEmptySlot(1) || !lib.card.guanshi || player.hasSkillTag("unequip_equip1")) return false;
+ if (event.type != "card" || event.card.name != "sha" || !event.target.isIn()) return false;
return player.countCards("he") >= 2;
},
direct: true,
@@ -2471,18 +1923,12 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseToDiscard(
- get.prompt("olzhanjin_guanshi"),
- "弃置两张牌,令" + get.translation(trigger.card) + "强制命中",
- 2,
- "he"
- )
+ .chooseToDiscard(get.prompt("olzhanjin_guanshi"), "弃置两张牌,令" + get.translation(trigger.card) + "强制命中", 2, "he")
.set("ai", function (card) {
var evt = _status.event.getTrigger();
if (get.attitude(evt.player, evt.target) < 0) {
if (player.needsToDiscard()) return 15 - get.value(card);
- if (evt.baseDamage + evt.extraDamage >= Math.min(2, evt.target.hp))
- return 8 - get.value(card);
+ if (evt.baseDamage + evt.extraDamage >= Math.min(2, evt.target.hp)) return 8 - get.value(card);
return 5 - get.value(card);
}
return -1;
@@ -2500,31 +1946,20 @@ game.import("character", function () {
},
mod: {
attackRange: function (player, num) {
- if (lib.card.guanshi && player.hasEmptySlot(1))
- return num - lib.card.guanshi.distance.attackFrom;
+ if (lib.card.guanshi && player.hasEmptySlot(1)) return num - lib.card.guanshi.distance.attackFrom;
},
},
ai: {
directHit_ai: true,
skillTagFilter: function (player, tag, arg) {
- if (
- player._olzhanjin_guanshi_temp ||
- !player.hasEmptySlot(1) ||
- !lib.card.guanshi ||
- player.hasSkillTag("unequip_equip1")
- )
- return;
+ if (player._olzhanjin_guanshi_temp || !player.hasEmptySlot(1) || !lib.card.guanshi || player.hasSkillTag("unequip_equip1")) return;
player._olzhanjin_guanshi_temp = true;
var bool =
get.attitude(player, arg.target) < 0 &&
arg.card &&
arg.card.name == "sha" &&
- player.countCards("he", (card) => {
- return (
- card != arg.card &&
- (!arg.card.cards || !arg.card.cards.includes(card)) &&
- get.value(card) < 5
- );
+ player.countCards("he", card => {
+ return card != arg.card && (!arg.card.cards || !arg.card.cards.includes(card)) && get.value(card) < 5;
}) > 1;
delete player._olzhanjin_guanshi_temp;
return bool;
@@ -2533,8 +1968,7 @@ game.import("character", function () {
target: function (card, player, target) {
if (player.hasSkillTag("unequip_equip1")) return;
if (player == target && get.subtype(card) == "equip1") {
- if (get.equipValue(card) <= get.equipValue({ name: "guanshi" }))
- return 0;
+ if (get.equipValue(card) <= get.equipValue({ name: "guanshi" })) return 0;
}
},
},
@@ -2548,7 +1982,7 @@ game.import("character", function () {
trigger: { global: "phaseBegin" },
filter(event, player) {
if (!player.countCards("he")) return false;
- return !game.hasPlayer((current) => {
+ return !game.hasPlayer(current => {
var history = current.actionHistory;
for (var num = history.length - 1; num >= 0; num--) {
if (history[num].isRound) break;
@@ -2564,9 +1998,7 @@ game.import("character", function () {
draws = [];
var {
result: { bool, targets },
- } = await player
- .chooseTarget(get.prompt2("olgongjie"), [1, num], lib.filter.notMe)
- .set("ai", (target) => get.attitude(_status.event.player, target));
+ } = await player.chooseTarget(get.prompt2("olgongjie"), [1, num], lib.filter.notMe).set("ai", target => get.attitude(_status.event.player, target));
if (!bool) return;
targets = targets.sortBySeat();
player.logSkill("olgongjie", targets);
@@ -2583,13 +2015,7 @@ game.import("character", function () {
audio: 2,
trigger: {
player: "loseAfter",
- global: [
- "gainAfter",
- "equipAfter",
- "addJudgeAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["gainAfter", "equipAfter", "addJudgeAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
filter(event, player) {
if (!_status.currentPhase || !_status.currentPhase.isIn()) return false;
@@ -2597,13 +2023,10 @@ game.import("character", function () {
var evt = event.getl(player);
if (evt && evt.player == player && evt.hs && evt.hs.length > 0) return true;
if (event.getg)
- return game.hasPlayer((current) => {
+ return game.hasPlayer(current => {
var cards = event.getg(current);
if (!cards.length) return false;
- return (
- current.countCards("h") >= player.countCards("h") &&
- current.countCards("h") - cards.length < player.countCards("h")
- );
+ return current.countCards("h") >= player.countCards("h") && current.countCards("h") - cards.length < player.countCards("h");
});
return false;
},
@@ -2611,12 +2034,9 @@ game.import("character", function () {
var target = _status.currentPhase;
var cards = target.getCards("h");
if (target.isPhaseUsing()) {
- var cardx = cards.filter((card) => get.name(card) == "sha");
+ var cardx = cards.filter(card => get.name(card) == "sha");
cardx.sort((a, b) => target.getUseValue(b) - target.getUseValue(a));
- cardx = cardx.slice(
- Math.min(cardx.length, target.getCardUsable("sha")),
- cardx.length
- );
+ cardx = cardx.slice(Math.min(cardx.length, target.getCardUsable("sha")), cardx.length);
cards.removeArray(cardx);
}
return cards.length - player.countCards("h") > 0;
@@ -2631,8 +2051,7 @@ game.import("character", function () {
var num = target.countCards("h") - player.countCards("h");
if (num) {
if (num > 0) {
- if (player.countCards("h") < 5)
- player.draw(Math.min(5 - player.countCards("h"), num));
+ if (player.countCards("h") < 5) player.draw(Math.min(5 - player.countCards("h"), num));
event.finish();
} else player.chooseToDiscard(-num, "h", true);
} else event.finish();
@@ -2650,7 +2069,7 @@ game.import("character", function () {
audio: 2,
trigger: { player: "dying" },
filter(event, player) {
- return player.countCards("he") && game.hasPlayer((target) => target != player);
+ return player.countCards("he") && game.hasPlayer(target => target != player);
},
async cost(event, trigger, player) {
event.result = await player
@@ -2667,17 +2086,11 @@ game.import("character", function () {
if (!ui.selected.targets.length) return 0;
const target = ui.selected.targets[0];
if (
- player.hasAllHistory("useSkill", (evt) => {
- return (
- evt.skill == "olgongjie" &&
- (evt.targets || [evt.target]).includes(target)
- );
+ player.hasAllHistory("useSkill", evt => {
+ return evt.skill == "olgongjie" && (evt.targets || [evt.target]).includes(target);
}) &&
- player.hasAllHistory("useSkill", (evt) => {
- return (
- evt.skill == "olxiangxv" &&
- (evt.targets || [evt.target]).includes(target)
- );
+ player.hasAllHistory("useSkill", evt => {
+ return evt.skill == "olxiangxv" && (evt.targets || [evt.target]).includes(target);
})
) {
if (get.attitude(player, target) > 0) return 1;
@@ -2685,32 +2098,21 @@ game.import("character", function () {
if (ui.selected.cards.length + player.hp >= player.maxHp) return 0;
return 20 - get.value(card);
}
- if (
- get.attitude(player, target) > 0 &&
- !player.countCards("he", (cardx) => player.canSaveCard(cardx, player))
- )
- return 1;
+ if (get.attitude(player, target) > 0 && !player.countCards("he", cardx => player.canSaveCard(cardx, player))) return 1;
return 0;
},
ai2(target) {
const player = get.event("player");
const goon =
- player.hasAllHistory("useSkill", (evt) => {
- return (
- evt.skill == "olgongjie" &&
- (evt.targets || [evt.target]).includes(target)
- );
+ player.hasAllHistory("useSkill", evt => {
+ return evt.skill == "olgongjie" && (evt.targets || [evt.target]).includes(target);
}) &&
- player.hasAllHistory("useSkill", (evt) => {
- return (
- evt.skill == "olxiangxv" &&
- (evt.targets || [evt.target]).includes(target)
- );
+ player.hasAllHistory("useSkill", evt => {
+ return evt.skill == "olxiangxv" && (evt.targets || [evt.target]).includes(target);
}),
att = get.attitude(player, target);
if (goon) return 5 * att;
- if (!!player.countCards("he", (cardx) => player.canSaveCard(cardx, player)))
- return att;
+ if (!!player.countCards("he", cardx => player.canSaveCard(cardx, player))) return att;
return 0;
},
})
@@ -2725,10 +2127,10 @@ game.import("character", function () {
player.awakenSkill("olxiangzuo");
await player.give(cards, target);
if (
- player.hasAllHistory("useSkill", (evt) => {
+ player.hasAllHistory("useSkill", evt => {
return evt.skill == "olgongjie" && evt.targets.includes(target);
}) &&
- player.hasAllHistory("useSkill", (evt) => {
+ player.hasAllHistory("useSkill", evt => {
return evt.skill == "olxiangxv" && evt.targets.includes(target);
})
)
@@ -2740,7 +2142,7 @@ game.import("character", function () {
trigger: { player: "phaseZhunbeiBegin" },
filter: function (event, player) {
return (
- player.countCards("he", (card) => {
+ player.countCards("he", card => {
if (_status.connectMode && get.position(card) == "h") return true;
return lib.filter.cardDiscardable(card, player);
}) >= 3 && player.countCards("j")
@@ -2799,25 +2201,13 @@ game.import("character", function () {
var evt = history[history.length - 1];
event.evt = evt;
player
- .chooseTarget(
- get.prompt("ollianju"),
- "令一名角色获得" +
- get.translation(evt.cards.filterInD("d")) +
- "并记录" +
- get.translation(evt.card.name),
- lib.filter.notMe
- )
- .set("ai", (target) => {
+ .chooseTarget(get.prompt("ollianju"), "令一名角色获得" + get.translation(evt.cards.filterInD("d")) + "并记录" + get.translation(evt.card.name), lib.filter.notMe)
+ .set("ai", target => {
var player = _status.event.player,
att = get.attitude(player, target);
var cards = _status.event.cards;
- if (
- cards.filter((card) => get.name(card, false) == "du").length >=
- Math.ceil(cards.length / 2)
- )
- att *= -1;
- if (target.skipList.includes("phaseUse") || target.hasJudge("lebu"))
- return att / 20;
+ if (cards.filter(card => get.name(card, false) == "du").length >= Math.ceil(cards.length / 2)) att *= -1;
+ if (target.skipList.includes("phaseUse") || target.hasJudge("lebu")) return att / 20;
return att;
})
.set("cards", evt.cards.filterInD("d"));
@@ -2830,8 +2220,7 @@ game.import("character", function () {
player.addSkill("ollianju_effect");
player.storage.ollianju = evt.card.name;
player.markSkill("ollianju");
- if (!player.storage.ollianju_effect[target.playerid])
- player.storage.ollianju_effect[target.playerid] = [];
+ if (!player.storage.ollianju_effect[target.playerid]) player.storage.ollianju_effect[target.playerid] = [];
player.storage.ollianju_effect[target.playerid].add(evt.card.name);
}
},
@@ -2841,17 +2230,11 @@ game.import("character", function () {
var str = "当前最后一次记录牌名:" + get.translation(storage);
if (player.storage.ollianju_effect) {
for (var i in player.storage.ollianju_effect) {
- var target = game.findPlayer((target) => target.playerid == i);
+ var target = game.findPlayer(target => target.playerid == i);
if (!i) continue;
str += "
";
- str +=
- get.translation(target) +
- "的下个结束阶段,其可令你获得其本回合使用的最后一张牌对应的所有位于弃牌堆的实体牌";
- str +=
- ",然后若此牌名为" +
- get.translation(player.storage.ollianju_effect[i]) +
- ",则你失去1点体力,否则你可以视为使用" +
- get.translation(player.storage.ollianju_effect[i]);
+ str += get.translation(target) + "的下个结束阶段,其可令你获得其本回合使用的最后一张牌对应的所有位于弃牌堆的实体牌";
+ str += ",然后若此牌名为" + get.translation(player.storage.ollianju_effect[i]) + ",则你失去1点体力,否则你可以视为使用" + get.translation(player.storage.ollianju_effect[i]);
}
}
return str;
@@ -2870,37 +2253,15 @@ game.import("character", function () {
direct: true,
content: function () {
"step 0";
- if (trigger.name == "phaseJieshu")
- event.list = player.storage.ollianju_effect[trigger.player.playerid];
+ if (trigger.name == "phaseJieshu") event.list = player.storage.ollianju_effect[trigger.player.playerid];
delete player.storage.ollianju_effect[trigger.player.playerid];
var history = trigger.player.getHistory("useCard");
var evt = history[history.length - 1];
event.evt = evt;
- if (
- trigger.name == "die" ||
- !history.length ||
- !evt.cards ||
- !evt.cards.filterInD("d").length
- )
- event.finish();
+ if (trigger.name == "die" || !history.length || !evt.cards || !evt.cards.filterInD("d").length) event.finish();
"step 1";
var evt = event.evt;
- trigger.player
- .chooseBool(
- get.prompt("ollianju", player),
- "令" +
- get.translation(player) +
- "获得" +
- get.translation(evt.cards.filterInD("d")) +
- (event.list.includes(evt.card.name)
- ? ",然后" + get.translation(player) + "失去1点体力"
- : "")
- )
- .set(
- "choice",
- get.attitude(trigger.player, player) > 0 &&
- (!event.list.includes(evt.card.name) || player.getHp() > 1)
- );
+ trigger.player.chooseBool(get.prompt("ollianju", player), "令" + get.translation(player) + "获得" + get.translation(evt.cards.filterInD("d")) + (event.list.includes(evt.card.name) ? ",然后" + get.translation(player) + "失去1点体力" : "")).set("choice", get.attitude(trigger.player, player) > 0 && (!event.list.includes(evt.card.name) || player.getHp() > 1));
"step 2";
if (result.bool) {
var evt = event.evt,
@@ -2924,26 +2285,13 @@ game.import("character", function () {
audio: 2,
trigger: {
player: ["loseAfter", "gainAfter"],
- global: [
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
filter: function (event, player) {
var name = player.storage.ollianju;
if (!name) return false;
- if (event.getg)
- return (
- event.getg(player).some((card) => card.name == name) &&
- !player.hasSkill("olsilv_gain")
- );
- return (
- event.getl(player).cards2.some((card) => card.name == name) &&
- !player.hasSkill("olsilv_lose")
- );
+ if (event.getg) return event.getg(player).some(card => card.name == name) && !player.hasSkill("olsilv_gain");
+ return event.getl(player).cards2.some(card => card.name == name) && !player.hasSkill("olsilv_lose");
},
forced: true,
content: function () {
@@ -2952,8 +2300,8 @@ game.import("character", function () {
if (!trigger.visible) {
var cards,
name = player.storage.ollianju;
- if (trigger.getg) cards = trigger.getg(player).filter((card) => card.name == name);
- else cards = trigger.getl(player).cards2.filter((card) => card.name == name);
+ if (trigger.getg) cards = trigger.getg(player).filter(card => card.name == name);
+ else cards = trigger.getl(player).cards2.filter(card => card.name == name);
if (cards.length) player.showCards(cards, get.translation(player) + "发动了【思闾】");
}
"step 1";
@@ -2991,16 +2339,12 @@ game.import("character", function () {
position: "h",
ai1: function (card) {
if (card.name == "du") return 10;
- else if (ui.selected.cards.length && ui.selected.cards[0].name == "du")
- return 0;
+ else if (ui.selected.cards.length && ui.selected.cards[0].name == "du") return 0;
var player = _status.event.player;
if (
ui.selected.cards.length > 4 ||
!game.hasPlayer(function (current) {
- return (
- get.attitude(player, current) > 0 &&
- !current.hasSkillTag("nogain")
- );
+ return get.attitude(player, current) > 0 && !current.hasSkillTag("nogain");
})
)
return 0;
@@ -3021,8 +2365,7 @@ game.import("character", function () {
}
"step 3";
var num = player.countCards("h");
- if (num > 0)
- player.chooseToDiscard("h", [1, num], "抚悼:弃置任意张手牌,然后记录手牌数");
+ if (num > 0) player.chooseToDiscard("h", [1, num], "抚悼:弃置任意张手牌,然后记录手牌数");
"step 4";
player.storage.olfudao = player.countCards("h");
player.markSkill("olfudao");
@@ -3037,9 +2380,7 @@ game.import("character", function () {
trigger: { global: "phaseEnd" },
filter: function (event, player) {
if (typeof player.storage.olfudao != "number") return false;
- return (
- event.player.countCards("h") == player.storage.olfudao && event.player.isIn()
- );
+ return event.player.countCards("h") == player.storage.olfudao && event.player.isIn();
},
check: function (event, player) {
return get.attitude(player, event.player) >= 0;
@@ -3058,8 +2399,7 @@ game.import("character", function () {
audio: 2,
trigger: { player: ["damageEnd", "useCard", "respond"] },
filter: function (event, player) {
- if (event.name == "damage")
- return event.source && event.source.isIn() && event.source != player;
+ if (event.name == "damage") return event.source && event.source.isIn() && event.source != player;
return Array.isArray(event.respondTo) && event.respondTo[0] != player;
},
logTarget: function (event, player) {
@@ -3074,10 +2414,7 @@ game.import("character", function () {
event.target = target;
player
.chooseControl()
- .set("choiceList", [
- "摸一张牌,然后交给" + str + "一张牌",
- "令" + str + "摸一张牌,然后" + str + "弃置两张牌",
- ])
+ .set("choiceList", ["摸一张牌,然后交给" + str + "一张牌", "令" + str + "摸一张牌,然后" + str + "弃置两张牌"])
.set("ai", () => (_status.event.att > 0 ? 0 : 1))
.set("att", get.attitude(player, target));
"step 1";
@@ -3099,7 +2436,7 @@ game.import("character", function () {
return (
(_status.connectMode && player.countCards("hes")) ||
(!_status.connectMode &&
- player.hasCard((card) => {
+ player.hasCard(card => {
return get.color(card) == "black";
}, "hes"))
);
@@ -3110,16 +2447,7 @@ game.import("character", function () {
var player = map.player,
trigger = map.trigger;
var next = player.chooseToUse();
- next.set(
- "openskilldialog",
- `###${get.prompt("olsuji")}###将一张黑色牌当【杀】使用${
- player == trigger.player
- ? ""
- : `。若${get.translation(
- trigger.player
- )}受到了此【杀】的伤害,你获得其一张牌。`
- }`
- );
+ next.set("openskilldialog", `###${get.prompt("olsuji")}###将一张黑色牌当【杀】使用${player == trigger.player ? "" : `。若${get.translation(trigger.player)}受到了此【杀】的伤害,你获得其一张牌。`}`);
next.set("norestore", true);
next.set("_backupevent", "olsuji_backup");
next.set("addCount", false);
@@ -3136,7 +2464,7 @@ game.import("character", function () {
trigger = map.trigger;
if (
trigger.player.isIn() &&
- trigger.player.hasHistory("damage", (evt) => {
+ trigger.player.hasHistory("damage", evt => {
return evt.card && evt.card.storage && evt.card.storage.olsuji;
}) &&
trigger.player.countGainableCards(player, "he")
@@ -3170,11 +2498,7 @@ game.import("character", function () {
trigger: { player: "useCardToPlayer" },
filter: function (event, player) {
if (event.card.name != "sha") return false;
- return (
- event.isFirstTarget &&
- event.targets.length == 1 &&
- player.getStorage("ollangdao").length < 3
- );
+ return event.isFirstTarget && event.targets.length == 1 && player.getStorage("ollangdao").length < 3;
},
logTarget: "target",
onremove: true,
@@ -3182,21 +2506,14 @@ game.import("character", function () {
if (get.attitude(player, event.target) > 0) {
if (
player.getStorage("ollangdao").includes(1) &&
- game.hasPlayer((current) => {
- return (
- player.canUse(event.card, current) &&
- get.effect(current, event.card, player, player) > 0
- );
+ game.hasPlayer(current => {
+ return player.canUse(event.card, current) && get.effect(current, event.card, player, player) > 0;
})
)
return event.getRand() < 0.5;
return false;
}
- return (
- event.target.getHp() <= 2 ||
- player.getDamagedHp() > 1 ||
- !player.hasCard({ color: "black" }, "hes")
- );
+ return event.target.getHp() <= 2 || player.getDamagedHp() > 1 || !player.hasCard({ color: "black" }, "hes");
},
content: function* (event, map) {
var player = map.player,
@@ -3213,9 +2530,7 @@ game.import("character", function () {
var sendback = function (result, player) {
if (!result) result = {};
if (typeof result.index !== "number" || result.index < 0) {
- result.index = [0, 1, 2].find(
- (i) => !event.player.getStorage("ollangdao").includes(i)
- );
+ result.index = [0, 1, 2].find(i => !event.player.getStorage("ollangdao").includes(i));
}
results.push([player, result]);
};
@@ -3252,24 +2567,16 @@ game.import("character", function () {
var index = list[0];
if (get.attitude(target, player) < 0) {
if (
- !game.hasPlayer((current) => {
- return (
- !trigger.targets.includes(current) &&
- player.canUse(trigger.card, current) &&
- get.effect(current, trigger.card, player, target) < 0
- );
+ !game.hasPlayer(current => {
+ return !trigger.targets.includes(current) && player.canUse(trigger.card, current) && get.effect(current, trigger.card, player, target) < 0;
})
)
list.removeArray([0, 2]);
if (player.getStorage("ollangdao").includes(2)) list.remove(0);
} else {
if (
- !game.hasPlayer((current) => {
- return (
- !trigger.targets.includes(current) &&
- player.canUse(trigger.card, current) &&
- get.effect(current, trigger.card, player, target) > 0
- );
+ !game.hasPlayer(current => {
+ return !trigger.targets.includes(current) && player.canUse(trigger.card, current) && get.effect(current, trigger.card, player, target) > 0;
})
)
list.remove(1);
@@ -3290,24 +2597,16 @@ game.import("character", function () {
var index = list[0];
if (get.attitude(target, player) < 0) {
if (
- !game.hasPlayer((current) => {
- return (
- !trigger.targets.includes(current) &&
- player.canUse(trigger.card, current) &&
- get.effect(current, trigger.card, player, target) < 0
- );
+ !game.hasPlayer(current => {
+ return !trigger.targets.includes(current) && player.canUse(trigger.card, current) && get.effect(current, trigger.card, player, target) < 0;
})
)
list.removeArray([0, 2]);
if (player.getStorage("ollangdao").includes(2)) list.remove(0);
} else {
if (
- !game.hasPlayer((current) => {
- return (
- !trigger.targets.includes(current) &&
- player.canUse(trigger.card, current) &&
- get.effect(current, trigger.card, player, target) > 0
- );
+ !game.hasPlayer(current => {
+ return !trigger.targets.includes(current) && player.canUse(trigger.card, current) && get.effect(current, trigger.card, player, target) > 0;
})
)
list.remove(1);
@@ -3332,9 +2631,7 @@ game.import("character", function () {
} else {
if (!result) result = {};
if (typeof result.index !== "number" || result.index < 0) {
- result.index = [0, 1, 2].find(
- (i) => !event.player.getStorage("ollangdao").includes(i)
- );
+ result.index = [0, 1, 2].find(i => !event.player.getStorage("ollangdao").includes(i));
}
results.push([player, result]);
}
@@ -3360,10 +2657,10 @@ game.import("character", function () {
})
.then(() => {
var card = get.info(event.name).card;
- var dieEvts = game.getGlobalHistory("everything", (evt) => evt.name == "die");
+ var dieEvts = game.getGlobalHistory("everything", evt => evt.name == "die");
if (
trigger.card == card &&
- !game.hasPlayer2((current) => {
+ !game.hasPlayer2(current => {
for (var evt of dieEvts) {
if (evt.player != current) continue;
var evtx = evt.getParent(2);
@@ -3374,7 +2671,7 @@ game.import("character", function () {
}, true)
) {
var toRemove = card.storage.ollangdao_remove;
- var list = [0, 1, 2].filter((i) => (toRemove >> i) & 1);
+ var list = [0, 1, 2].filter(i => (toRemove >> i) & 1);
if (!list.length) return;
player.markAuto("ollangdao", list);
game.log(
@@ -3384,7 +2681,7 @@ game.import("character", function () {
"的",
"#y选项" +
list
- .map((i) => {
+ .map(i => {
return get.cnNumber(i + 1, true);
})
.join("、")
@@ -3420,19 +2717,11 @@ game.import("character", function () {
return;
}
result = yield player
- .chooseTarget(
- `狼蹈:为${get.translation(trigger.card)}额外指定至多${get.cnNumber(
- extraTargetNum
- )}个目标`,
- (card, player, target) => {
- return (
- !_status.event.targets.includes(target) &&
- player.canUse(_status.event.card, target)
- );
- }
- )
+ .chooseTarget(`狼蹈:为${get.translation(trigger.card)}额外指定至多${get.cnNumber(extraTargetNum)}个目标`, (card, player, target) => {
+ return !_status.event.targets.includes(target) && player.canUse(_status.event.card, target);
+ })
.set("targets", trigger.targets)
- .set("ai", (target) => {
+ .set("ai", target => {
var player = _status.event.player;
return get.effect(target, _status.event.card, player, player);
})
@@ -3449,15 +2738,10 @@ game.import("character", function () {
"step 0";
var name = get.translation(card);
var choices = [],
- choiceList = [
- `令${name}伤害基数+1`,
- `令${name}可以多选择一个目标`,
- `令${name}不可被响应`,
- ];
+ choiceList = [`令${name}伤害基数+1`, `令${name}可以多选择一个目标`, `令${name}不可被响应`];
[0, 1, 2].forEach((item, index) => {
if (event.list.includes(item)) {
- choiceList[index] =
- `${choiceList[index]}`;
+ choiceList[index] = `${choiceList[index]}`;
} else choices.push(`选项${get.cnNumber(index + 1, true)}`);
});
game.me
@@ -3471,8 +2755,7 @@ game.import("character", function () {
event.result = { index: ["选项一", "选项二", "选项三"].indexOf(result.control) };
},
intro: {
- content: (storage, player) =>
- `已移除选项${storage.map((i) => get.cnNumber(i + 1, true)).join("、")}`,
+ content: (storage, player) => `已移除选项${storage.map(i => get.cnNumber(i + 1, true)).join("、")}`,
},
},
//张既
@@ -3493,13 +2776,7 @@ game.import("character", function () {
player.addMark("skill_zhangji_A_count", 1, false);
player.viewHandcards(trigger.target);
var list = [],
- choiceList = [
- "弃置" +
- get.translation(trigger.target) +
- "的一张牌,然后若弃置的牌的是能造成火焰伤害的牌,你摸一张牌",
- "重铸" + get.translation(trigger.target) + "手牌中的所有【杀】和【决斗】",
- "你与" + get.translation(trigger.target) + "互相对对方造成1点伤害",
- ];
+ choiceList = ["弃置" + get.translation(trigger.target) + "的一张牌,然后若弃置的牌的是能造成火焰伤害的牌,你摸一张牌", "重铸" + get.translation(trigger.target) + "手牌中的所有【杀】和【决斗】", "你与" + get.translation(trigger.target) + "互相对对方造成1点伤害"];
list.push("选项一");
if (trigger.target.countCards("h", { name: ["sha", "juedou"] })) list.push("选项二");
else choiceList[1] = '' + choiceList[1] + "";
@@ -3512,16 +2789,8 @@ game.import("character", function () {
.set("ai", function () {
var player = _status.event.player,
target = _status.event.target;
- if (
- list.includes("选项三") &&
- player.hp + player.countCards("hs", { name: "tao" }) > 2
- )
- return "选项三";
- if (
- list.includes("选项二") &&
- target.countCards("h", { name: ["sha", "juedou"] }) > 1
- )
- return "选项二";
+ if (list.includes("选项三") && player.hp + player.countCards("hs", { name: "tao" }) > 2) return "选项三";
+ if (list.includes("选项二") && target.countCards("h", { name: ["sha", "juedou"] }) > 1) return "选项二";
return "选项一";
})
.set("target", trigger.target);
@@ -3532,9 +2801,7 @@ game.import("character", function () {
player.discardPlayerCard("he", trigger.target, "visible", true);
break;
case "选项二":
- var cards = trigger.target
- .getCards("h", { name: ["sha", "juedou"] })
- .filter((card) => trigger.target.canRecast(card));
+ var cards = trigger.target.getCards("h", { name: ["sha", "juedou"] }).filter(card => trigger.target.canRecast(card));
trigger.target.recast(cards);
event.finish();
break;
@@ -3596,19 +2863,12 @@ game.import("character", function () {
content: function () {
"step 0";
if (!_status.characterlist) lib.skill.pingjian.initList();
- player
- .chooseTarget(
- get.prompt("skill_zhangji_B"),
- "令一名其他角色选择是否更换武将牌",
- lib.filter.notMe
- )
- .set("ai", function (target) {
- var att = get.attitude(_status.event.player, target);
- var num = lib.skill.skill_zhangji_B.getNum(target.name);
- if (target.name2 != undefined)
- num = Math.min(num, lib.skill.skill_zhangji_B.getNum(target.name2));
- return att * (4 - num);
- });
+ player.chooseTarget(get.prompt("skill_zhangji_B"), "令一名其他角色选择是否更换武将牌", lib.filter.notMe).set("ai", function (target) {
+ var att = get.attitude(_status.event.player, target);
+ var num = lib.skill.skill_zhangji_B.getNum(target.name);
+ if (target.name2 != undefined) num = Math.min(num, lib.skill.skill_zhangji_B.getNum(target.name2));
+ return att * (4 - num);
+ });
"step 1";
if (result.bool) {
var target = result.targets[0];
@@ -3616,16 +2876,14 @@ game.import("character", function () {
player.logSkill("skill_zhangji_B", target);
var list = [];
for (var i = 0; i < _status.characterlist.length; i++) {
- if (lib.character[_status.characterlist[i]][1] == "wei")
- list.push(_status.characterlist[i]);
+ if (lib.character[_status.characterlist[i]][1] == "wei") list.push(_status.characterlist[i]);
}
list = list.randomGets(5);
var bolDialog = ["请选择替换的武将", [list, "character"]];
target.chooseButton(bolDialog).set("ai", function (button) {
var target = _status.event.player;
var num = lib.skill.skill_zhangji_B.getNum(target.name);
- if (target.name2 != undefined)
- num = Math.min(num, lib.skill.skill_zhangji_B.getNum(target.name2));
+ if (target.name2 != undefined) num = Math.min(num, lib.skill.skill_zhangji_B.getNum(target.name2));
return lib.skill.skill_zhangji_B.getNum(button.link) - num;
});
} else event.finish();
@@ -3637,10 +2895,7 @@ game.import("character", function () {
.chooseControl(target.name1, target.name2)
.set("prompt", "请选择要更换的武将牌")
.set("ai", function () {
- return lib.skill.skill_zhangji_B.getNum(target.name) <
- lib.skill.skill_zhangji_B.getNum(target.name2)
- ? target.name
- : target.name2;
+ return lib.skill.skill_zhangji_B.getNum(target.name) < lib.skill.skill_zhangji_B.getNum(target.name2) ? target.name : target.name2;
});
else result.control = target.name1;
} else {
@@ -3668,13 +2923,9 @@ game.import("character", function () {
"step 1";
event.count--;
player
- .chooseTarget(
- get.prompt("skill_zhangji_B"),
- "令一名手牌数小于其体力上限的角色摸三张牌,然后其将手牌数调整至其体力上限值",
- function (card, player, target) {
- return target.countCards("h") < target.maxHp;
- }
- )
+ .chooseTarget(get.prompt("skill_zhangji_B"), "令一名手牌数小于其体力上限的角色摸三张牌,然后其将手牌数调整至其体力上限值", function (card, player, target) {
+ return target.countCards("h") < target.maxHp;
+ })
.set("ai", function (target) {
var att = get.attitude(_status.event.player, target);
if (target.hasSkillTag("nogain")) att /= 6;
@@ -3689,8 +2940,7 @@ game.import("character", function () {
target.draw(3);
} else event.finish();
"step 3";
- if (target.countCards("h") > target.maxHp)
- target.chooseToDiscard("h", target.countCards("h") - target.maxHp, true);
+ if (target.countCards("h") > target.maxHp) target.chooseToDiscard("h", target.countCards("h") - target.maxHp, true);
if (
event.count > 0 &&
game.hasPlayer(function (current) {
@@ -3711,10 +2961,7 @@ game.import("character", function () {
var players = game.filterPlayer();
for (var i = 0; i < players.length; i++) {
if (get.attitude(target, players[i]) > 0) {
- max = Math.max(
- Math.min(5, players[i].hp) - players[i].countCards("h"),
- max
- );
+ max = Math.max(Math.min(5, players[i].hp) - players[i].countCards("h"), max);
}
}
switch (max) {
@@ -3728,12 +2975,7 @@ game.import("character", function () {
return [0, max];
}
}
- if (
- (card.name == "tao" || card.name == "caoyao") &&
- target.hp > 1 &&
- target.countCards("h") <= target.hp
- )
- return [0, 0];
+ if ((card.name == "tao" || card.name == "caoyao") && target.hp > 1 && target.countCards("h") <= target.hp) return [0, 0];
},
},
},
@@ -3750,31 +2992,22 @@ game.import("character", function () {
return !player.hasSkill("yanru_" + num);
},
filterCard: function (card, player) {
- if (player.countCards("h") && player.countCards("h") % 2 == 0)
- return lib.filter.cardDiscardable(card, player);
+ if (player.countCards("h") && player.countCards("h") % 2 == 0) return lib.filter.cardDiscardable(card, player);
return false;
},
selectCard: function () {
var player = _status.event.player;
- if (player.countCards("h") && player.countCards("h") % 2 == 0)
- return [player.countCards("h") / 2, Infinity];
+ if (player.countCards("h") && player.countCards("h") % 2 == 0) return [player.countCards("h") / 2, Infinity];
return -1;
},
prompt: function () {
var player = _status.event.player;
- return [
- (player.countCards("h") ? "弃置至少一半的手牌,然后" : "") + "摸三张牌",
- "摸三张牌,然后弃置至少一半的手牌",
- ][player.countCards("h") % 2];
+ return [(player.countCards("h") ? "弃置至少一半的手牌,然后" : "") + "摸三张牌", "摸三张牌,然后弃置至少一半的手牌"][player.countCards("h") % 2];
},
check: function (card) {
var player = _status.event.player;
- if (
- player.hasSkill("hezhong") &&
- !(player.hasSkill("hezhong_0") && player.hasSkill("hezhong_1"))
- ) {
- if (player.countCards("h") - ui.selected.cards.length > 2)
- return 1 / (get.value(card) || 0.5);
+ if (player.hasSkill("hezhong") && !(player.hasSkill("hezhong_0") && player.hasSkill("hezhong_1"))) {
+ if (player.countCards("h") - ui.selected.cards.length > 2) return 1 / (get.value(card) || 0.5);
return 0;
}
if (ui.selected.cards.length < player.countCards("h") / 2) return 5 - get.value(card);
@@ -3792,28 +3025,12 @@ game.import("character", function () {
player.draw(3);
if (!bool) event.finish();
"step 1";
- player
- .chooseToDiscard(
- "h",
- "宴如:弃置至少一半手牌",
- [Math.floor(player.countCards("h") / 2), Infinity],
- true
- )
- .set("ai", (card) => {
- var player = _status.event.player;
- if (
- player.hasSkill("hezhong") &&
- !(player.hasSkill("hezhong_0") && player.hasSkill("hezhong_1")) &&
- player.countCards("h") - ui.selected.cards.length > 2
- )
- return 1 / (get.value(card) || 0.5);
- if (
- !player.hasSkill("hezhong") &&
- ui.selected.cards.length < Math.floor(player.countCards("h") / 2)
- )
- return 1 / (get.value(card) || 0.5);
- return 0;
- });
+ player.chooseToDiscard("h", "宴如:弃置至少一半手牌", [Math.floor(player.countCards("h") / 2), Infinity], true).set("ai", card => {
+ var player = _status.event.player;
+ if (player.hasSkill("hezhong") && !(player.hasSkill("hezhong_0") && player.hasSkill("hezhong_1")) && player.countCards("h") - ui.selected.cards.length > 2) return 1 / (get.value(card) || 0.5);
+ if (!player.hasSkill("hezhong") && ui.selected.cards.length < Math.floor(player.countCards("h") / 2)) return 1 / (get.value(card) || 0.5);
+ return 0;
+ });
},
subSkill: {
0: { charlotte: true },
@@ -3828,20 +3045,10 @@ game.import("character", function () {
audio: 2,
trigger: {
player: "loseAfter",
- global: [
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
filter: function (event, player) {
- if (
- player.countCards("h") != 1 ||
- typeof get.number(player.getCards("h")[0], player) != "number"
- )
- return false;
+ if (player.countCards("h") != 1 || typeof get.number(player.getCards("h")[0], player) != "number") return false;
if (player.hasSkill("hezhong_0") && player.hasSkill("hezhong_1")) return false;
let gain = 0,
lose = 0;
@@ -3874,10 +3081,7 @@ game.import("character", function () {
else {
player
.chooseControl()
- .set("choiceList", [
- "本回合使用点数大于" + num + "的普通锦囊牌额外结算一次",
- "本回合使用点数小于" + num + "的普通锦囊牌额外结算一次",
- ])
+ .set("choiceList", ["本回合使用点数大于" + num + "的普通锦囊牌额外结算一次", "本回合使用点数小于" + num + "的普通锦囊牌额外结算一次"])
.set("ai", () => {
var player = _status.event.player;
var num = _status.event.player;
@@ -3903,11 +3107,10 @@ game.import("character", function () {
onremove: true,
marktext: ">",
intro: {
- markcount: (list) => {
+ markcount: list => {
var list2 = [1, 11, 12, 13];
return list.reduce((str, num) => {
- if (list2.includes(num))
- return str + ["A", "J", "Q", "K"][list2.indexOf(num)];
+ if (list2.includes(num)) return str + ["A", "J", "Q", "K"][list2.indexOf(num)];
return str + parseFloat(num);
}, "");
},
@@ -3919,10 +3122,7 @@ game.import("character", function () {
if (get.type(event.card) != "trick") return false;
if (!event.targets.length) return false;
var num = get.number(event.card, player);
- return (
- typeof num == "number" &&
- player.getStorage("hezhong_0").some((numx) => num > numx)
- );
+ return typeof num == "number" && player.getStorage("hezhong_0").some(numx => num > numx);
},
forced: true,
usable: 1,
@@ -3934,12 +3134,7 @@ game.import("character", function () {
ai: {
effect: {
player: function (card, player, target) {
- if (
- card.name == "tiesuo" &&
- (!player.storage.counttrigger ||
- !player.storage.counttrigger.hezhong_0)
- )
- return "zerotarget";
+ if (card.name == "tiesuo" && (!player.storage.counttrigger || !player.storage.counttrigger.hezhong_0)) return "zerotarget";
},
},
},
@@ -3949,11 +3144,10 @@ game.import("character", function () {
onremove: true,
marktext: "<",
intro: {
- markcount: (list) => {
+ markcount: list => {
var list2 = [1, 11, 12, 13];
return list.reduce((str, num) => {
- if (list2.includes(num))
- return str + ["A", "J", "Q", "K"][list2.indexOf(num)];
+ if (list2.includes(num)) return str + ["A", "J", "Q", "K"][list2.indexOf(num)];
return str + parseFloat(num);
}, "");
},
@@ -3965,10 +3159,7 @@ game.import("character", function () {
if (get.type(event.card) != "trick") return false;
if (!event.targets.length) return false;
var num = get.number(event.card, player);
- return (
- typeof num == "number" &&
- player.getStorage("hezhong_1").some((numx) => num < numx)
- );
+ return typeof num == "number" && player.getStorage("hezhong_1").some(numx => num < numx);
},
forced: true,
usable: 1,
@@ -3980,12 +3171,7 @@ game.import("character", function () {
ai: {
effect: {
player: function (card, player, target) {
- if (
- card.name == "tiesuo" &&
- (!player.storage.counttrigger ||
- !player.storage.counttrigger.hezhong_1)
- )
- return "zerotarget";
+ if (card.name == "tiesuo" && (!player.storage.counttrigger || !player.storage.counttrigger.hezhong_1)) return "zerotarget";
},
},
},
@@ -3997,13 +3183,7 @@ game.import("character", function () {
audio: 2,
trigger: { global: "useCardAfter" },
filter: function (event, player) {
- return (
- event.player.isIn() &&
- event.card.name == "sha" &&
- event.cards &&
- event.cards.filterInD().length &&
- get.distance(player, event.player) <= 1
- );
+ return event.player.isIn() && event.card.name == "sha" && event.cards && event.cards.filterInD().length && get.distance(player, event.player) <= 1;
},
forced: true,
locked: false,
@@ -4025,40 +3205,26 @@ game.import("character", function () {
wusheng: {
enable: "chooseToUse",
filter: function (event, player) {
- return (
- player.getExpansions("olfushi").length &&
- event.filterCard({ name: "sha", isCard: true }, player, event)
- );
+ return player.getExpansions("olfushi").length && event.filterCard({ name: "sha", isCard: true }, player, event);
},
chooseButton: {
dialog: function (event, player) {
- return ui.create.dialog(
- '###缚豕###将任意“缚豕”牌置入弃牌堆并摸等量的牌,视为使用一张【杀】并执行等量项
',
- player.getExpansions("olfushi"),
- [["额外目标", "伤害-1", "伤害+1"], "tdnodes"],
- "hidden"
- );
+ return ui.create.dialog('###缚豕###将任意“缚豕”牌置入弃牌堆并摸等量的牌,视为使用一张【杀】并执行等量项
', player.getExpansions("olfushi"), [["额外目标", "伤害-1", "伤害+1"], "tdnodes"], "hidden");
},
filter: function (button) {
- const cards = ui.selected.buttons.filter(
- (button) => typeof button.link == "object"
- );
+ const cards = ui.selected.buttons.filter(button => typeof button.link == "object");
if (cards.length >= 3 && typeof button.link == "string") return false;
return true;
},
select: [2, Infinity],
filterOk: () => {
if (!ui.selected.buttons.length) return false;
- const controls = ui.selected.buttons.filter(
- (button) => typeof button.link == "string"
- );
- const cards = ui.selected.buttons.filter(
- (button) => typeof button.link == "object"
- );
+ const controls = ui.selected.buttons.filter(button => typeof button.link == "string");
+ const cards = ui.selected.buttons.filter(button => typeof button.link == "object");
if (cards.length >= 3) {
const dialog = get.event().dialog;
if (dialog && dialog.buttons) {
- dialog.buttons.forEach((button) => {
+ dialog.buttons.forEach(button => {
if (typeof button.link != "string") return;
button.classList.remove("selectable");
button.classList.remove("selected");
@@ -4072,12 +3238,10 @@ game.import("character", function () {
check: function (button) {
const player = get.player();
const card = new lib.element.VCard({ name: "sha", isCard: true });
- const targets = game.filterPlayer((target) => {
+ const targets = game.filterPlayer(target => {
return player.canUse(card, target);
});
- const num0 = targets.filter(
- (target) => get.effect(target, card, player, player) > 0
- ).length;
+ const num0 = targets.filter(target => get.effect(target, card, player, player) > 0).length;
if (num0 <= 0) return 0;
const num1 = Math.max(0, num0 - 1);
const num2 = targets.length - num1;
@@ -4121,21 +3285,14 @@ game.import("character", function () {
if (list.includes(button.link)) return 114514;
return -1;
} else {
- const cards = ui.selected.buttons.filter(
- (button) => typeof button.link == "object"
- );
- if (
- (list.length == 3 &&
- (player.getHp() <= 2 || cards.length < num3 - 1)) ||
- cards.length < list.length
- )
- return 1 / (get.value(button.link) || 0.5);
+ const cards = ui.selected.buttons.filter(button => typeof button.link == "object");
+ if ((list.length == 3 && (player.getHp() <= 2 || cards.length < num3 - 1)) || cards.length < list.length) return 1 / (get.value(button.link) || 0.5);
return -1;
}
},
backup: function (links, player) {
- var cards = links.filter((button) => typeof button == "object");
- var controls = links.filter((button) => typeof button == "string");
+ var cards = links.filter(button => typeof button == "object");
+ var controls = links.filter(button => typeof button == "string");
if (!controls.length) controls = ["额外目标", "伤害-1", "伤害+1"];
return {
audio: "olfushi",
@@ -4155,9 +3312,7 @@ game.import("character", function () {
var controls = lib.skill.olfushi_wusheng_backup.controls.slice();
player.logSkill("olfushi");
delete event.result.skill;
- event.result.card = new lib.element.VCard(
- lib.skill.olfushi_wusheng_backup.viewAs
- );
+ event.result.card = new lib.element.VCard(lib.skill.olfushi_wusheng_backup.viewAs);
event.result.cards = [];
player.loseToDiscardpile(cards);
player.draw(cards.length);
@@ -4167,7 +3322,7 @@ game.import("character", function () {
};
},
prompt: function (links, player) {
- let controls = links.filter((button) => typeof button == "string");
+ let controls = links.filter(button => typeof button == "string");
if (!controls.length) controls = ["额外目标", "伤害-1", "伤害+1"];
return `请选择【杀】的目标(${controls.join("、")})`;
},
@@ -4190,16 +3345,7 @@ game.import("character", function () {
filter: function (event, player, name) {
if (!event.card.storage || !event.card.storage.olfushi_buff) return false;
if (name == "useCard2") return true;
- return (
- event.getParent().triggeredTargets3.length == event.targets.length &&
- event.card.storage.olfushi_buff.length > 1 &&
- event.card.storage.olfushi_buff.includes("伤害-1") &&
- !event.targets.some(
- (target) =>
- !event.targets.includes(target.getPrevious()) &&
- !event.targets.includes(target.getNext())
- )
- );
+ return event.getParent().triggeredTargets3.length == event.targets.length && event.card.storage.olfushi_buff.length > 1 && event.card.storage.olfushi_buff.includes("伤害-1") && !event.targets.some(target => !event.targets.includes(target.getPrevious()) && !event.targets.includes(target.getNext()));
},
forced: true,
popup: false,
@@ -4218,25 +3364,18 @@ game.import("character", function () {
}
var list = trigger.card.storage.olfushi_buff;
event.list = list;
- var canBeAddedTargets = game.filterPlayer((target) => {
- return (
- !trigger.targets.includes(target) && player.canUse(trigger.card, target)
- );
+ var canBeAddedTargets = game.filterPlayer(target => {
+ return !trigger.targets.includes(target) && player.canUse(trigger.card, target);
});
- if (!list.includes("额外目标") || !canBeAddedTargets.length)
- event._result = { bool: false };
- else if (canBeAddedTargets.length == 1)
- event._result = { bool: true, targets: canBeAddedTargets };
+ if (!list.includes("额外目标") || !canBeAddedTargets.length) event._result = { bool: false };
+ else if (canBeAddedTargets.length == 1) event._result = { bool: true, targets: canBeAddedTargets };
else
player
.chooseTarget(
"请选择" + get.translation(trigger.card) + "的额外目标",
function (card, player, target) {
var trigger = _status.event.getTrigger();
- return (
- !trigger.targets.includes(target) &&
- player.canUse(trigger.card, target)
- );
+ return !trigger.targets.includes(target) && player.canUse(trigger.card, target);
},
true
)
@@ -4253,8 +3392,7 @@ game.import("character", function () {
}
"step 2";
if (!event.list.includes("伤害-1")) event._result = { bool: false };
- else if (trigger.targets.length == 1)
- event._result = { bool: true, targets: trigger.targets.slice() };
+ else if (trigger.targets.length == 1) event._result = { bool: true, targets: trigger.targets.slice() };
else
player
.chooseTarget(
@@ -4280,8 +3418,7 @@ game.import("character", function () {
}
"step 4";
if (!event.list.includes("伤害+1")) event.finish();
- else if (trigger.targets.length == 1)
- event._result = { bool: true, targets: trigger.targets.slice() };
+ else if (trigger.targets.length == 1) event._result = { bool: true, targets: trigger.targets.slice() };
else
player
.chooseTarget(
@@ -4312,12 +3449,7 @@ game.import("character", function () {
onremove: true,
trigger: { source: "damageBegin2" },
filter: function (event, player) {
- return (
- event.card &&
- player
- .getStorage("olfushi_buff2")
- .some((info) => info[0] == event.player && info[1] == event.card)
- );
+ return event.card && player.getStorage("olfushi_buff2").some(info => info[0] == event.player && info[1] == event.card);
},
forced: true,
popup: false,
@@ -4343,12 +3475,7 @@ game.import("character", function () {
onremove: true,
trigger: { source: "damageBegin1" },
filter: function (event, player) {
- return (
- event.card &&
- player
- .getStorage("olfushi_buff3")
- .some((info) => info[0] == event.player && info[1] == event.card)
- );
+ return event.card && player.getStorage("olfushi_buff3").some(info => info[0] == event.player && info[1] == event.card);
},
forced: true,
popup: false,
@@ -4382,15 +3509,10 @@ game.import("character", function () {
event.target = target;
var target2 = player.storage.oldongdao ? trigger.player : player;
event.target2 = target2;
- target2
- .chooseBool(
- get.prompt("oldongdao"),
- "令" + get.translation(target) + "进行一个额外回合"
- )
- .set("ai", () => {
- var event = _status.event.getParent();
- return get.attitude(event.target2, event.target) > 0;
- });
+ target2.chooseBool(get.prompt("oldongdao"), "令" + get.translation(target) + "进行一个额外回合").set("ai", () => {
+ var event = _status.event.getParent();
+ return get.attitude(event.target2, event.target) > 0;
+ });
"step 1";
if (result.bool) {
player.logSkill("oldongdao");
@@ -4409,7 +3531,7 @@ game.import("character", function () {
game
.getGlobalHistory(
"everything",
- (evt) => {
+ evt => {
return evt.name == "damage" && evt.player == player;
},
event
@@ -4426,24 +3548,12 @@ game.import("character", function () {
"step 0";
var cards = get.bottomCards(3, true);
player
- .chooseButton(
- [
- "###藏心:请选择要弃置的牌###若以此法弃置了红桃牌,则减少弃置红桃牌数的伤害",
- cards,
- ],
- [1, cards.length],
- true
- )
+ .chooseButton(["###藏心:请选择要弃置的牌###若以此法弃置了红桃牌,则减少弃置红桃牌数的伤害", cards], [1, cards.length], true)
.set("ai", function (button) {
if (!_status.event.bool && get.suit(button.link, false) == "heart") return 0;
if (get.suit(button.link, false) != "heart") return 1;
const num = get.event().getTrigger().num;
- if (
- num >
- ui.selected.buttons.filter((but) => get.suit(but.link, false) == "heart")
- .length
- )
- return 1;
+ if (num > ui.selected.buttons.filter(but => get.suit(but.link, false) == "heart").length) return 1;
return 0;
})
.set("bool", lib.skill.olcangxin.checkx(trigger, player));
@@ -4451,7 +3561,7 @@ game.import("character", function () {
if (result.bool) {
player.$throw(result.links, 1000);
game.cardsDiscard(result.links);
- const num = result.links.filter((card) => get.suit(card, false) == "heart").length;
+ const num = result.links.filter(card => get.suit(card, false) == "heart").length;
if (num) trigger.num -= Math.min(trigger.num, num);
} else event.finish();
"step 2";
@@ -4466,7 +3576,7 @@ game.import("character", function () {
content: function () {
var cards = get.bottomCards(3, true);
player.showCards(cards, get.translation(player) + "发动了【藏心】");
- var num = cards.filter((card) => get.suit(card, false) == "heart").length;
+ var num = cards.filter(card => get.suit(card, false) == "heart").length;
if (num) player.draw(num);
},
},
@@ -4485,10 +3595,7 @@ game.import("character", function () {
var str = get.translation(trigger.player);
player
.chooseControl("弃牌,+1", "摸牌,-1", "cancel2")
- .set("choiceList", [
- "令" + str + "弃置一张牌,且其本回合手牌上限+1",
- "令" + str + "摸一张牌,且其本回合手牌上限-1",
- ])
+ .set("choiceList", ["令" + str + "弃置一张牌,且其本回合手牌上限+1", "令" + str + "摸一张牌,且其本回合手牌上限-1"])
.set("ai", function () {
var player = _status.event.player;
var trigger = _status.event.getTrigger();
@@ -4513,7 +3620,7 @@ game.import("character", function () {
if (result.index != 2) {
player.logSkill("olrunwei", trigger.player);
if (result.index == 0) {
- trigger.player.chooseToDiscard("he", true).set("ai", (card) => {
+ trigger.player.chooseToDiscard("he", true).set("ai", card => {
if (get.position(card) == "e") return -get.value(card);
return 1 / (get.value(card) || 0.5);
});
@@ -4561,7 +3668,7 @@ game.import("character", function () {
filter: function (event, player) {
return get.type2(event.card, false) != "basic";
},
- getInfo: (player) => {
+ getInfo: player => {
if (!player.storage.olgangshu_buff) player.storage.olgangshu_buff = [0, 0, 0];
return player.storage.olgangshu_buff;
},
@@ -4571,17 +3678,9 @@ game.import("character", function () {
"step 0";
var info = lib.skill.olgangshu.getInfo(player);
player
- .chooseControl(
- "攻击范围(" + info[0] + ")",
- "摸牌数(" + info[1] + ")",
- "使用杀的上限(" + info[2] + ")",
- "cancel2"
- )
+ .chooseControl("攻击范围(" + info[0] + ")", "摸牌数(" + info[1] + ")", "使用杀的上限(" + info[2] + ")", "cancel2")
.set("prompt", get.prompt("olgangshu"))
- .set(
- "prompt2",
- '令以下一个数值+1(每项至多+5):
1.攻击范围;
2.下个摸牌阶段的摸牌数;
3.使用【杀】的次数上限。
'
- )
+ .set("prompt2", '令以下一个数值+1(每项至多+5):
1.攻击范围;
2.下个摸牌阶段的摸牌数;
3.使用【杀】的次数上限。
')
.set("ai", () => {
return _status.event.choice;
})
@@ -4592,7 +3691,7 @@ game.import("character", function () {
if (info[1] == 0) return 1;
if (
info[2] < 5 &&
- player.hasCard((card) => {
+ player.hasCard(card => {
return get.name(card) == "sha" && player.hasValueTarget(card);
}, "hs") &&
!player.getCardUsable("sha")
@@ -4600,16 +3699,13 @@ game.import("character", function () {
return 2;
if (
info[0] < 5 &&
- !game.hasPlayer((current) => {
- return (
- player.inRange(current) &&
- get.effect(current, { name: "sha" }, player, player) > 0
- );
+ !game.hasPlayer(current => {
+ return player.inRange(current) && get.effect(current, { name: "sha" }, player, player) > 0;
})
)
return 0;
var rand = Math.random();
- var list = [0, 1, 2].filter((i) => info[i] < 5);
+ var list = [0, 1, 2].filter(i => info[i] < 5);
if (!list.length) return "cancel2";
if (rand < 0.2 && list.includes(0)) return 0;
if (rand < 0.7 && list.includes(1)) return 1;
@@ -4663,7 +3759,7 @@ game.import("character", function () {
markcount: function (storage, player) {
var info = lib.skill.olgangshu.getInfo(player);
var str = "";
- info.forEach((num) => (str += parseFloat(num)));
+ info.forEach(num => (str += parseFloat(num)));
return str;
},
content: function (storage, player) {
@@ -4717,11 +3813,8 @@ game.import("character", function () {
var str = list.join("、").replace(/(.*)、/, "$1或");
event.list = list;
player
- .chooseTarget(
- get.prompt("oljianxuan"),
- "令一名角色摸一张牌,然后若其手牌数为" + str + ",其重复此流程"
- )
- .set("ai", (target) => {
+ .chooseTarget(get.prompt("oljianxuan"), "令一名角色摸一张牌,然后若其手牌数为" + str + ",其重复此流程")
+ .set("ai", target => {
var list = _status.event.list;
var player = _status.event.player;
var att = get.attitude(player, target);
@@ -4761,17 +3854,11 @@ game.import("character", function () {
hiddenCard: function (player, name) {
if (name != "wuxie" && lib.inpile.includes(name)) return true;
},
- getNum: (player) =>
- player.getHistory("useCard").reduce((list, evt) => list.add(get.type2(evt.card)), [])
- .length,
+ getNum: player => player.getHistory("useCard").reduce((list, evt) => list.add(get.type2(evt.card)), []).length,
filter: function (event, player) {
if (event.responded || event.type == "wuxie" || event.olxiaofan) return false;
for (var i of lib.inpile) {
- if (
- i != "wuxie" &&
- event.filterCard(get.autoViewAs({ name: i }, "unsure"), player, event)
- )
- return true;
+ if (i != "wuxie" && event.filterCard(get.autoViewAs({ name: i }, "unsure"), player, event)) return true;
}
return false;
},
@@ -4819,8 +3906,7 @@ game.import("character", function () {
if (get.type(button.link) == "equip") return 0;
var evt = _status.event.getParent(3),
player = _status.event.player;
- if (evt.type == "phase" && !player.hasValueTarget(button.link, null, true))
- return 0;
+ if (evt.type == "phase" && !player.hasValueTarget(button.link, null, true)) return 0;
if (evt && evt.ai) {
var tmp = _status.event;
_status.event = evt;
@@ -4899,7 +3985,7 @@ game.import("character", function () {
var id = get.id();
player
.when("chooseToUseAfter")
- .filter((evt) => evt == event.getParent())
+ .filter(evt => evt == event.getParent())
.then(() => {
var num = lib.skill.olxiaofan.getNum(player),
pos = "jeh".slice(0, num);
@@ -4927,10 +4013,10 @@ game.import("character", function () {
mod: {
wuxieJudgeEnabled: () => false,
wuxieEnabled: () => false,
- cardEnabled: (card) => {
+ cardEnabled: card => {
if (card.name == "wuxie") return false;
},
- targetInRange: (card) => {
+ targetInRange: card => {
if (card.storage && card.storage.oltuishi) return true;
},
aiValue: (player, card, val) => {
@@ -4956,9 +4042,9 @@ game.import("character", function () {
if (player.isTempBanned("olxiaofan")) return false;
return (
player
- .getHistory("useCard", (evt) => {
+ .getHistory("useCard", evt => {
return (
- !player.getHistory("sourceDamage", (evt2) => {
+ !player.getHistory("sourceDamage", evt2 => {
return evt2.card && evt2.card == evt.card;
}).length && get.tag(evt.card, "damage")
);
@@ -4999,18 +4085,13 @@ game.import("character", function () {
if (!event.targets || !event.targets.length) return false;
let num = 0;
if (event.cards && event.cards.length) {
- const history = player.getHistory("lose", (evt) => {
+ const history = player.getHistory("lose", evt => {
if (evt.getParent() != event) return false;
- return event.cards.some((card) => evt.hs.includes(card));
+ return event.cards.some(card => evt.hs.includes(card));
});
- if (history.length)
- num += event.cards.filter((card) => history[0].hs.includes(card)).length;
+ if (history.length) num += event.cards.filter(card => history[0].hs.includes(card)).length;
}
- return event.targets.some(
- (target) =>
- player.countCards("h") + num >
- target.countCards("h") + (target == player ? num : 0)
- );
+ return event.targets.some(target => player.countCards("h") + num > target.countCards("h") + (target == player ? num : 0));
},
forced: true,
popup: false,
@@ -5038,7 +4119,7 @@ game.import("character", function () {
filterCard: lib.filter.cardDiscardable,
position: "he",
filter: function (event, player) {
- return player.hasCard((card) => lib.filter.cardDiscardable(card, player), "he");
+ return player.hasCard(card => lib.filter.cardDiscardable(card, player), "he");
},
check: function (card) {
var player = _status.event.player;
@@ -5047,7 +4128,7 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .judge((card) => {
+ .judge(card => {
var evt = _status.event.getParent();
var cardx = evt.cards[0];
if (get.type2(card) == get.type2(cardx)) return 0.5;
@@ -5059,34 +4140,28 @@ game.import("character", function () {
player.addTempSkill("olweifu_add");
if (!get.is.object(player.storage.olweifu_add)) player.storage.olweifu_add = {};
var type = get.type2(card, player);
- if (typeof player.storage.olweifu_add[type] != "number")
- player.storage.olweifu_add[type] = 0;
+ if (typeof player.storage.olweifu_add[type] != "number") player.storage.olweifu_add[type] = 0;
player.storage.olweifu_add[type]++;
player.markSkill("olweifu_add");
if (type == get.type2(event.getParent(2).cards[0], player)) player.draw();
})
- .set("judge2", (result) => result.bool);
+ .set("judge2", result => result.bool);
},
ai: {
order: 7,
result: {
player: function (player) {
- return player.hasCard((card) => {
+ return player.hasCard(card => {
var type = get.type2(card);
if (type == "equip") return false;
return (
player.hasUseTarget(card) &&
player.getUseValue(card) > 5 &&
- game.countPlayer((current) => {
- return (
- lib.filter.targetEnabled2(card, player, current) &&
- get.effect(current, card, player, player) > 0
- );
+ game.countPlayer(current => {
+ return lib.filter.targetEnabled2(card, player, current) && get.effect(current, card, player, player) > 0;
}) +
1 >
- (get.is.object(player.storage.olweifu_add)
- ? player.storage.olweifu_add[type] || 0
- : 0)
+ (get.is.object(player.storage.olweifu_add) ? player.storage.olweifu_add[type] || 0 : 0)
);
}, "hs")
? 1
@@ -5099,11 +4174,7 @@ game.import("character", function () {
trigger: { player: "useCard1" },
filter: function (event, player) {
var type = get.type2(event.card);
- if (
- get.is.object(player.storage.olweifu_add) &&
- typeof player.storage.olweifu_add[type] == "number"
- )
- return true;
+ if (get.is.object(player.storage.olweifu_add) && typeof player.storage.olweifu_add[type] == "number") return true;
return false;
},
silent: true,
@@ -5128,11 +4199,8 @@ game.import("character", function () {
if (info.allowMultiple == false) return false;
if (event.targets && !info.multitarget) {
if (
- game.hasPlayer((current) => {
- return (
- !event.targets.includes(current) &&
- lib.filter.targetEnabled2(event.card, player, current)
- );
+ game.hasPlayer(current => {
+ return !event.targets.includes(current) && lib.filter.targetEnabled2(event.card, player, current);
})
)
return true;
@@ -5146,21 +4214,9 @@ game.import("character", function () {
"step 0";
var num = trigger._olweifu_clear;
player
- .chooseTarget(
- get.prompt("olweifu"),
- "为" +
- get.translation(trigger.card) +
- "额外指定" +
- get.cnNumber(num) +
- "个目标。",
- [1, num],
- (card, player, target) => {
- return (
- !_status.event.sourcex.includes(target) &&
- lib.filter.targetEnabled2(_status.event.card, player, target)
- );
- }
- )
+ .chooseTarget(get.prompt("olweifu"), "为" + get.translation(trigger.card) + "额外指定" + get.cnNumber(num) + "个目标。", [1, num], (card, player, target) => {
+ return !_status.event.sourcex.includes(target) && lib.filter.targetEnabled2(_status.event.card, player, target);
+ })
.set("sourcex", trigger.targets)
.set("ai", function (target) {
var player = _status.event.player;
@@ -5190,11 +4246,7 @@ game.import("character", function () {
mod: {
targetInRange: (card, player) => {
var type = get.type2(card);
- if (
- get.is.object(player.storage.olweifu_add) &&
- typeof player.storage.olweifu_add[type] == "number"
- )
- return true;
+ if (get.is.object(player.storage.olweifu_add) && typeof player.storage.olweifu_add[type] == "number") return true;
},
},
},
@@ -5213,15 +4265,11 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("olkuansai"),
- "令其中一个目标选择一项:1.交给你一张牌;2.令你回复1点体力。",
- (card, player, target) => {
- return _status.event.targets.includes(target);
- }
- )
+ .chooseTarget(get.prompt("olkuansai"), "令其中一个目标选择一项:1.交给你一张牌;2.令你回复1点体力。", (card, player, target) => {
+ return _status.event.targets.includes(target);
+ })
.set("targets", trigger.targets)
- .set("ai", (target) => {
+ .set("ai", target => {
var player = _status.event.player;
var att = get.attitude(player, target);
if (att > 0) return 1;
@@ -5239,13 +4287,8 @@ game.import("character", function () {
if (!target.countCards(position)) event._result = { bool: false };
else
target
- .chooseCard(
- get.translation(player) + "对你发动了【款塞】",
- str,
- position,
- forced
- )
- .set("ai", (card) => {
+ .chooseCard(get.translation(player) + "对你发动了【款塞】", str, position, forced)
+ .set("ai", card => {
if (_status.event.recover) return 0;
var target = _status.event.player,
player = _status.event.getParent().player;
@@ -5264,19 +4307,15 @@ game.import("character", function () {
if (att < 0) {
if (recoverEff >= 0) return true;
if (
- target.hasCard((card) => {
- return (
- (get.value(card) < 6.5 &&
- !get.tag(card, "recover")) ||
- get.value(card) <= 0.05
- );
+ target.hasCard(card => {
+ return (get.value(card) < 6.5 && !get.tag(card, "recover")) || get.value(card) <= 0.05;
}, position)
)
return false;
} else {
if (recoverEff > 0) return true;
if (
- target.hasCard((card) => {
+ target.hasCard(card => {
return get.value(card, target) < get.value(card, player);
}, position)
)
@@ -5304,12 +4343,8 @@ game.import("character", function () {
target: "useCardToTargeted",
},
filter: function (event, player) {
- if (event.name == "useCardToTargeted")
- return get.type(event.card) == "delay" && !player.hasSkill("olcuorui_skip");
- return (
- (event.name != "phase" || game.phaseNumber == 0) &&
- player.countCards("h") < Math.min(8, game.countPlayer())
- );
+ if (event.name == "useCardToTargeted") return get.type(event.card) == "delay" && !player.hasSkill("olcuorui_skip");
+ return (event.name != "phase" || game.phaseNumber == 0) && player.countCards("h") < Math.min(8, game.countPlayer());
},
forced: true,
content: function () {
@@ -5357,10 +4392,7 @@ game.import("character", function () {
.set("prompt", "谋诛:视为使用一张【杀】或【决斗】")
.set("ai", function () {
var player = _status.event.player;
- return player.getUseValue({ name: "sha" }) >
- player.getUseValue({ name: "juedou" })
- ? "sha"
- : "juedou";
+ return player.getUseValue({ name: "sha" }) > player.getUseValue({ name: "juedou" }) ? "sha" : "juedou";
});
"step 3";
if (result.control) target.chooseUseTarget({ name: result.control }, true);
@@ -5374,74 +4406,33 @@ game.import("character", function () {
game.hasPlayer(function (current) {
if (current == target) return false;
for (var card of [{ name: "sha" }, { name: "juedou" }]) {
- if (
- target.canUse(card, current) &&
- get.effect(current, card, target, player) > 0 &&
- get.effect(current, card, target, target) > 0
- )
- return true;
+ if (target.canUse(card, current) && get.effect(current, card, target, player) > 0 && get.effect(current, card, target, target) > 0) return true;
}
return false;
}) &&
target.countCards("h") < player.countCards("h") + 2
)
return 3;
- if (
- !target.hasValueTarget({ name: "sha" }) &&
- !target.hasValueTarget({ name: "juedou" })
- )
- return -2;
+ if (!target.hasValueTarget({ name: "sha" }) && !target.hasValueTarget({ name: "juedou" })) return -2;
if (target.countCards("h") + 1 > player.countCards("h")) return -2;
var canSave = function (player, target) {
- return (
- target.hp +
- player.countCards("hs", (card) => player.canSaveCard(card, target)) >
- 1 +
- ((get.mode() == "identity" && target.identity == "zhu") ||
- (get.mode() == "guozhan" && get.is.jun(target)))
- );
+ return target.hp + player.countCards("hs", card => player.canSaveCard(card, target)) > 1 + ((get.mode() == "identity" && target.identity == "zhu") || (get.mode() == "guozhan" && get.is.jun(target)));
};
if (target.hasValueTarget({ name: "sha" })) {
var aimx = game
- .filterPlayer((current) => {
- return (
- target.canUse({ name: "sha" }, current) &&
- get.effect(current, { name: "sha" }, target, target) > 0
- );
+ .filterPlayer(current => {
+ return target.canUse({ name: "sha" }, current) && get.effect(current, { name: "sha" }, target, target) > 0;
})
- .sort(
- (a, b) =>
- get.effect(b, { name: "sha" }, target, target) -
- get.effect(a, { name: "sha" }, target, target)
- )[0];
- if (
- aimx &&
- get.effect(aimx, { name: "sha" }, target, player) < 0 &&
- get.effect(aimx, { name: "sha" }, target, aimx) < 0 &&
- !canSave(player, aimx)
- )
- return 0;
+ .sort((a, b) => get.effect(b, { name: "sha" }, target, target) - get.effect(a, { name: "sha" }, target, target))[0];
+ if (aimx && get.effect(aimx, { name: "sha" }, target, player) < 0 && get.effect(aimx, { name: "sha" }, target, aimx) < 0 && !canSave(player, aimx)) return 0;
}
if (target.hasValueTarget({ name: "juedou" })) {
var aimy = game
- .filterPlayer((current) => {
- return (
- target.canUse({ name: "juedou" }, current) &&
- get.effect(current, { name: "juedou" }, target, target) > 0
- );
+ .filterPlayer(current => {
+ return target.canUse({ name: "juedou" }, current) && get.effect(current, { name: "juedou" }, target, target) > 0;
})
- .sort(
- (a, b) =>
- get.effect(b, { name: "juedou" }, target, target) -
- get.effect(a, { name: "juedou" }, target, target)
- )[0];
- if (
- aimy &&
- get.effect(aimy, { name: "juedou" }, target, player) < 0 &&
- get.effect(aimy, { name: "sha" }, target, aimy) < 0 &&
- !canSave(player, aimy)
- )
- return 0;
+ .sort((a, b) => get.effect(b, { name: "juedou" }, target, target) - get.effect(a, { name: "juedou" }, target, target))[0];
+ if (aimy && get.effect(aimy, { name: "juedou" }, target, player) < 0 && get.effect(aimy, { name: "sha" }, target, aimy) < 0 && !canSave(player, aimy)) return 0;
}
return -1;
},
@@ -5463,9 +4454,7 @@ game.import("character", function () {
skillAnimation: true,
animationColor: "thunder",
content: function () {
- player
- .discardPlayerCard(trigger.source, "he", [1, player.countCards("he")], true)
- .set("forceDie", true);
+ player.discardPlayerCard(trigger.source, "he", [1, player.countCards("he")], true).set("forceDie", true);
},
},
//韩遂
@@ -5478,21 +4467,13 @@ game.import("character", function () {
event.player.getHistory("useCard", function (card) {
return card.card.name == "sha";
}).length &&
- player.countCards(
- "hes",
- (card) =>
- get.color(card, player) == "black" &&
- player.canUse(get.autoViewAs({ name: "sha" }, [card]), event.player, false)
- )
+ player.countCards("hes", card => get.color(card, player) == "black" && player.canUse(get.autoViewAs({ name: "sha" }, [card]), event.player, false))
);
},
direct: true,
content: function () {
var next = player.chooseToUse();
- next.set(
- "openskilldialog",
- "逆乱:是否将一张黑色牌当作【杀】对" + get.translation(trigger.player) + "使用?"
- );
+ next.set("openskilldialog", "逆乱:是否将一张黑色牌当作【杀】对" + get.translation(trigger.player) + "使用?");
next.set("norestore", true);
next.set("_backupevent", "niluanx");
next.set("custom", {
@@ -5503,11 +4484,7 @@ game.import("character", function () {
next.set("targetRequired", true);
next.set("complexSelect", true);
next.set("filterTarget", function (card, player, target) {
- if (
- target != _status.event.sourcex &&
- !ui.selected.targets.includes(_status.event.sourcex)
- )
- return false;
+ if (target != _status.event.sourcex && !ui.selected.targets.includes(_status.event.sourcex)) return false;
return lib.filter.targetEnabled.apply(this, arguments);
});
next.set("sourcex", trigger.player);
@@ -5524,13 +4501,7 @@ game.import("character", function () {
},
direct: true,
content: function () {
- player.chooseUseTarget(
- { name: "sha" },
- get.prompt("olxiaoxi"),
- "视为使用一张无距离限制的【杀】",
- false,
- "nodistance"
- ).logSkill = "olxiaoxi";
+ player.chooseUseTarget({ name: "sha" }, get.prompt("olxiaoxi"), "视为使用一张无距离限制的【杀】", false, "nodistance").logSkill = "olxiaoxi";
},
},
//段颎
@@ -5541,8 +4512,7 @@ game.import("character", function () {
marktext: "☯",
intro: {
content: function (storage) {
- if (storage)
- return "转换技。①出牌阶段,你可以摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色摸一张牌。";
+ if (storage) return "转换技。①出牌阶段,你可以摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色摸一张牌。";
return "转换技。①出牌阶段,你可以弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】。②结束阶段,你可以弃置一张牌,令一名其他角色弃置两张牌,然后其使用弃置的【杀】。";
},
},
@@ -5551,9 +4521,8 @@ game.import("character", function () {
var list = [],
player = event.player;
var evtx = event.getParent("phaseUse");
- player.getHistory("lose", (evt) => {
- if (evt.type == "discard" && evt.getParent("phaseUse") == evtx)
- list.addArray(evt.cards2);
+ player.getHistory("lose", evt => {
+ if (evt.type == "discard" && evt.getParent("phaseUse") == evtx) list.addArray(evt.cards2);
});
event.set("olsaogu", list);
}
@@ -5563,27 +4532,15 @@ game.import("character", function () {
var storage = player.storage.olsaogu;
if (storage) return true;
return (
- player.getDiscardableCards(player, "he").filter((card) => {
- if (
- event.olsaogu &&
- event.olsaogu.some(
- (cardx) => get.suit(cardx, false) == get.suit(card, player)
- )
- )
- return false;
+ player.getDiscardableCards(player, "he").filter(card => {
+ if (event.olsaogu && event.olsaogu.some(cardx => get.suit(cardx, false) == get.suit(card, player))) return false;
return true;
}).length > 1
);
},
filterCard: function (card, player) {
if (player.storage.olsaogu) return false;
- if (
- _status.event.olsaogu &&
- _status.event.olsaogu.some(
- (cardx) => get.suit(cardx, false) == get.suit(card, player)
- )
- )
- return false;
+ if (_status.event.olsaogu && _status.event.olsaogu.some(cardx => get.suit(cardx, false) == get.suit(card, player))) return false;
return true;
},
selectCard: function () {
@@ -5618,7 +4575,7 @@ game.import("character", function () {
player.changeZhuanhuanji("olsaogu");
if (!cards.length) player.draw();
else {
- var cardx = cards.filter((card) => card.name == "sha");
+ var cardx = cards.filter(card => card.name == "sha");
if (cardx.length) {
var next = game.createEvent("olsaogu_chooseToUseSha");
next.player = player;
@@ -5636,15 +4593,9 @@ game.import("character", function () {
var storage = player.storage.olsaogu;
if (storage) return 1;
if (
- player.getDiscardableCards(player, "he").filter((card) => {
+ player.getDiscardableCards(player, "he").filter(card => {
if (card.name != "sha") return false;
- if (
- _status.event.olsaogu &&
- _status.event.olsaogu.some(
- (cardx) => get.suit(cardx, false) == get.suit(card, player)
- )
- )
- return false;
+ if (_status.event.olsaogu && _status.event.olsaogu.some(cardx => get.suit(cardx, false) == get.suit(card, player))) return false;
return true;
}).length
)
@@ -5665,20 +4616,15 @@ game.import("character", function () {
content: function () {
"step 0";
var list = [];
- player.getHistory("lose", (evt) => {
- if (
- evt.type == "discard" &&
- evt.getParent("phaseJieshu").name == "phaseJieshu"
- )
- list.addArray(evt.cards2);
+ player.getHistory("lose", evt => {
+ if (evt.type == "discard" && evt.getParent("phaseJieshu").name == "phaseJieshu") list.addArray(evt.cards2);
});
event.list = list;
var str,
storage = player.storage.olsaogu;
if (storage) str = "弃置一张牌,令一名其他角色摸一张牌。";
else {
- str =
- "弃置一张牌,令一名其他角色弃置两张牌(不能包含你本阶段弃置过的花色),然后其使用弃置的【杀】。";
+ str = "弃置一张牌,令一名其他角色弃置两张牌(不能包含你本阶段弃置过的花色),然后其使用弃置的【杀】。";
if (list.length) {
var text = "",
suits = list
@@ -5703,13 +4649,7 @@ game.import("character", function () {
complexSelect: true,
ai1: function (card) {
var player = _status.event.player;
- if (
- !player.storage.olsaogu &&
- _status.event.list.some(
- (cardx) => get.suit(cardx, false) == get.suit(card, player)
- )
- )
- return 7 - get.value(card);
+ if (!player.storage.olsaogu && _status.event.list.some(cardx => get.suit(cardx, false) == get.suit(card, player))) return 7 - get.value(card);
return 5 - get.value(card);
},
ai2: function (target) {
@@ -5718,23 +4658,13 @@ game.import("character", function () {
if (player.storage.olsaogu) return att;
var list = _status.event.list.slice();
if (ui.selected.cards.length) list.addArray(ui.selected.cards);
- var cards = target.getCards("he", (card) => {
- if (
- card.name != "sha" ||
- list.some(
- (cardx) =>
- get.suit(cardx, false) == get.suit(card, target)
- )
- )
- return false;
+ var cards = target.getCards("he", card => {
+ if (card.name != "sha" || list.some(cardx => get.suit(cardx, false) == get.suit(card, target))) return false;
return (
lib.filter.cardDiscardable(card, target) &&
game.hasPlayer(function (current) {
if (!current.canUse(card, target, false)) return false;
- return (
- get.effect(current, card, target, target) > 0 &&
- get.effect(current, card, target, player) > 0
- );
+ return get.effect(current, card, target, target) > 0 && get.effect(current, card, target, player) > 0;
})
);
});
@@ -5742,19 +4672,9 @@ game.import("character", function () {
return (
Math.sqrt(Math.min(2, cards.length)) *
cards.reduce(function (num, card) {
- var players = game.filterPlayer((current) =>
- target.canUse(card, current, false)
- );
- players.sort(
- (a, b) =>
- get.effect(b, card, target, target) *
- get.effect(b, card, target, player) -
- get.effect(a, card, target, target) *
- get.effect(a, card, target, player)
- );
- return (num =
- get.effect(players[0], card, target, target) *
- get.effect(players[0], card, target, player));
+ var players = game.filterPlayer(current => target.canUse(card, current, false));
+ players.sort((a, b) => get.effect(b, card, target, target) * get.effect(b, card, target, player) - get.effect(a, card, target, target) * get.effect(a, card, target, player));
+ return (num = get.effect(players[0], card, target, target) * get.effect(players[0], card, target, player));
}, 0)
);
return (
@@ -5762,15 +4682,9 @@ game.import("character", function () {
Math.sqrt(
Math.min(
2,
- target
- .getDiscardableCards(player, "he")
- .filter((card) => {
- return !list.some(
- (cardx) =>
- get.suit(cardx, false) ==
- get.suit(card, target)
- );
- }).length
+ target.getDiscardableCards(player, "he").filter(card => {
+ return !list.some(cardx => get.suit(cardx, false) == get.suit(card, target));
+ }).length
)
)
);
@@ -5789,20 +4703,11 @@ game.import("character", function () {
} else {
event.target = target;
var list = result.cards.slice();
- player.getHistory("lose", (evt) => {
- if (
- evt.type == "discard" &&
- evt.getParent("phaseJieshu").name == "phaseJieshu"
- )
- list.addArray(evt.cards2);
+ player.getHistory("lose", evt => {
+ if (evt.type == "discard" && evt.getParent("phaseJieshu").name == "phaseJieshu") list.addArray(evt.cards2);
});
- var cards = target.getCards("he", (card) => {
- return (
- lib.filter.cardDiscardable(card, target) &&
- !list.some(
- (cardx) => get.suit(cardx, false) == get.suit(card, target)
- )
- );
+ var cards = target.getCards("he", card => {
+ return lib.filter.cardDiscardable(card, target) && !list.some(cardx => get.suit(cardx, false) == get.suit(card, target));
});
if (cards.length) {
var text = "",
@@ -5811,28 +4716,21 @@ game.import("character", function () {
return list.add(get.suit(card, false)), list;
}, [])
.sort((a, b) => lib.suit.indexOf(b) - lib.suit.indexOf(a));
- for (var i = 0; i < suits.length; i++)
- text += get.translation(suits[i]);
+ for (var i = 0; i < suits.length; i++) text += get.translation(suits[i]);
target
.chooseToDiscard(
"he",
- "扫谷:弃置两张牌(不能弃置" +
- text +
- "花色的牌),然后使用其中的【杀】",
+ "扫谷:弃置两张牌(不能弃置" + text + "花色的牌),然后使用其中的【杀】",
function (card, player) {
var list = _status.event.list;
- return !list.some(
- (cardx) =>
- get.suit(cardx, false) == get.suit(card, player)
- );
+ return !list.some(cardx => get.suit(cardx, false) == get.suit(card, player));
},
Math.min(cards.length, 2),
true
)
.set("ai", function (card) {
var player = _status.event.player;
- if (card.name == "sha" && player.hasValueTarget(card))
- return 10;
+ if (card.name == "sha" && player.hasValueTarget(card)) return 10;
return -get.value(card);
})
.set("list", list);
@@ -5841,7 +4739,7 @@ game.import("character", function () {
} else event.finish();
"step 2";
if (result.bool) {
- var cards = result.cards.filter((card) => card.name == "sha");
+ var cards = result.cards.filter(card => card.name == "sha");
if (cards.length) {
var next = game.createEvent("olsaogu_chooseToUseSha");
next.player = target;
@@ -5854,19 +4752,17 @@ game.import("character", function () {
},
chooseToUseSha: function () {
"step 0";
- event.cards2 = cards.filter(
- (i) => get.position(i, true) == "d" && player.hasUseTarget(i)
- );
+ event.cards2 = cards.filter(i => get.position(i, true) == "d" && player.hasUseTarget(i));
if (!event.cards2.length) event.finish();
"step 1";
if (event.cards2.length == 1) event._result = { bool: true, links: event.cards2 };
else
player
.chooseButton(["扫谷:请使用其中的【杀】", event.cards2], true)
- .set("filterButton", (button) => {
+ .set("filterButton", button => {
return _status.event.player.hasUseTarget(button.link, false);
})
- .set("ai", (button) => {
+ .set("ai", button => {
return _status.event.player.getUseValue(button.link);
});
"step 2";
@@ -5897,7 +4793,7 @@ game.import("character", function () {
.chooseCard("he", "天候:是否用一张牌交换牌堆顶的" + get.translation(card) + "?")
.set("promptx", [[card]])
.set("card", card)
- .set("ai", (cardx) => {
+ .set("ai", cardx => {
let card = _status.event.card,
val = get.value(card, player) - get.value(cardx, player);
if (val < 0) return -val;
@@ -5905,25 +4801,16 @@ game.import("character", function () {
if (suit === "heart")
return (
val +
- game.countPlayer((current) => {
- if (
- player !== current &&
- !game.hasPlayer((tar) => tar.hp - current.hp > 1)
- )
- return get.sgn(get.attitude(player, current));
+ game.countPlayer(current => {
+ if (player !== current && !game.hasPlayer(tar => tar.hp - current.hp > 1)) return get.sgn(get.attitude(player, current));
return 0;
})
);
if (suit == "club")
return (
val +
- game.countPlayer((current) => {
- if (
- player !== current &&
- (current.hp < 2 ||
- !game.hasPlayer((tar) => current.hp - tar.hp > 1))
- )
- return get.sgn(get.attitude(player, current));
+ game.countPlayer(current => {
+ if (player !== current && (current.hp < 2 || !game.hasPlayer(tar => current.hp - tar.hp > 1))) return get.sgn(get.attitude(player, current));
return 0;
})
);
@@ -5948,15 +4835,9 @@ game.import("character", function () {
if (!lib.skill.oltianhou.derivation.includes(skill)) event.finish();
else {
event.weather_skill = skill;
- player
- .chooseTarget(
- true,
- "令一名角色获得技能【" + get.translation(skill) + "】",
- get.translation(skill + "_info")
- )
- .set("ai", function (target) {
- return get.attitude(_status.event.player, target);
- });
+ player.chooseTarget(true, "令一名角色获得技能【" + get.translation(skill) + "】", get.translation(skill + "_info")).set("ai", function (target) {
+ return get.attitude(_status.event.player, target);
+ });
}
"step 4";
if (result.bool) {
@@ -5964,11 +4845,7 @@ game.import("character", function () {
player.line(target, "green");
target.addAdditionalSkill("oltianhou_" + player.playerid, event.weather_skill);
player.addTempSkill("oltianhou_expire", { player: "phaseZhunbeiBegin" });
- game.log(
- target,
- "获得了天气技能",
- "#g【" + get.translation(event.weather_skill) + "】"
- );
+ game.log(target, "获得了天气技能", "#g【" + get.translation(event.weather_skill) + "】");
game.broadcastAll(function (bg) {
_status.tempBackground = bg;
game.updateBackground();
@@ -6007,16 +4884,12 @@ game.import("character", function () {
mark: true,
marktext: "雨",
intro: {
- content:
- "锁定技。其他角色造成火属性伤害时,取消之;一名角色受到雷属性伤害后,所有与其座次相邻的角色失去1点体力。",
+ content: "锁定技。其他角色造成火属性伤害时,取消之;一名角色受到雷属性伤害后,所有与其座次相邻的角色失去1点体力。",
},
trigger: { global: "damageEnd" },
forced: true,
filter: function (event) {
- return (
- event.hasNature("thunder") &&
- lib.skill.oltianhou_spade.logTarget(event).length > 0
- );
+ return event.hasNature("thunder") && lib.skill.oltianhou_spade.logTarget(event).length > 0;
},
logTarget: function (event) {
var list = [];
@@ -6037,21 +4910,11 @@ game.import("character", function () {
ai: {
effect: {
player: function (card, player, target, current) {
- if (
- ((typeof card == "object" && game.hasNature(card, "fire")) ||
- get.tag(card, "fireDamage")) &&
- !player.hasSkill("oltianhou_spade")
- )
- return "zeroplayertarget";
- if (
- (typeof card == "object" && game.hasNature(card, "thunder")) ||
- get.tag(card, "thunderDamage")
- ) {
+ if (((typeof card == "object" && game.hasNature(card, "fire")) || get.tag(card, "fireDamage")) && !player.hasSkill("oltianhou_spade")) return "zeroplayertarget";
+ if ((typeof card == "object" && game.hasNature(card, "thunder")) || get.tag(card, "thunderDamage")) {
var list = lib.skill.oltianhou_spade.logTarget({ player: target });
var eff = list.reduce(function (eff, current) {
- eff +=
- get.effect(current, { name: "losehp" }, player, player) /
- get.attitude(player, player);
+ eff += get.effect(current, { name: "losehp" }, player, player) / get.attitude(player, player);
}, 0);
return [1, eff];
}
@@ -6065,12 +4928,7 @@ game.import("character", function () {
forced: true,
logTarget: "source",
filter: function (event, player) {
- return (
- event.hasNature("fire") &&
- event.source &&
- event.source.isIn() &&
- event.source != player
- );
+ return event.hasNature("fire") && event.source && event.source.isIn() && event.source != player;
},
content: function () {
trigger.cancel();
@@ -6081,8 +4939,7 @@ game.import("character", function () {
mark: true,
marktext: "暑",
intro: {
- content:
- "锁定技。其他角色的结束阶段开始时,若其体力值为全场最大,则其失去1点体力。",
+ content: "锁定技。其他角色的结束阶段开始时,若其体力值为全场最大,则其失去1点体力。",
},
trigger: { global: "phaseJieshuBegin" },
forced: true,
@@ -6120,8 +4977,7 @@ game.import("character", function () {
mark: true,
marktext: "霜",
intro: {
- content:
- "锁定技。其他角色的结束阶段开始时,若其体力值为全场最小,则其失去1点体力。",
+ content: "锁定技。其他角色的结束阶段开始时,若其体力值为全场最小,则其失去1点体力。",
},
trigger: { global: "phaseJieshuBegin" },
forced: true,
@@ -6138,14 +4994,7 @@ game.import("character", function () {
ai: {
nokeep: true,
skillTagFilter: function (player, tag, arg) {
- return (
- _status.event &&
- _status.event.type == "phase" &&
- (!arg || (arg.card && get.name(arg.card) === "tao")) &&
- !player.hasSkill("oltianhou_club") &&
- player.isMinHp() &&
- get.effect(player, { name: "losehp" }, player, player) < 0
- );
+ return _status.event && _status.event.type == "phase" && (!arg || (arg.card && get.name(arg.card) === "tao")) && !player.hasSkill("oltianhou_club") && player.isMinHp() && get.effect(player, { name: "losehp" }, player, player) < 0;
},
},
},
@@ -6154,23 +5003,13 @@ game.import("character", function () {
mark: true,
marktext: "雾",
intro: {
- content:
- "锁定技。其他角色使用【杀】指定与其座次不相邻唯一目标时,则其判定。若判定结果的点数大于此【杀】,则此【杀】对其无效。",
+ content: "锁定技。其他角色使用【杀】指定与其座次不相邻唯一目标时,则其判定。若判定结果的点数大于此【杀】,则此【杀】对其无效。",
},
trigger: { global: "useCardToPlayer" },
forced: true,
filter: function (event, player) {
- if (
- event.card.name != "sha" ||
- event.player == player ||
- event.targets.length != 1 ||
- !event.player.isIn()
- )
- return false;
- return (
- event.target != event.player.getNext() &&
- event.target != event.player.getPrevious()
- );
+ if (event.card.name != "sha" || event.player == player || event.targets.length != 1 || !event.player.isIn()) return false;
+ return event.target != event.player.getNext() && event.target != event.player.getPrevious();
},
logTarget: "player",
content: function () {
@@ -6178,12 +5017,12 @@ game.import("character", function () {
var num = get.number(trigger.card);
event.num = num;
trigger.player
- .judge((card) => {
+ .judge(card => {
var num = get.number(card),
num2 = _status.event.getParent("oltianhou_diamond").num;
return num > num2 ? -4 : 4;
})
- .set("judge2", (result) => {
+ .set("judge2", result => {
if (result.bool == false) return true;
return false;
});
@@ -6199,12 +5038,7 @@ game.import("character", function () {
ai: {
effect: {
player: function (card, player, target) {
- if (
- get.name(card) == "sha" &&
- !player.hasSkill("oltianhou_diamond") &&
- target != player.getNext() &&
- target != player.getPrevious()
- ) {
+ if (get.name(card) == "sha" && !player.hasSkill("oltianhou_diamond") && target != player.getNext() && target != player.getPrevious()) {
let num = get.number(card),
max = _status.aiyh_MAXNUM || 13;
return [num / max, 0, num / max, 0];
@@ -6225,22 +5059,15 @@ game.import("character", function () {
hasSame: function (info, card) {
if (info.type == get.type2(card, false)) return true;
if (info.suit != "none" && info.suit == get.suit(card, false)) return true;
- if (
- typeof info.number == "number" &&
- info.number > 0 &&
- info.number == get.number(card, false)
- )
- return true;
+ if (typeof info.number == "number" && info.number > 0 && info.number == get.number(card, false)) return true;
return info.length == get.cardNameLength(card);
},
content: function () {
"step 0";
- player
- .chooseCard("h", get.prompt("olchenshuo"), "展示一张手牌,然后展示并获得牌堆顶的牌")
- .set("ai", function (card) {
- if (get.type(card) == "basic") return 1 + Math.random();
- return Math.random();
- });
+ player.chooseCard("h", get.prompt("olchenshuo"), "展示一张手牌,然后展示并获得牌堆顶的牌").set("ai", function (card) {
+ if (get.type(card) == "basic") return 1 + Math.random();
+ return Math.random();
+ });
"step 1";
if (result.bool) {
player.logSkill("olchenshuo");
@@ -6257,11 +5084,7 @@ game.import("character", function () {
event.includeOut = true;
} else event.finish();
"step 2";
- var judgestr =
- get.translation(player) +
- "展示的第" +
- get.cnNumber(cards.length + 1, true) +
- "张【谶说】牌";
+ var judgestr = get.translation(player) + "展示的第" + get.cnNumber(cards.length + 1, true) + "张【谶说】牌";
event.videoId = lib.status.videoId++;
var card = get.cards()[0];
event.card = card;
@@ -6306,12 +5129,7 @@ game.import("character", function () {
ui.arena.classList.remove("thrownhighlight");
}, event.videoId);
game.addVideo("judge2", null, event.videoId);
- if (
- cards.length < 3 &&
- player.isIn() &&
- lib.skill.olchenshuo.hasSame(event.cardInfo, card)
- )
- event.goto(2);
+ if (cards.length < 3 && player.isIn() && lib.skill.olchenshuo.hasSame(event.cardInfo, card)) event.goto(2);
else {
game.broadcastAll(function () {
ui.clear();
@@ -6330,37 +5148,20 @@ game.import("character", function () {
var card = event.card;
if (card.name != "sha") return false;
if (event.player == player) {
- return game.hasPlayer((current) => {
- return (
- current.isIn() &&
- !event.targets.includes(current) &&
- player.canUse(card, current)
- );
+ return game.hasPlayer(current => {
+ return current.isIn() && !event.targets.includes(current) && player.canUse(card, current);
});
}
- return (
- event.player.isIn() &&
- !event.targets.includes(player) &&
- event.player.canUse(card, player)
- );
+ return event.player.isIn() && !event.targets.includes(player) && event.player.canUse(card, player);
},
direct: true,
content: function () {
"step 0";
if (trigger.player == player) {
player
- .chooseTarget(
- get.prompt("olguangao"),
- "为" +
- get.translation(trigger.card) +
- "额外指定一个目标。然后若你手牌数为偶数,你摸一张牌并令此牌对任意目标无效。",
- (card, player, target) => {
- return (
- !_status.event.sourcex.includes(target) &&
- player.canUse(_status.event.card, target)
- );
- }
- )
+ .chooseTarget(get.prompt("olguangao"), "为" + get.translation(trigger.card) + "额外指定一个目标。然后若你手牌数为偶数,你摸一张牌并令此牌对任意目标无效。", (card, player, target) => {
+ return !_status.event.sourcex.includes(target) && player.canUse(_status.event.card, target);
+ })
.set("sourcex", trigger.targets)
.set("ai", function (target) {
var player = _status.event.player;
@@ -6371,7 +5172,7 @@ game.import("character", function () {
player.isPhaseUsing() &&
!player.getStat().skill.olxieju &&
get.attitude(player, target) > 0 &&
- !game.hasGlobalHistory("useCard", (evt) => {
+ !game.hasGlobalHistory("useCard", evt => {
return evt.targets && evt.targets.includes(target);
})
)
@@ -6381,12 +5182,7 @@ game.import("character", function () {
.set("card", trigger.card);
} else {
trigger.player
- .chooseBool(
- "是否发动" + get.translation(player) + "的【犷骜】?",
- "令其成为" +
- get.translation(trigger.card) +
- "的额外目标。然后若其手牌数为偶数,其摸一张牌并令此牌对任意目标无效。"
- )
+ .chooseBool("是否发动" + get.translation(player) + "的【犷骜】?", "令其成为" + get.translation(trigger.card) + "的额外目标。然后若其手牌数为偶数,其摸一张牌并令此牌对任意目标无效。")
.set("ai", () => {
return _status.event.bool;
})
@@ -6398,8 +5194,7 @@ game.import("character", function () {
if (att > 0) return true;
return false;
}
- if (get.effect(player, trigger.card, trigger.player, trigger.player) > 0)
- return true;
+ if (get.effect(player, trigger.card, trigger.player, trigger.player) > 0) return true;
return false;
})()
);
@@ -6420,23 +5215,11 @@ game.import("character", function () {
if (player.countCards("h") % 2 == 0) {
player.draw();
player
- .chooseTarget(
- "犷骜:令此杀对其任意个目标无效",
- [1, Infinity],
- (card, player, target) => {
- return _status.event.targetsx.includes(target);
- }
- )
- .set("ai", (target) => {
- return (
- 1 -
- get.effect(
- target,
- _status.event.getTrigger().card,
- _status.event.player,
- _status.event.player
- )
- );
+ .chooseTarget("犷骜:令此杀对其任意个目标无效", [1, Infinity], (card, player, target) => {
+ return _status.event.targetsx.includes(target);
+ })
+ .set("ai", target => {
+ return 1 - get.effect(target, _status.event.getTrigger().card, _status.event.player, _status.event.player);
})
.set("targetsx", trigger.targets);
} else event.finish();
@@ -6459,7 +5242,7 @@ game.import("character", function () {
derivation: "olxieju",
filter: function (event, player) {
var targets = [];
- game.getGlobalHistory("useCard", (evt) => {
+ game.getGlobalHistory("useCard", evt => {
if (evt.targets && evt.targets.length) {
targets.addArray(evt.targets);
}
@@ -6483,7 +5266,7 @@ game.import("character", function () {
onChooseToUse: function (event) {
if (!event.olxieju && !game.online) {
var targets = [];
- game.getGlobalHistory("useCard", (evt) => {
+ game.getGlobalHistory("useCard", evt => {
if (evt.targets && evt.targets.length) {
targets.addArray(evt.targets);
}
@@ -6522,7 +5305,7 @@ game.import("character", function () {
enable: "phaseUse",
usable: 2,
filter: function (event, player) {
- return game.hasPlayer((current) => {
+ return game.hasPlayer(current => {
return lib.skill.olzhenying.filterTarget(null, player, current);
});
},
@@ -6708,19 +5491,14 @@ game.import("character", function () {
event.player = player;
var num = player.countCards("h");
if (num >= 2) {
- var cards = player.getCards("h", (card) => {
+ var cards = player.getCards("h", card => {
return lib.filter.cardDiscardable(card, player, "olzhenying");
});
if (cards.length < num - 2) event._result = { cards: cards };
else
- player.chooseCard(
- "镇荧:请将手牌弃置至至多两张",
- [num - 2, num],
- true,
- (card, player, target) => {
- return lib.filter.cardDiscardable(card, player, "olzhenying");
- }
- );
+ player.chooseCard("镇荧:请将手牌弃置至至多两张", [num - 2, num], true, (card, player, target) => {
+ return lib.filter.cardDiscardable(card, player, "olzhenying");
+ });
event.goto(2);
} else {
var choices = ["零", "一", "二"];
@@ -6735,20 +5513,15 @@ game.import("character", function () {
var num = result.index;
var len = player.countCards("h");
if (len > num) {
- var cards = player.getCards("h", (card) => {
+ var cards = player.getCards("h", card => {
return lib.filter.cardDiscardable(card, player, "olzhenying");
});
if (num == 0 || cards.length < len - num) {
event._result = { cards: cards };
} else
- player.chooseCard(
- "镇荧:请将手牌弃置至" + get.cnNumber(num) + "张",
- len - num,
- true,
- (card, player, target) => {
- return lib.filter.cardDiscardable(card, player, "olzhenying");
- }
- );
+ player.chooseCard("镇荧:请将手牌弃置至" + get.cnNumber(num) + "张", len - num, true, (card, player, target) => {
+ return lib.filter.cardDiscardable(card, player, "olzhenying");
+ });
} else event._result = { cards: num - len };
"step 2";
if (result && result.cards) {
@@ -6759,7 +5532,7 @@ game.import("character", function () {
ai: {
order: function (item, player) {
if (
- game.hasPlayer((current) => {
+ game.hasPlayer(current => {
return current.countCards("h") < player.countCards("h");
})
)
@@ -6772,11 +5545,7 @@ game.import("character", function () {
return Math.sqrt(Math.abs(delt)) * Math.sign(delt) + 0.1;
},
target: function (player, target) {
- if (
- get.attitude(player, target) > 0 &&
- target.countCards("h") + player.countCards("h") <= 3
- )
- return 1;
+ if (get.attitude(player, target) > 0 && target.countCards("h") + player.countCards("h") <= 3) return 1;
return get.sgn(get.effect(target, { name: "juedou" }, player, target)) * 1.2;
},
},
@@ -6790,7 +5559,7 @@ game.import("character", function () {
},
filter: function (event, player) {
var list = [];
- game.countPlayer((current) => {
+ game.countPlayer(current => {
if (current.group != player.group) return false;
var listx = lib.skill.olgoude.getActed(current);
list.addArray(listx);
@@ -6800,15 +5569,15 @@ game.import("character", function () {
getActed: function (target) {
var list = [];
if (
- target.hasHistory("gain", (evt) => {
+ target.hasHistory("gain", evt => {
return evt.getParent().name == "draw" && evt.cards.length == 1;
})
) {
list.push(1);
}
if (
- game.hasPlayer2((current) => {
- return current.hasHistory("lose", (evt) => {
+ game.hasPlayer2(current => {
+ return current.hasHistory("lose", evt => {
if (evt.type != "discard") return false;
if ((evt.discarder || evt.getParent(2).player) != target) return false;
var evtx = evt.getl(current);
@@ -6820,7 +5589,7 @@ game.import("character", function () {
list.push(2);
}
if (
- target.hasHistory("useCard", (evt) => {
+ target.hasHistory("useCard", evt => {
if (evt.card.name == "sha" && evt.cards && !evt.cards.length) return true;
return false;
})
@@ -6828,7 +5597,7 @@ game.import("character", function () {
list.push(3);
}
if (
- target.hasHistory("custom", (evt) => {
+ target.hasHistory("custom", evt => {
return evt.name == "changeGroup";
})
) {
@@ -6840,7 +5609,7 @@ game.import("character", function () {
content: function () {
"step 0";
var list = [1, 2, 3, 4];
- game.countPlayer((current) => {
+ game.countPlayer(current => {
if (current.group != player.group) return false;
var listx = lib.skill.olgoude.getActed(current);
list.removeArray(listx);
@@ -6849,7 +5618,7 @@ game.import("character", function () {
var nochai = false,
nosha = false;
if (
- !game.hasPlayer((current) => {
+ !game.hasPlayer(current => {
return current.countDiscardableCards(player, "h");
})
) {
@@ -6857,22 +5626,17 @@ game.import("character", function () {
list2.remove(2);
}
if (
- !game.hasPlayer((current) => {
+ !game.hasPlayer(current => {
return player.canUse({ name: "sha", isCard: true }, current, true, false);
})
) {
nosha = true;
list2.remove(3);
}
- var choices = list2.map((i) => {
+ var choices = list2.map(i => {
return "选项" + get.cnNumber(i, true);
});
- var choiceList = [
- "摸一张牌",
- "弃置一名角色的一张手牌",
- "视为使用一张【杀】",
- "将势力改为任意一个势力",
- ].map((text, ind) => {
+ var choiceList = ["摸一张牌", "弃置一名角色的一张手牌", "视为使用一张【杀】", "将势力改为任意一个势力"].map((text, ind) => {
var hint = "";
if (list2.includes(ind + 1)) {
return text;
@@ -6906,29 +5670,24 @@ game.import("character", function () {
case "选项二":
return Math.max.apply(
Math,
- game.filterPlayer().map((current) => {
+ game.filterPlayer().map(current => {
if (current.hasSkillTag("noh")) return -1;
- return (
- -1.5 * get.attitude(player, current) -
- Math.max(0, current.countCards("h") - 2) / 3
- );
+ return -1.5 * get.attitude(player, current) - Math.max(0, current.countCards("h") - 2) / 3;
})
);
case "选项三":
return player.getUseValue({ name: "sha" });
case "选项四":
var myPopulation =
- game.countPlayer((current) => {
+ game.countPlayer(current => {
return current.group == player.group;
}) - 1;
var value = Math.max.apply(
Math,
- lib.group.map((group) => {
+ lib.group.map(group => {
return (
- game.countPlayer((current) => {
- return (
- current.group == group && current != player
- );
+ game.countPlayer(current => {
+ return current.group == group && current != player;
}) - myPopulation
);
})
@@ -6938,7 +5697,7 @@ game.import("character", function () {
return 0;
}
};
- var choicesx = choices.map((choice) => {
+ var choicesx = choices.map(choice => {
return [choice, fn(choice)];
});
choicesx = choicesx.sort((a, b) => {
@@ -6962,14 +5721,10 @@ game.import("character", function () {
选项二: function () {
"step 0";
player
- .chooseTarget(
- "苟得:弃置一名角色的一张手牌",
- true,
- (card, player, target) => {
- return target.countDiscardableCards(player, "h");
- }
- )
- .set("ai", (target) => {
+ .chooseTarget("苟得:弃置一名角色的一张手牌", true, (card, player, target) => {
+ return target.countDiscardableCards(player, "h");
+ })
+ .set("ai", target => {
if (target.hasSkillTag("noh")) return 0;
return -get.attitude(_status.event.player, target);
});
@@ -6987,20 +5742,17 @@ game.import("character", function () {
}
},
选项三: function () {
- player
- .chooseUseTarget("sha", true, false)
- .set("logSkill", "olgoude")
- .set("prompt", "苟得:选择【杀】的目标");
+ player.chooseUseTarget("sha", true, false).set("logSkill", "olgoude").set("prompt", "苟得:选择【杀】的目标");
},
选项四: function () {
"step 0";
var list = lib.group.slice();
var maxGroup = list.slice().sort((a, b) => {
return (
- game.countPlayer((current) => {
+ game.countPlayer(current => {
return current.group == b && current != player;
}) -
- game.countPlayer((current) => {
+ game.countPlayer(current => {
return current.group == a && current != player;
})
);
@@ -7036,7 +5788,7 @@ game.import("character", function () {
if (
typeof card == "object" &&
card.cards &&
- card.cards.some((card) => {
+ card.cards.some(card => {
return get.position(card) == "h";
}) &&
!get.tag(card, "draw") &&
@@ -7044,12 +5796,12 @@ game.import("character", function () {
!get.tag(card, "discard") &&
player == _status.currentPhase &&
player.needsToDiscard() == 1 &&
- game.countPlayer((current) => {
+ game.countPlayer(current => {
return current.group == player.group && current != player;
}) <= 1 &&
- lib.group.some((group) => {
+ lib.group.some(group => {
return (
- game.countPlayer((current) => {
+ game.countPlayer(current => {
return current.group == group && current != player;
}) > 2
);
@@ -7104,10 +5856,8 @@ game.import("character", function () {
},
content: function () {
"step 0";
- var hs = player.getCards("h", (card) => {
- return (
- get.name(card) != "shan" && lib.filter.cardDiscardable(card, player, "olpianan")
- );
+ var hs = player.getCards("h", card => {
+ return get.name(card) != "shan" && lib.filter.cardDiscardable(card, player, "olpianan");
});
if (hs.length) player.discard(hs);
"step 1";
@@ -7159,12 +5909,7 @@ game.import("character", function () {
.set("prompt", "殷积:回复1点体力或加1点体力上限")
.set("ai", () => {
var player = _status.event.player;
- if (
- !player.isDamaged() ||
- (player.hp > 3 && player.getDamagedHp() == 1) ||
- player.maxHp < 3
- )
- return 1;
+ if (!player.isDamaged() || (player.hp > 3 && player.getDamagedHp() == 1) || player.maxHp < 3) return 1;
return 0;
});
"step 1";
@@ -7183,19 +5928,15 @@ game.import("character", function () {
"step 1";
player
.chooseButton(["窥伺:是否使用其中的一张牌?", cards])
- .set("filterButton", (button) => {
+ .set("filterButton", button => {
return _status.event.player.hasUseTarget(button.link);
})
- .set("ai", (button) => {
+ .set("ai", button => {
var player = _status.event.player,
card = button.link,
cards = _status.event.getParent().cards;
var val = player.getUseValue(card) + 0.01;
- if (
- (val > 0 && cards.length > 1) ||
- (val > 4 && cards.length == 1 && (player.maxHp > 3 || player.isDamaged()))
- )
- return get.order(card) + val / 5;
+ if ((val > 0 && cards.length > 1) || (val > 4 && cards.length == 1 && (player.maxHp > 3 || player.isDamaged()))) return get.order(card) + val / 5;
return 0;
});
"step 2";
@@ -7207,8 +5948,7 @@ game.import("character", function () {
player.chooseUseTarget(true, card, false);
} else event.goto(4);
"step 3";
- if (cards.some((i) => get.position(i, true) == "o" && player.hasUseTarget(i)))
- event.goto(1);
+ if (cards.some(i => get.position(i, true) == "o" && player.hasUseTarget(i))) event.goto(1);
"step 4";
if (cards.length != 1 && cards.length != 2) {
player.loseMaxHp();
@@ -7228,10 +5968,8 @@ game.import("character", function () {
for (var bool of [true, false]) {
var targeted = player.getStorage("olzhuyan_" + bool);
if (
- game.hasPlayer((current) => {
- return (
- !targeted.includes(current) && lib.skill.olzhuyan.getNum(current, bool)
- );
+ game.hasPlayer(current => {
+ return !targeted.includes(current) && lib.skill.olzhuyan.getNum(current, bool);
})
)
return true;
@@ -7255,7 +5993,7 @@ game.import("character", function () {
var map = {};
for (var bool of [true, false]) {
var targeted = player.getStorage("olzhuyan_" + bool);
- game.countPlayer((current) => {
+ game.countPlayer(current => {
if (targeted.includes(current)) return false;
if (!map[current.playerid]) map[current.playerid] = [];
map[current.playerid][bool ? 1 : 0] = lib.skill.olzhuyan.getNum(current, bool);
@@ -7263,16 +6001,12 @@ game.import("character", function () {
}
event.map = map;
player
- .chooseTarget(
- get.prompt("olzhuyan"),
- "令一名角色将{体力值/手牌数}调整至与其上个准备阶段相同(“--”表示已对其发动过该分支)",
- (card, player, target) => {
- var list = _status.event.map[target.playerid];
- return list && (list[0] || list[1]);
- }
- )
+ .chooseTarget(get.prompt("olzhuyan"), "令一名角色将{体力值/手牌数}调整至与其上个准备阶段相同(“--”表示已对其发动过该分支)", (card, player, target) => {
+ var list = _status.event.map[target.playerid];
+ return list && (list[0] || list[1]);
+ })
.set("map", map)
- .set("targetprompt", (target) => {
+ .set("targetprompt", target => {
var list = _status.event.map[target.playerid];
var str = "";
for (var i = 0; i < 2; i++) {
@@ -7284,7 +6018,7 @@ game.import("character", function () {
}
return str.slice(0, -1);
})
- .set("ai", (target) => {
+ .set("ai", target => {
var list = _status.event.map[target.playerid];
var att = get.attitude(_status.event.player, target);
var v1 = list[0],
@@ -7301,22 +6035,7 @@ game.import("character", function () {
if (list[0] && list[1]) {
player
.chooseControl(choices)
- .set("choiceList", [
- "令" +
- get.translation(target) +
- (list[0] > 0 ? "回复" : "失去") +
- Math.abs(list[0]) +
- "点体力" +
- (list[0] < 0 ? "(至多失去至1)" : ""),
- "令" +
- get.translation(target) +
- (list[1] > 0 ? "摸" : "弃置") +
- get.cnNumber(Math.abs(list[1])) +
- "张" +
- (list[1] > 0 ? "" : "手") +
- "牌" +
- (list[1] > 0 ? "(至多摸至5)" : ""),
- ])
+ .set("choiceList", ["令" + get.translation(target) + (list[0] > 0 ? "回复" : "失去") + Math.abs(list[0]) + "点体力" + (list[0] < 0 ? "(至多失去至1)" : ""), "令" + get.translation(target) + (list[1] > 0 ? "摸" : "弃置") + get.cnNumber(Math.abs(list[1])) + "张" + (list[1] > 0 ? "" : "手") + "牌" + (list[1] > 0 ? "(至多摸至5)" : "")])
.set("prompt", "驻颜:请选择一项")
.set("ai", () => _status.event.choice)
.set(
@@ -7351,9 +6070,7 @@ game.import("character", function () {
if (num > 0) target.draw(num);
} else {
num = -num;
- target
- .chooseToDiscard(num, true)
- .set("prompt", "驻颜:请弃置" + get.cnNumber(Math.abs(num)) + "张手牌");
+ target.chooseToDiscard(num, true).set("prompt", "驻颜:请弃置" + get.cnNumber(Math.abs(num)) + "张手牌");
}
}
},
@@ -7373,17 +6090,11 @@ game.import("character", function () {
content: function () {
if (!_status.olzhuyan) _status.olzhuyan = {};
if (event.triggername == "phaseBefore") {
- game.countPlayer((current) => {
- _status.olzhuyan[current.playerid] = [
- current.hp,
- current.countCards("h"),
- ];
+ game.countPlayer(current => {
+ _status.olzhuyan[current.playerid] = [current.hp, current.countCards("h")];
});
} else {
- _status.olzhuyan[trigger.player.playerid] = [
- trigger.player.hp,
- trigger.player.countCards("h"),
- ];
+ _status.olzhuyan[trigger.player.playerid] = [trigger.player.hp, trigger.player.countCards("h")];
}
},
},
@@ -7396,11 +6107,8 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("olleijie"),
- "令一名角色判定。若结果为♠2~9,其受到2点雷电伤害,否则其摸两张牌。"
- )
- .set("ai", (target) => {
+ .chooseTarget(get.prompt("olleijie"), "令一名角色判定。若结果为♠2~9,其受到2点雷电伤害,否则其摸两张牌。")
+ .set("ai", target => {
var player = _status.event.player,
sgn = _status.event.sgn;
if (sgn > 0) {
@@ -7414,7 +6122,7 @@ game.import("character", function () {
"sgn",
(function () {
var sgn = 0;
- game.countPlayer((current) => {
+ game.countPlayer(current => {
if (!current.hasSkillTag("rejudge")) return;
sgn = get.sgnAttitude(player, current);
});
@@ -7427,12 +6135,12 @@ game.import("character", function () {
event.target = target;
player.logSkill("olleijie", target);
target
- .judge((card) => {
+ .judge(card => {
var number = get.number(card);
if (get.suit(card) == "spade" && number >= 2 && number <= 9) return -4;
return 2;
})
- .set("judge2", (result) => {
+ .set("judge2", result => {
return result.bool === false ? true : false;
});
} else event.finish();
@@ -7452,12 +6160,12 @@ game.import("character", function () {
async content(event, trigger, player) {
const target = event.target,
result = await target
- .judge((card) => {
+ .judge(card => {
var number = get.number(card);
if (get.suit(card) == "spade" && number >= 2 && number <= 9) return -4;
return 2;
})
- .set("judge2", (result) => {
+ .set("judge2", result => {
return result.bool === false ? true : false;
})
.forResult();
@@ -7479,7 +6187,7 @@ game.import("character", function () {
eff = 0,
num = get.attitude(player, target);
const card = new lib.element.VCard({ name: "sha", nature: "thunder" });
- game.countPlayer((current) => {
+ game.countPlayer(current => {
if (!current.hasSkillTag("rejudge")) return;
sgn = get.sgnAttitude(player, current);
});
@@ -7507,11 +6215,9 @@ game.import("character", function () {
var target = trigger.player;
event.target = target;
var bool1 = target.isMinHandcard() && !player.hasSkill("olhongji_min"),
- str1 =
- "其手牌数为全场最少。你可以令其于本回合摸牌阶段结束后执行一个额外的摸牌阶段,然后本轮你不能再发动该分支。";
+ str1 = "其手牌数为全场最少。你可以令其于本回合摸牌阶段结束后执行一个额外的摸牌阶段,然后本轮你不能再发动该分支。";
var bool2 = target.isMaxHandcard() && !player.hasSkill("olhongji_max"),
- str2 =
- "其手牌数为全场最多。你可以令其于本回合出牌阶段结束后执行一个额外的出牌阶段,然后本轮你不能再发动该分支。";
+ str2 = "其手牌数为全场最多。你可以令其于本回合出牌阶段结束后执行一个额外的出牌阶段,然后本轮你不能再发动该分支。";
if (bool1 && !bool2) {
event.branch = 0;
player
@@ -7534,9 +6240,7 @@ game.import("character", function () {
.set("prompt", get.prompt("olhongji", target))
.set("choiceList", [str1.slice(13), str2.slice(13)])
.set("ai", () => _status.event.bool)
- .set("bool", () =>
- get.attitude(player, trigger.player) > 1 ? [0, 1].randomGet() : "cancel2"
- );
+ .set("bool", () => (get.attitude(player, trigger.player) > 1 ? [0, 1].randomGet() : "cancel2"));
}
"step 1";
var choice = -1;
@@ -7640,17 +6344,16 @@ game.import("character", function () {
});
player
.chooseButton([get.prompt("olxinggu"), cards])
- .set("ai", (button) => {
+ .set("ai", button => {
if (_status.event.toChoose == button.link) return 1;
return 0;
})
.set(
"toChoose",
!event.aiCancel &&
- cards.find((card) => {
- return game.hasPlayer((current) => {
- if (!lib.skill.zhijian.filterTarget(card, player, current))
- return false;
+ cards.find(card => {
+ return game.hasPlayer(current => {
+ if (!lib.skill.zhijian.filterTarget(card, player, current)) return false;
return get.effect(current, card, player, player) > 0;
});
})
@@ -7660,11 +6363,8 @@ game.import("character", function () {
var card = result.links[0];
event.card = card;
player
- .chooseTarget(
- "将" + get.translation(card) + "置入一名其他角色的装备区",
- lib.skill.zhijian.filterTarget
- )
- .set("ai", (target) => {
+ .chooseTarget("将" + get.translation(card) + "置入一名其他角色的装备区", lib.skill.zhijian.filterTarget)
+ .set("ai", target => {
var player = _status.event.player;
return get.effect(target, _status.event.card, player, player);
})
@@ -7697,7 +6397,7 @@ game.import("character", function () {
"step 3";
target.equip(card);
"step 4";
- var card = get.cardPile2((cardx) => {
+ var card = get.cardPile2(cardx => {
return get.suit(cardx) == "diamond";
});
if (card) player.gain(card, "gain2");
@@ -7715,10 +6415,7 @@ game.import("character", function () {
enable: "phaseUse",
usable: 1,
filterTarget: function (card, player, target) {
- return (
- !player.getStorage("olzenrun").includes(target) &&
- target.countCards("e") != player.countCards("h")
- );
+ return !player.getStorage("olzenrun").includes(target) && target.countCards("e") != player.countCards("h");
},
content: function () {
"step 0";
@@ -7735,7 +6432,7 @@ game.import("character", function () {
order: 5,
result: {
player: function (player, target) {
- return player.countCards("h", (card) => {
+ return player.countCards("h", card => {
return get.value(card) > 6;
}) >= target.countCards("e")
? 0
@@ -7760,11 +6457,7 @@ game.import("character", function () {
for (var cardx of cards2) {
var type = get.type2(cardx, player);
var card = get.discardPile(function (card) {
- return (
- get.type(card, false) == type &&
- !cards2.includes(card) &&
- !cards.includes(card)
- );
+ return get.type(card, false) == type && !cards2.includes(card) && !cards.includes(card);
});
if (card) cards.push(card);
}
@@ -7779,7 +6472,7 @@ game.import("character", function () {
filter: function (event, player) {
return (
!player.hasSkill("olzenrun_used") &&
- game.hasPlayer((current) => {
+ game.hasPlayer(current => {
return (
!player.getStorage("olzenrun").includes(current) &&
current != player &&
@@ -7798,20 +6491,16 @@ game.import("character", function () {
"step 0";
var num = trigger.num;
player
- .chooseTarget(
- get.prompt("olzenrun"),
- "改为获得一名其他角色" + get.cnNumber(num) + "张牌",
- (card, player, target) => {
- return (
- !player.getStorage("olzenrun").includes(target) &&
- target != player &&
- target.hasCard(function (card) {
- return lib.filter.canBeGained(card, player, target);
- }, "he")
- );
- }
- )
- .set("ai", (target) => {
+ .chooseTarget(get.prompt("olzenrun"), "改为获得一名其他角色" + get.cnNumber(num) + "张牌", (card, player, target) => {
+ return (
+ !player.getStorage("olzenrun").includes(target) &&
+ target != player &&
+ target.hasCard(function (card) {
+ return lib.filter.canBeGained(card, player, target);
+ }, "he")
+ );
+ })
+ .set("ai", target => {
return get.attitude(_status.event.player, target) / 5 + Math.random() + 2.5;
});
"step 1";
@@ -7819,14 +6508,7 @@ game.import("character", function () {
var target = result.targets[0];
event.target = target;
player.logSkill("olzenrun", target);
- player.addTempSkill("olzenrun_used", [
- "phaseZhunbeiAfter",
- "phaseJudgeAfter",
- "phaseDrawAfter",
- "phaseUseAfter",
- "phaseDiscardAfter",
- "phaseJieshuAfter",
- ]);
+ player.addTempSkill("olzenrun_used", ["phaseZhunbeiAfter", "phaseJudgeAfter", "phaseDrawAfter", "phaseUseAfter", "phaseDiscardAfter", "phaseJieshuAfter"]);
trigger.cancel();
player.gainPlayerCard(target, trigger.num, "he", true);
}
@@ -7837,21 +6519,13 @@ game.import("character", function () {
event.num = num;
target
.chooseControl()
- .set("choiceList", [
- "摸" + get.cnNumber(num) + "张牌",
- "令其不能再对你发动〖险诐〗和〖谮润〗",
- ])
+ .set("choiceList", ["摸" + get.cnNumber(num) + "张牌", "令其不能再对你发动〖险诐〗和〖谮润〗"])
.set("prompt", get.translation(player) + "对你发动了【谮润】,请选择一项")
.set("ai", () => {
if (_status.event.bool) return 0;
return 1;
})
- .set(
- "bool",
- get.attitude(target, player) > 0 ||
- (num == 1 && Math.random() < 0.5) ||
- num >= 2
- );
+ .set("bool", get.attitude(target, player) > 0 || (num == 1 && Math.random() < 0.5) || num >= 2);
} else event.finish();
"step 3";
game.log(target, "选择了", "#y" + result.control);
@@ -7873,7 +6547,7 @@ game.import("character", function () {
trigger: { global: "phaseEnd" },
filter: function (event, player) {
return (
- player.countCards("h", (card) => {
+ player.countCards("h", card => {
return card.hasGaintag("oldaili_tag");
}) %
2 ==
@@ -7883,8 +6557,7 @@ game.import("character", function () {
group: "oldaili_record",
locked: false,
check: function (event, player) {
- if (get.distance(event.player, player, "absolute") == 1 && !player.isTurnedOver())
- return false;
+ if (get.distance(event.player, player, "absolute") == 1 && !player.isTurnedOver()) return false;
return true;
},
content: function () {
@@ -7893,18 +6566,13 @@ game.import("character", function () {
},
mod: {
aiValue: function (player, card, num) {
- if (num < 0 || get.itemtype(card) != "card" || !card.hasGaintag("oldaili_tag"))
- return;
- if (
- get.distance(_status.currentPhase, player, "absolute") == 1 &&
- !player.isTurnedOver()
- )
- return;
- let dai = player.countCards("h", (card) => {
+ if (num < 0 || get.itemtype(card) != "card" || !card.hasGaintag("oldaili_tag")) return;
+ if (get.distance(_status.currentPhase, player, "absolute") == 1 && !player.isTurnedOver()) return;
+ let dai = player.countCards("h", card => {
return card.hasGaintag("oldaili_tag");
});
if (ui.selected.cards && ui.selected.cards.length)
- dai += ui.selected.cards.filter((card) => {
+ dai += ui.selected.cards.filter(card => {
return card.hasGaintag("oldaili_tag");
}).length;
if (dai % 2) return Math.sqrt(num);
@@ -7918,10 +6586,10 @@ game.import("character", function () {
marktext: "砺",
intro: {
markcount: function (storage, player) {
- return player.countCards("h", (card) => card.hasGaintag("oldaili_tag"));
+ return player.countCards("h", card => card.hasGaintag("oldaili_tag"));
},
mark: function (dialog, content, player) {
- var cards = player.getCards("h", (card) => card.hasGaintag("oldaili_tag"));
+ var cards = player.getCards("h", card => card.hasGaintag("oldaili_tag"));
if (cards.length) {
dialog.addAuto(cards);
} else return "无展示牌";
@@ -7935,14 +6603,14 @@ game.import("character", function () {
popup: false,
firstDo: true,
filter: function (event, player) {
- return event.cards.some((i) => get.owner(i) == player);
+ return event.cards.some(i => get.owner(i) == player);
},
content: function () {
game.broadcastAll(
function (cards) {
- cards.forEach((card) => card.addGaintag("oldaili_tag"));
+ cards.forEach(card => card.addGaintag("oldaili_tag"));
},
- trigger.cards.filter((i) => get.owner(i) == player)
+ trigger.cards.filter(i => get.owner(i) == player)
);
player.markSkill("oldaili");
},
@@ -7966,15 +6634,7 @@ game.import("character", function () {
ai: {
effect: {
player: function (card, player, target) {
- if (
- get.attitude(player, target) > 0 &&
- card &&
- card.name == "huogong" &&
- card.storage &&
- card.storage.olhuiyun &&
- !player.hasSkill("olhuiyun_3")
- )
- return [0, 0.5, 0, 0.5];
+ if (get.attitude(player, target) > 0 && card && card.name == "huogong" && card.storage && card.storage.olhuiyun && !player.hasSkill("olhuiyun_3")) return [0, 0.5, 0, 0.5];
},
},
},
@@ -7986,27 +6646,15 @@ game.import("character", function () {
forced: true,
direct: true,
filter: function (event, player) {
- return (
- event.card.name == "huogong" &&
- event.card.storage &&
- event.card.storage.olhuiyun &&
- event.targets.some((i) => i.isIn())
- );
+ return event.card.name == "huogong" && event.card.storage && event.card.storage.olhuiyun && event.targets.some(i => i.isIn());
},
content: function () {
"step 0";
var choices = [];
- var choiceList = [
- "使用展示牌,然后重铸所有手牌",
- "使用一张手牌,然后重铸展示牌",
- "摸一张牌",
- ];
+ var choiceList = ["使用展示牌,然后重铸所有手牌", "使用一张手牌,然后重铸展示牌", "摸一张牌"];
for (var i = 1; i <= 3; i++) {
- if (!player.hasSkill("olhuiyun_" + i))
- choices.push("选项" + get.cnNumber(i, true));
- else
- choiceList[i - 1] =
- '' + choiceList[i - 1] + "";
+ if (!player.hasSkill("olhuiyun_" + i)) choices.push("选项" + get.cnNumber(i, true));
+ else choiceList[i - 1] = '' + choiceList[i - 1] + "";
}
if (!choices.length) event.finish();
else {
@@ -8014,12 +6662,7 @@ game.import("character", function () {
player
.chooseControl(choices)
.set("choiceList", choiceList)
- .set(
- "prompt",
- "晖云:选择一项,令" +
- get.translation(trigger.targets) +
- "可以选择执行"
- )
+ .set("prompt", "晖云:选择一项,令" + get.translation(trigger.targets) + "可以选择执行")
.set("ai", () => {
return _status.event.choice;
})
@@ -8028,11 +6671,7 @@ game.import("character", function () {
(function () {
if (choices.length == 1) return choices[0];
var choicesx = choices.slice();
- if (
- get.attitude(player, trigger.targets[0]) > 0 &&
- choices.includes("选项三")
- )
- return "选项三";
+ if (get.attitude(player, trigger.targets[0]) > 0 && choices.includes("选项三")) return "选项三";
choicesx.remove("选项三");
return choicesx.randomGet();
})()
@@ -8050,18 +6689,14 @@ game.import("character", function () {
var target = targets.shift();
event.target = target;
if (target.isIn()) {
- var cards = target.getCards("h", (card) => card.hasGaintag("olhuiyun_tag"));
+ var cards = target.getCards("h", card => card.hasGaintag("olhuiyun_tag"));
if (event.index == 3) {
target.chooseBool("是否摸一张牌?").set("ai", () => true);
event.goto(5);
} else if (event.index == 1 && cards.length) {
target.chooseToUse({
filterCard: function (card) {
- if (
- get.itemtype(card) != "card" ||
- !card.hasGaintag("olhuiyun_tag")
- )
- return false;
+ if (get.itemtype(card) != "card" || !card.hasGaintag("olhuiyun_tag")) return false;
return lib.filter.filterCard.apply(this, arguments);
},
prompt: "是否使用一张展示牌,然后重铸所有手牌?",
@@ -8069,11 +6704,7 @@ game.import("character", function () {
} else if (event.index == 2) {
target.chooseToUse({
filterCard: function (card) {
- if (
- get.itemtype(card) != "card" ||
- (get.position(card) != "h" && get.position(card) != "s")
- )
- return false;
+ if (get.itemtype(card) != "card" || (get.position(card) != "h" && get.position(card) != "s")) return false;
return lib.filter.filterCard.apply(this, arguments);
},
prompt: "是否使用一张手牌,然后重铸展示牌?",
@@ -8091,7 +6722,7 @@ game.import("character", function () {
event.goto(6);
"step 4";
if (result.bool) {
- var hs = target.getCards("h", (card) => {
+ var hs = target.getCards("h", card => {
if (!card.hasGaintag("olhuiyun_tag")) return false;
return target.canRecast(card);
});
@@ -8122,7 +6753,7 @@ game.import("character", function () {
},
content: function () {
game.broadcastAll(function (cards) {
- cards.forEach((card) => card.addGaintag("olhuiyun_tag"));
+ cards.forEach(card => card.addGaintag("olhuiyun_tag"));
}, trigger.cards);
},
},
@@ -8136,10 +6767,7 @@ game.import("character", function () {
audio: 2,
enable: "chooseToUse",
viewAsFilter: function (player) {
- return (
- !player.hasSkill("olmiuyan_blocker") &&
- player.hasCard((card) => get.color(card) == "black", "hes")
- );
+ return !player.hasSkill("olmiuyan_blocker") && player.hasCard(card => get.color(card) == "black", "hes");
},
viewAs: { name: "huogong" },
filterCard: { color: "black" },
@@ -8158,8 +6786,7 @@ game.import("character", function () {
return 4 - get.value(card);
},
promptfunc: function () {
- if (_status.event.player.storage.olmiuyan)
- return "转换技。你可以将一张黑色牌当做【火攻】使用。若此牌未造成伤害,则你令此技能失效直到本轮结束。";
+ if (_status.event.player.storage.olmiuyan) return "转换技。你可以将一张黑色牌当做【火攻】使用。若此牌未造成伤害,则你令此技能失效直到本轮结束。";
return "转换技。你可以将一张黑色牌当做【火攻】使用。若此牌造成了伤害,则你获得此阶段内所有被展示过的牌。";
},
precontent: function () {
@@ -8191,23 +6818,14 @@ game.import("character", function () {
},
intro: {
content: function (storage) {
- if (storage)
- return "转换技。你可以将一张黑色牌当做【火攻】使用。然后若此牌未造成伤害,则你令此技能失效直到本轮结束。";
+ if (storage) return "转换技。你可以将一张黑色牌当做【火攻】使用。然后若此牌未造成伤害,则你令此技能失效直到本轮结束。";
return "转换技。你可以将一张黑色牌当做【火攻】使用。然后若此牌造成了伤害,则你获得此阶段内所有被展示过的牌。";
},
},
subSkill: {
counter: {
trigger: {
- global: [
- "showCardsEnd",
- "phaseZhunbeiBefore",
- "phaseJudgeBefore",
- "phaseDrawBefore",
- "phaseUseBefore",
- "phaseDiscardBefore",
- "phaseJieshuBefore",
- ],
+ global: ["showCardsEnd", "phaseZhunbeiBefore", "phaseJudgeBefore", "phaseDrawBefore", "phaseUseBefore", "phaseDiscardBefore", "phaseJieshuBefore"],
},
forced: true,
charlotte: true,
@@ -8220,9 +6838,9 @@ game.import("character", function () {
content: function () {
if (trigger.name == "showCards") {
game.broadcastAll(function (cards) {
- cards.forEach((card) => card.addGaintag("olmiuyan_tag"));
+ cards.forEach(card => card.addGaintag("olmiuyan_tag"));
}, trigger.cards);
- } else game.players.forEach((current) => current.removeGaintag("olmiuyan_tag"));
+ } else game.players.forEach(current => current.removeGaintag("olmiuyan_tag"));
},
},
gain: {
@@ -8237,25 +6855,19 @@ game.import("character", function () {
return evt.card == event.card;
}) &&
game.hasPlayer(function (current) {
- return (
- current != player &&
- current.hasCard((card) => card.hasGaintag("olmiuyan_tag"))
- );
+ return current != player && current.hasCard(card => card.hasGaintag("olmiuyan_tag"));
})
);
},
logTarget: function (event, player) {
return game.filterPlayer(function (current) {
- return (
- current != player &&
- current.hasCard((card) => card.hasGaintag("olmiuyan_tag"))
- );
+ return current != player && current.hasCard(card => card.hasGaintag("olmiuyan_tag"));
});
},
content: function () {
var cards = [],
- players = game.filterPlayer((current) => current != player).sortBySeat();
- players.forEach((current) => {
+ players = game.filterPlayer(current => current != player).sortBySeat();
+ players.forEach(current => {
var cardsx = current.getCards("h", function (card) {
return card.hasGaintag("olmiuyan_tag");
});
@@ -8296,26 +6908,14 @@ game.import("character", function () {
"step 0";
player.draw(Math.min(5, player.hp));
"step 1";
- var targets = game.filterPlayer(
- (current) =>
- current != player && current.countCards("h") > 0 && player.inRange(current)
- );
+ var targets = game.filterPlayer(current => current != player && current.countCards("h") > 0 && player.inRange(current));
if (targets.length > 0) {
if (targets.length == 1) event._result = { bool: true, targets: targets };
else
player
- .chooseTarget(
- true,
- "请选择一名攻击范围内的角色",
- "然后你选择该角色的一张手牌,令此牌视为【杀】",
- function (card, player, target) {
- return (
- target != player &&
- target.countCards("h") > 0 &&
- player.inRange(target)
- );
- }
- )
+ .chooseTarget(true, "请选择一名攻击范围内的角色", "然后你选择该角色的一张手牌,令此牌视为【杀】", function (card, player, target) {
+ return target != player && target.countCards("h") > 0 && player.inRange(target);
+ })
.set("ai", function (target) {
return -get.attitude(_status.event.player, target);
});
@@ -8366,29 +6966,18 @@ game.import("character", function () {
game.addGlobalSkill("olkangrui_ai");
},
onremove: () => {
- if (!game.hasPlayer((i) => i.hasSkill("olkangrui"), true))
- game.removeGlobalSkill("olkangrui_ai");
+ if (!game.hasPlayer(i => i.hasSkill("olkangrui"), true)) game.removeGlobalSkill("olkangrui_ai");
},
trigger: { global: "damageEnd" },
filter: function (event, player) {
- return (
- event.player == _status.currentPhase &&
- event.player.getHistory("damage").indexOf(event) == 0
- );
+ return event.player == _status.currentPhase && event.player.getHistory("damage").indexOf(event) == 0;
},
direct: true,
content: function () {
"step 0";
player
.chooseControl("cancel2")
- .set("choiceList", [
- "令" +
- get.translation(trigger.player) +
- "回复1点体力,且造成伤害时本回合手牌上限为0",
- "令" +
- get.translation(trigger.player) +
- "于本回合下次造成的伤害+1,且造成伤害时本回合手牌上限为0",
- ])
+ .set("choiceList", ["令" + get.translation(trigger.player) + "回复1点体力,且造成伤害时本回合手牌上限为0", "令" + get.translation(trigger.player) + "于本回合下次造成的伤害+1,且造成伤害时本回合手牌上限为0"])
.set("prompt", get.prompt("olkangrui", trigger.player))
.set("ai", () => {
return _status.event.choice;
@@ -8399,13 +6988,12 @@ game.import("character", function () {
if (get.attitude(player, trigger.player) <= 0) return "cancel2";
if (!trigger.player.isDamaged()) return "选项二";
var list = [];
- if (trigger.player.hp + trigger.player.countCards("hs", "tao") <= 2)
- list.push("选项一");
+ if (trigger.player.hp + trigger.player.countCards("hs", "tao") <= 2) list.push("选项一");
if (
- trigger.player.hasCard((card) => {
+ trigger.player.hasCard(card => {
if (!get.tag(card, "damage")) return false;
if (
- game.hasPlayer((current) => {
+ game.hasPlayer(current => {
return (
get.effect(current, card, trigger.player, player) > 0 &&
trigger.player.canUse(card, current) &&
@@ -8484,7 +7072,7 @@ game.import("character", function () {
ai: {
trigger: { player: "dieAfter" },
filter: () => {
- return !game.hasPlayer((i) => i.hasSkill("olkangrui"), true);
+ return !game.hasPlayer(i => i.hasSkill("olkangrui"), true);
},
silent: true,
forceDie: true,
@@ -8495,10 +7083,7 @@ game.import("character", function () {
effect: {
target: function (card, player, target) {
if (target != player || !get.tag(card, "damage")) return;
- var list = game.filterPlayer(
- (current) =>
- current.hasSkill("olkangrui") && get.attitude(current, player) > 0
- );
+ var list = game.filterPlayer(current => current.hasSkill("olkangrui") && get.attitude(current, player) > 0);
var history = player.getHistory("damage");
if (!list.length || history.length != 0) return;
return [1, 2];
@@ -8518,8 +7103,7 @@ game.import("character", function () {
},
content: function () {
var card = trigger.card;
- if (card.name == "sha" || (get.type(card) == "trick" && get.tag(card, "damage") > 0))
- trigger.baseDamage++;
+ if (card.name == "sha" || (get.type(card) == "trick" && get.tag(card, "damage") > 0)) trigger.baseDamage++;
else player.draw();
},
/*
@@ -8535,11 +7119,7 @@ game.import("character", function () {
},*/
mod: {
aiOrder: function (player, card, num) {
- if (
- typeof card == "object" &&
- get.cardNameLength(card) == player.getHistory("useCard").length + 1
- )
- return num + 10;
+ if (typeof card == "object" && get.cardNameLength(card) == player.getHistory("useCard").length + 1) return num + 10;
},
},
},
@@ -8556,16 +7136,11 @@ game.import("character", function () {
var player = _status.event.player;
if (
game.countPlayer(function (current) {
- return (
- current != player &&
- player.canUse("sha", current) &&
- get.effect(current, { name: "sha" }, player, player) > 0
- );
+ return current != player && player.canUse("sha", current) && get.effect(current, { name: "sha" }, player, player) > 0;
}) <= ui.selected.cards.length
)
return 0;
- if (_status.event.player.countCards("hes") >= 3)
- return 8 - ui.selected.cards.length - get.value(card);
+ if (_status.event.player.countCards("hes") >= 3) return 8 - ui.selected.cards.length - get.value(card);
return 6 - ui.selected.cards.length - get.value(card);
},
position: "hes",
@@ -8588,8 +7163,7 @@ game.import("character", function () {
num = 1;
if (isLink) {
let cache = _status.event.getTempCache("sha_result", "eff");
- if (typeof cache !== "object" || cache.card !== get.translation(card))
- return eff;
+ if (typeof cache !== "object" || cache.card !== get.translation(card)) return eff;
if (cache.odds < 1.35 && cache.bool) return 1.35 * cache.eff;
return cache.odds * cache.eff;
}
@@ -8630,7 +7204,7 @@ game.import("character", function () {
target.mayHaveShan(
player,
"use",
- target.getCards("h", (i) => {
+ target.getCards("h", i => {
return i.hasGaintag("sha_notshan");
}),
"odds"
@@ -8645,7 +7219,7 @@ game.import("character", function () {
},
},
respondSha: true,
- skillTagFilter: (player) => player.countCards("hes") > 1,
+ skillTagFilter: player => player.countCards("hes") > 1,
},
subSkill: {
effect: {
@@ -8659,34 +7233,17 @@ game.import("character", function () {
event.card.storage &&
event.card.storage.olkenshang &&
game.countPlayer(function (current) {
- return (
- current != player &&
- lib.filter.targetEnabled2(event.card, player, current) &&
- lib.filter.targetInRange(event.card, player, current)
- );
+ return current != player && lib.filter.targetEnabled2(event.card, player, current) && lib.filter.targetInRange(event.card, player, current);
}) >= event.cards.length
);
},
content: function () {
"step 0";
player
- .chooseTarget(
- trigger.cards.length,
- "是否更改" + get.translation(trigger.card) + "的目标?",
- "选择" +
- get.cnNumber(trigger.cards.length) +
- "名角色作为" +
- get.translation(trigger.card) +
- "的目标,覆盖原先存在的目标",
- function (card, player, target) {
- var evt = _status.event.getTrigger();
- return (
- target != player &&
- lib.filter.targetEnabled2(evt.card, player, target) &&
- lib.filter.targetInRange(evt.card, player, target)
- );
- }
- )
+ .chooseTarget(trigger.cards.length, "是否更改" + get.translation(trigger.card) + "的目标?", "选择" + get.cnNumber(trigger.cards.length) + "名角色作为" + get.translation(trigger.card) + "的目标,覆盖原先存在的目标", function (card, player, target) {
+ var evt = _status.event.getTrigger();
+ return target != player && lib.filter.targetEnabled2(evt.card, player, target) && lib.filter.targetInRange(evt.card, player, target);
+ })
.set("ai", function (target) {
var evt = _status.event.getTrigger();
return get.effect(target, evt.card, evt.player, evt.player);
@@ -8709,15 +7266,10 @@ game.import("character", function () {
forced: true,
charlotte: true,
filter: function (event, player) {
- if (
- event.card.name != "sha" ||
- !event.card.storage ||
- !event.card.storage.olkenshang
- )
- return false;
+ if (event.card.name != "sha" || !event.card.storage || !event.card.storage.olkenshang) return false;
var num = 0;
- game.countPlayer2((current) => {
- current.getHistory("damage", (evt) => {
+ game.countPlayer2(current => {
+ current.getHistory("damage", evt => {
if (evt.card == event.card) num += evt.num;
});
});
@@ -8751,16 +7303,10 @@ game.import("character", function () {
effect: {
player_use: function (card, player, target) {
if (_status._olkenshang_aiChecking || ui.selected.targets.length) return;
- if (typeof card != "object" || !card.storage || !card.storage.olkenshang)
- return false;
+ if (typeof card != "object" || !card.storage || !card.storage.olkenshang) return false;
_status._olkenshang_aiChecking = true;
var eff = 0;
- var targets = game.filterPlayer(
- (current) =>
- current != player &&
- player.canUse(card, current, false) &&
- !player.inRange(current)
- );
+ var targets = game.filterPlayer(current => current != player && player.canUse(card, current, false) && !player.inRange(current));
for (var target of targets) {
eff += get.effect(target, card, player, player);
}
@@ -8775,12 +7321,7 @@ game.import("character", function () {
trigger: { player: "useCard2" },
charlotte: true,
logTarget: function (event, player) {
- return game.filterPlayer(
- (current) =>
- current != player &&
- player.canUse(event.card, current, false) &&
- !player.inRange(current)
- );
+ return game.filterPlayer(current => current != player && player.canUse(event.card, current, false) && !player.inRange(current));
},
prompt2: "将此牌目标改为攻击范围外的所有其他角色",
group: "olkenshang_after",
@@ -8790,40 +7331,19 @@ game.import("character", function () {
for (var target of event.targets) {
eff1 += get.effect(target, event.card, event.player, player);
}
- var targets = game.filterPlayer(
- (current) =>
- current != player &&
- player.canUse(event.card, current, false) &&
- !player.inRange(current)
- );
+ var targets = game.filterPlayer(current => current != player && player.canUse(event.card, current, false) && !player.inRange(current));
for (var target of targets) {
eff2 += get.effect(target, event.card, event.player, player);
}
return eff2 > eff1;
},
filter: function (event, player) {
- return (
- event.card.name == "sha" &&
- event.card.storage &&
- event.card.storage.olkenshang &&
- event.targets.length &&
- game.filterPlayer(
- (current) =>
- current != player &&
- player.canUse(event.card, current, false) &&
- !player.inRange(current)
- ).length
- );
+ return event.card.name == "sha" && event.card.storage && event.card.storage.olkenshang && event.targets.length && game.filterPlayer(current => current != player && player.canUse(event.card, current, false) && !player.inRange(current)).length;
},
content: function () {
"step 0";
trigger.targets.removeArray(trigger.targets);
- var targets = game.filterPlayer(
- (current) =>
- current != player &&
- player.canUse(trigger.card, current, false) &&
- !player.inRange(current)
- );
+ var targets = game.filterPlayer(current => current != player && player.canUse(trigger.card, current, false) && !player.inRange(current));
if (targets.length) trigger.targets.addArray(targets);
},
},
@@ -8833,15 +7353,10 @@ game.import("character", function () {
forced: true,
charlotte: true,
filter: function (event, player) {
- if (
- event.card.name != "sha" ||
- !event.card.storage ||
- !event.card.storage.olkenshang
- )
- return false;
+ if (event.card.name != "sha" || !event.card.storage || !event.card.storage.olkenshang) return false;
var num = 0;
- game.countPlayer2((current) => {
- current.getHistory("damage", (evt) => {
+ game.countPlayer2(current => {
+ current.getHistory("damage", evt => {
if (evt.card == event.card) num += evt.num;
});
});
@@ -8851,8 +7366,8 @@ game.import("character", function () {
"step 0";
var num = 0,
len = trigger.cards.length;
- game.countPlayer2((current) => {
- current.getHistory("damage", (evt) => {
+ game.countPlayer2(current => {
+ current.getHistory("damage", evt => {
if (evt.card == trigger.card) num += evt.num;
});
});
@@ -8860,14 +7375,9 @@ game.import("character", function () {
player.draw(num);
event.finish();
} else {
- var skills = player.getSkills(null, false, false).filter((skill) => {
+ var skills = player.getSkills(null, false, false).filter(skill => {
var info = get.info(skill);
- if (
- !info ||
- info.charlotte ||
- get.skillInfoTranslation(skill, player).length == 0
- )
- return false;
+ if (!info || info.charlotte || get.skillInfoTranslation(skill, player).length == 0) return false;
return true;
});
if (skills.length == 1) event._result = { control: skills[0] };
@@ -8876,24 +7386,15 @@ game.import("character", function () {
.chooseControl(skills)
.set(
"choiceList",
- skills.map((i) => {
- return (
- '【' +
- get.translation(
- lib.translate[i + "_ab"] ||
- get.translation(i).slice(0, 2)
- ) +
- "】
" +
- get.skillInfoTranslation(i, player) +
- "
"
- );
+ skills.map(i => {
+ return '【' + get.translation(lib.translate[i + "_ab"] || get.translation(i).slice(0, 2)) + "】
" + get.skillInfoTranslation(i, player) + "
";
})
)
.set("displayIndex", false)
.set("prompt", "垦伤:选择失去一个技能")
.set("ai", () => {
var choices = _status.event.controls.slice();
- var negs = choices.filter((i) => {
+ var negs = choices.filter(i => {
var info = get.info(i);
if (!info || !info.ai) return false;
return info.ai.neg || info.ai.halfneg;
@@ -8916,18 +7417,18 @@ game.import("character", function () {
forced: true,
direct: true,
filter: function (event, player) {
- var history = game.getGlobalHistory("useCard", (evt) => {
+ var history = game.getGlobalHistory("useCard", evt => {
return get.type(evt.card) == "basic";
});
if (history.length < 2) return false;
- var users = history.slice(0, 2).map((i) => i.player);
- var list = users.filter((user) => user == player);
+ var users = history.slice(0, 2).map(i => i.player);
+ var list = users.filter(user => user == player);
if (list.length == 1) {
- var target = users.filter((user) => user != player)[0];
+ var target = users.filter(user => user != player)[0];
return target && target.isIn() && target.countDiscardableCards(player, "he");
}
if (list.length == 2) {
- return history.slice(0, 2).some((evt) => {
+ return history.slice(0, 2).some(evt => {
var card = evt.card;
return player.hasUseTarget({
name: card.name,
@@ -8940,16 +7441,16 @@ game.import("character", function () {
},
content: function () {
"step 0";
- var history = game.getGlobalHistory("useCard", (evt) => {
+ var history = game.getGlobalHistory("useCard", evt => {
return get.type(evt.card) == "basic";
});
var list = history
.slice(0, 2)
- .map((i) => i.player)
- .filter((user) => user == player);
+ .map(i => i.player)
+ .filter(user => user == player);
if (list.length == 1) {
- var users = history.slice(0, 2).map((i) => i.player);
- var target = users.filter((user) => user != player)[0];
+ var users = history.slice(0, 2).map(i => i.player);
+ var target = users.filter(user => user != player)[0];
player.logSkill("oljianman", target);
player.discardPlayerCard(target, "he", true);
event.finish();
@@ -8958,22 +7459,19 @@ game.import("character", function () {
var vcard = [];
for (var evt of evts) {
var card = evt.card;
- if (vcard.length && vcard[0][2] == card.name && vcard[0][3] == card.nature)
- continue;
+ if (vcard.length && vcard[0][2] == card.name && vcard[0][3] == card.nature) continue;
if (player.hasUseTarget({ name: card.name, nature: card.nature, isCard: true })) {
vcard.push(["基本", "", card.name, card.nature]);
}
}
if (vcard.length == 1) event._result = { bool: true, links: [vcard[0]] };
else {
- player
- .chooseButton(["鹣蛮:视为使用其中一张牌", [vcard, "vcard"]])
- .set("ai", function (button) {
- return _status.event.player.getUseValue({
- name: button.link[2],
- nature: button.link[3],
- });
+ player.chooseButton(["鹣蛮:视为使用其中一张牌", [vcard, "vcard"]]).set("ai", function (button) {
+ return _status.event.player.getUseValue({
+ name: button.link[2],
+ nature: button.link[3],
});
+ });
}
} else event.finish();
"step 1";
@@ -8992,11 +7490,7 @@ game.import("character", function () {
trigger: { player: "useCardToPlayer" },
forced: true,
filter: function (event, player) {
- return (
- event.isFirstTarget &&
- player.countCards("h") > player.getHandcardLimit() &&
- event.targets.some((target) => target != player)
- );
+ return event.isFirstTarget && player.countCards("h") > player.getHandcardLimit() && event.targets.some(target => target != player);
},
//group:'olbihun_give',
content: function () {
@@ -9007,7 +7501,7 @@ game.import("character", function () {
trigger.targets[0].gain(cards, "gain2");
}
}
- var targets = trigger.targets.filter((target) => target != player);
+ var targets = trigger.targets.filter(target => target != player);
trigger.targets.removeArray(targets);
trigger.getParent().triggeredTargets1.removeArray(targets);
},
@@ -9021,7 +7515,7 @@ game.import("character", function () {
if (
target &&
player != target &&
- player.countCards("h", (i) => {
+ player.countCards("h", i => {
if (card === i || (card.cards && card.cards.includes(i))) {
cs++;
return false;
@@ -9034,8 +7528,7 @@ game.import("character", function () {
targets.addArray(ui.selected.targets);
if (evt && evt.card == card) targets.addArray(evt.targets);
if (targets.length) {
- if (targets.length > 1 || !targets.includes(target))
- return "zeroplayertarget";
+ if (targets.length > 1 || !targets.includes(target)) return "zeroplayertarget";
return;
}
let info = get.info(card);
@@ -9053,7 +7546,7 @@ game.import("character", function () {
else if (range[0] < 0) {
if (info.filterTarget === true) filter = game.players.length;
else
- filter = game.countPlayer((current) => {
+ filter = game.countPlayer(current => {
return info.filterTarget(card, player, current);
});
range = [filter, filter];
@@ -9156,22 +7649,11 @@ game.import("character", function () {
"step 1";
var type = get.type2(cards[0]);
target
- .chooseCard(
- get.translation(player) + "对你发动了【剑合】",
- "请重铸" +
- get.cnNumber(cards.length) +
- "张" +
- get.translation(type) +
- "牌,或点“取消”受到1点雷电伤害",
- cards.length,
- "he",
- (card, player) => {
- return get.type2(card) == _status.event.type && player.canRecast(card);
- }
- )
- .set("ai", (card) => {
- if (_status.event.goon)
- return (get.type(card) == "equip" ? 15 : 7) - get.value(card);
+ .chooseCard(get.translation(player) + "对你发动了【剑合】", "请重铸" + get.cnNumber(cards.length) + "张" + get.translation(type) + "牌,或点“取消”受到1点雷电伤害", cards.length, "he", (card, player) => {
+ return get.type2(card) == _status.event.type && player.canRecast(card);
+ })
+ .set("ai", card => {
+ if (_status.event.goon) return (get.type(card) == "equip" ? 15 : 7) - get.value(card);
return 0;
})
.set("type", type)
@@ -9187,8 +7669,7 @@ game.import("character", function () {
},
ai: {
order: function (item, player) {
- if (player.hasSkill("olbihun") && player.countCards("h") > player.getHandcardLimit())
- return 11;
+ if (player.hasSkill("olbihun") && player.countCards("h") > player.getHandcardLimit()) return 11;
return 4;
},
threaten: 2.4,
@@ -9198,7 +7679,7 @@ game.import("character", function () {
var cards = ui.selected.cards,
type = get.type2(cards[0]);
if (
- target.countCards("he", (card) => {
+ target.countCards("he", card => {
return get.type(card) == type && get.value(card) <= 5;
}) >= cards.length
)
@@ -9219,40 +7700,23 @@ game.import("character", function () {
olqiejian: {
audio: 2,
trigger: {
- global: [
- "loseAfter",
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["loseAfter", "equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
direct: true,
filter: function (event, player) {
- return game.hasPlayer((current) => {
+ return game.hasPlayer(current => {
if (current.countCards("h")) return false;
var evt = event.getl(current);
- return (
- evt &&
- evt.hs &&
- evt.hs.length &&
- !player.getStorage("olqiejian_ban").includes(current)
- );
+ return evt && evt.hs && evt.hs.length && !player.getStorage("olqiejian_ban").includes(current);
});
},
content: function () {
"step 0";
event.targets = game
- .filterPlayer((current) => {
+ .filterPlayer(current => {
if (current.countCards("h")) return false;
var evt = trigger.getl(current);
- return (
- evt &&
- evt.hs &&
- evt.hs.length &&
- !player.getStorage("olqiejian_ban").includes(current)
- );
+ return evt && evt.hs && evt.hs.length && !player.getStorage("olqiejian_ban").includes(current);
})
.sortBySeat(_status.currentPhase);
"step 1";
@@ -9267,7 +7731,7 @@ game.import("character", function () {
.set(
"bool",
get.attitude(player, target) > 0 ||
- target.hasCard((card) => {
+ target.hasCard(card => {
return get.value(card, target) * get.sgnAttitude(player, target) < -6;
}, "ej")
);
@@ -9280,23 +7744,16 @@ game.import("character", function () {
} else event.goto(5);
"step 3";
player
- .chooseTarget(
- "切谏:选择一名角色",
- "弃置你或其场上的一张牌;或点击“取消”令你于本轮不能再对其发动此技能",
- (card, player, target) => {
- return (
- (target == player || target == _status.event.getParent().target) &&
- target.countDiscardableCards(player, "ej") > 0
- );
- }
- )
- .set("ai", (target) => {
+ .chooseTarget("切谏:选择一名角色", "弃置你或其场上的一张牌;或点击“取消”令你于本轮不能再对其发动此技能", (card, player, target) => {
+ return (target == player || target == _status.event.getParent().target) && target.countDiscardableCards(player, "ej") > 0;
+ })
+ .set("ai", target => {
var sign = get.sgnAttitude(_status.event.player, target);
return (
6 -
target
.getCards("ej")
- .map((i) => {
+ .map(i => {
var val = 0;
if (get.position(i) == "e") val = get.value(i, target);
else {
@@ -9353,7 +7810,7 @@ game.import("character", function () {
var cards = event.getd(player, "es");
return (
cards.length &&
- (cards.some((card) => {
+ (cards.some(card => {
if (get.position(card, true) != "d") return false;
return player.hasUseTarget(get.autoViewAs({ name: "shandian" }, [card]));
}) ||
@@ -9365,15 +7822,8 @@ game.import("character", function () {
"step 0";
var cards = trigger.getd(player, "es");
var choices = [];
- var choiceList = [
- "将" +
- (cards.length
- ? get.translation(cards[0])
- : "这些牌中第一张能当【闪电】对你使用的牌") +
- "当【闪电】使用",
- "本阶段结束时,你与一名手牌数最少的角色交换手牌",
- ];
- cards = cards.filter((card) => {
+ var choiceList = ["将" + (cards.length ? get.translation(cards[0]) : "这些牌中第一张能当【闪电】对你使用的牌") + "当【闪电】使用", "本阶段结束时,你与一名手牌数最少的角色交换手牌"];
+ cards = cards.filter(card => {
if (get.position(card, true) != "d") return false;
return player.hasUseTarget(get.autoViewAs({ name: "shandian" }, [card]));
});
@@ -9416,14 +7866,7 @@ game.import("character", function () {
direct: true,
onremove: true,
trigger: {
- global: [
- "phaseZhunbeiEnd",
- "phaseJudgeEnd",
- "phaseDrawEnd",
- "phaseUseEnd",
- "phaseDiscardEnd",
- "phaseJieshuEnd",
- ],
+ global: ["phaseZhunbeiEnd", "phaseJudgeEnd", "phaseDrawEnd", "phaseUseEnd", "phaseDiscardEnd", "phaseJieshuEnd"],
},
content: function () {
"step 0";
@@ -9432,13 +7875,9 @@ game.import("character", function () {
event.finish();
return;
}
- player.chooseTarget(
- "泥首:与一名手牌数最少的角色交换手牌",
- true,
- (card, player, target) => {
- return target.isMinHandcard();
- }
- );
+ player.chooseTarget("泥首:与一名手牌数最少的角色交换手牌", true, (card, player, target) => {
+ return target.isMinHandcard();
+ });
"step 1";
if (result.bool) {
var target = result.targets[0];
@@ -9468,15 +7907,10 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("olchenglie"),
- "为" + get.translation(trigger.card) + "多指定至多两个目标,并发动后续效果",
- [1, 2],
- (card, player, target) => {
- var evt = _status.event.getTrigger();
- return !evt.targets.includes(target) && player.canUse(evt.card, target);
- }
- )
+ .chooseTarget(get.prompt("olchenglie"), "为" + get.translation(trigger.card) + "多指定至多两个目标,并发动后续效果", [1, 2], (card, player, target) => {
+ var evt = _status.event.getTrigger();
+ return !evt.targets.includes(target) && player.canUse(evt.card, target);
+ })
.set("ai", function (target) {
var player = _status.event.player,
evt = _status.event.getTrigger();
@@ -9557,7 +7991,7 @@ game.import("character", function () {
});
player
.lose(card1, ui.cardPile)
- .set("insert_index", (event) => event.cardx)
+ .set("insert_index", event => event.cardx)
.set("cardx", card2);
player.gain(card2, "draw");
game.log(player, "交换了一张牌");
@@ -9573,17 +8007,10 @@ game.import("character", function () {
var card = result.links[0];
event.card = card;
player
- .chooseTarget(
- "将" + get.translation(card) + "置于一名目标角色的武将牌上",
- true,
- (card, player, target) => {
- return (
- _status.event.getTrigger().targets.includes(target) &&
- !_status.event.getParent().given.includes(target)
- );
- }
- )
- .set("ai", (target) => {
+ .chooseTarget("将" + get.translation(card) + "置于一名目标角色的武将牌上", true, (card, player, target) => {
+ return _status.event.getTrigger().targets.includes(target) && !_status.event.getParent().given.includes(target);
+ })
+ .set("ai", target => {
var color = _status.event.color,
player = _status.event.player;
var evt = _status.event.getTrigger();
@@ -9591,15 +8018,7 @@ game.import("character", function () {
var eff = get.effect(target, evt.card, player, target),
att = get.attitude(player, target);
if (eff >= 0 && att < 0) return -1;
- if (
- eff < 0 &&
- att < 0 &&
- target.hasCard(
- (card) => ["shan", "caochuan"].includes(get.name(card)),
- "hs"
- )
- )
- return 10;
+ if (eff < 0 && att < 0 && target.hasCard(card => ["shan", "caochuan"].includes(get.name(card)), "hs")) return 10;
}
return 1;
})
@@ -9659,9 +8078,9 @@ game.import("character", function () {
content: function () {
"step 0";
var targets = game
- .filterPlayer((current) => {
+ .filterPlayer(current => {
var cards = current.getExpansions("olchenglie");
- return cards.some((i) => get.color(i, false) == "red");
+ return cards.some(i => get.color(i, false) == "red");
})
.sortBySeat();
event.targets = targets;
@@ -9673,16 +8092,11 @@ game.import("character", function () {
event.target = target;
player.line(target);
if (
- target.hasHistory("useCard", (evt) => {
+ target.hasHistory("useCard", evt => {
return evt.respondTo && evt.respondTo[1] == trigger.card;
})
) {
- if (target.countCards("he"))
- target.chooseCard(
- "骋烈:交给" + get.translation(event.togive) + "一张牌",
- true,
- "he"
- );
+ if (target.countCards("he")) target.chooseCard("骋烈:交给" + get.translation(event.togive) + "一张牌", true, "he");
} else {
target.recover();
}
@@ -9692,10 +8106,10 @@ game.import("character", function () {
}
if (targets.length) event.goto(1);
"step 3";
- game.filterPlayer((current) => {
+ game.filterPlayer(current => {
var cards = current.getExpansions("olchenglie");
return cards.length;
- }).forEach((i) => {
+ }).forEach(i => {
i.loseToDiscardpile(i.getExpansions("olchenglie"));
delete i.storage.olchenglie_viewer;
});
@@ -9708,14 +8122,7 @@ game.import("character", function () {
audio: "qizhou",
trigger: {
player: "loseAfter",
- global: [
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- "phaseBefore",
- ],
+ global: ["equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter", "phaseBefore"],
},
forced: true,
onremove: true,
@@ -9740,8 +8147,7 @@ game.import("character", function () {
player.removeAdditionalSkill("olqizhou");
var num = lib.skill.olqizhou.getSuitNum(player);
player.storage.olqizhou = num;
- if (num > 0)
- player.addAdditionalSkill("olqizhou", lib.skill.olqizhou.derivation.slice(0, num));
+ if (num > 0) player.addAdditionalSkill("olqizhou", lib.skill.olqizhou.derivation.slice(0, num));
},
derivation: ["reduanbing", "reyingzi", "fenwei", "lanjiang"],
},
@@ -9750,17 +8156,10 @@ game.import("character", function () {
enable: "phaseUse",
usable: 1,
filter: function (event, player) {
- return (
- player.countCards("e") < 5 &&
- game.hasPlayer((current) => lib.skill.olshanxi.filterTarget(null, player, current))
- );
+ return player.countCards("e") < 5 && game.hasPlayer(current => lib.skill.olshanxi.filterTarget(null, player, current));
},
filterTarget: function (card, player, target) {
- return (
- target != player &&
- player.countCards("h") + target.countCards("h") > 0 &&
- !player.inRangeOf(target)
- );
+ return target != player && player.countCards("h") + target.countCards("h") > 0 && !player.inRangeOf(target);
},
content: function () {
"step 0";
@@ -9781,7 +8180,7 @@ game.import("character", function () {
var player = _status.event.player,
target = _status.event.getParent().target;
var card = button.link,
- cards = ui.selected.buttons.map((button) => button.link);
+ cards = ui.selected.buttons.map(button => button.link);
var hs = player.getCards("h"),
discard = false;
for (var i of cards) {
@@ -9792,15 +8191,13 @@ game.import("character", function () {
}
if (hs.includes(card)) {
if (discard || get.name(card) != "shan") return 0;
- if (target.hasCard((card) => get.value(card, target) > 5, "e")) return 2;
+ if (target.hasCard(card => get.value(card, target) > 5, "e")) return 2;
return 0;
}
if (
discard &&
!target.hasCard(function (cardx) {
- return (
- cardx != card && !cards.includes(cardx) && get.value(cardx, target) > 0
- );
+ return cardx != card && !cards.includes(cardx) && get.value(cardx, target) > 0;
}, "he")
)
return 0;
@@ -9845,8 +8242,8 @@ game.import("character", function () {
} else event.finish();
"step 2";
game.broadcastAll("closeDialog", event.videoId);
- var list1 = event.list1.filter((card) => get.name(card, player) == "shan");
- var list2 = event.list2.filter((card) => get.name(card, target) == "shan");
+ var list1 = event.list1.filter(card => get.name(card, player) == "shan");
+ var list2 = event.list2.filter(card => get.name(card, target) == "shan");
if (list1.length && list2.length) {
game.loseAsync({
lose_list: [
@@ -9902,13 +8299,7 @@ game.import("character", function () {
var target = result.targets[0];
event.target = target;
player.logSkill("oltongduo", target);
- target.chooseCard(
- "h",
- true,
- "统度:将一张手牌交给" +
- get.translation(player) +
- ",然后其于此阶段结束时将此牌置于牌堆顶"
- );
+ target.chooseCard("h", true, "统度:将一张手牌交给" + get.translation(player) + ",然后其于此阶段结束时将此牌置于牌堆顶");
} else {
event.finish();
}
@@ -9924,10 +8315,10 @@ game.import("character", function () {
charlotte: true,
forced: true,
filter: function (event, player) {
- return player.hasCard((card) => card.hasGaintag("oltongduo"), "h");
+ return player.hasCard(card => card.hasGaintag("oltongduo"), "h");
},
content: function () {
- var cards = player.getCards("h", (card) => card.hasGaintag("oltongduo"));
+ var cards = player.getCards("h", card => card.hasGaintag("oltongduo"));
player.lose(cards, ui.cardPile, "insert");
game.log(player, "将", get.cnNumber(cards.length) + "张牌", "置于牌堆顶");
game.broadcastAll(function (player) {
@@ -9958,18 +8349,14 @@ game.import("character", function () {
target.chooseCard("he", true, "铸币:请重铸一张牌", lib.filter.cardRecastable);
"step 1";
if (result.bool) {
- target.recast(
- result.cards,
- null,
- (player) => (player.draw().set("log", false).gaintag = ["olzhubi_tag"])
- );
+ target.recast(result.cards, null, player => (player.draw().set("log", false).gaintag = ["olzhubi_tag"]));
}
},
ai: {
order: 6,
result: {
target: function (player, target) {
- if (target.hasCard((card) => card.hasGaintag("olzhubi_tag"), "h")) return 0.5;
+ if (target.hasCard(card => card.hasGaintag("olzhubi_tag"), "h")) return 0.5;
return 1;
},
},
@@ -9978,7 +8365,7 @@ game.import("character", function () {
replace: {
trigger: { global: "phaseJieshuBegin" },
filter: function (event, player) {
- return event.player.hasCard((card) => card.hasGaintag("olzhubi_tag"), "h");
+ return event.player.hasCard(card => card.hasGaintag("olzhubi_tag"), "h");
},
forced: true,
locked: false,
@@ -9990,7 +8377,7 @@ game.import("character", function () {
game.cardsGotoOrdering(cards);
var player = trigger.player;
var next = player.chooseToMove("铸币:用任意“币”交换牌堆底等量张牌");
- var hs = player.getCards("h", (card) => card.hasGaintag("olzhubi_tag"));
+ var hs = player.getCards("h", card => card.hasGaintag("olzhubi_tag"));
next.set("filterMove", function (from, to) {
return typeof to != "number";
});
@@ -10055,11 +8442,8 @@ game.import("character", function () {
content: function () {
"step 0";
if (
- target.countCards("h", (card) => {
- return (
- get.type(card) == "basic" &&
- lib.filter.cardDiscardable(card, target, "olxiaosi")
- );
+ target.countCards("h", card => {
+ return get.type(card) == "basic" && lib.filter.cardDiscardable(card, target, "olxiaosi");
}) == 0
)
event.draw = true;
@@ -10073,17 +8457,15 @@ game.import("character", function () {
}
event.cards2 = cards2;
"step 2";
- var cardsx = event.cards2.filter(
- (i) => get.position(i, true) == "d" && player.hasUseTarget(i, false)
- );
+ var cardsx = event.cards2.filter(i => get.position(i, true) == "d" && player.hasUseTarget(i, false));
if (!cardsx.length) event.goto(5);
else
player
.chooseButton(["效死:是否使用其中的一张牌?", cardsx])
- .set("filterButton", (button) => {
+ .set("filterButton", button => {
return _status.event.player.hasUseTarget(button.link, false);
})
- .set("ai", (button) => {
+ .set("ai", button => {
if (button.link.name == "jiu") return 10;
return _status.event.player.getUseValue(button.link);
});
@@ -10096,12 +8478,7 @@ game.import("character", function () {
player.chooseUseTarget(true, card, false, "nodistance");
} else event.goto(5);
"step 4";
- if (
- event.cards2.filter(
- (i) => get.position(i, true) == "d" && player.hasUseTarget(i, false)
- ).length
- )
- event.goto(2);
+ if (event.cards2.filter(i => get.position(i, true) == "d" && player.hasUseTarget(i, false)).length) event.goto(2);
"step 5";
if (event.draw) player.draw();
},
@@ -10120,33 +8497,32 @@ game.import("character", function () {
forced: true,
direct: true,
filter: function (event, player) {
- var history = game.getGlobalHistory("useCard", (evt) => {
+ var history = game.getGlobalHistory("useCard", evt => {
return get.type(evt.card) == "basic";
});
if (history.length < 2) return false;
- var users = history.slice(0, 2).map((i) => i.player);
- var list = users.filter((user) => user == player);
+ var users = history.slice(0, 2).map(i => i.player);
+ var list = users.filter(user => user == player);
if (list.length == 1) return true;
if (list.length == 0) {
var evtx = history[2];
if (evtx) {
var name = evtx.card.name,
nature = evtx.card.nature;
- if (evtx && player.hasUseTarget({ name: name, nature: nature, isCard: true }))
- return true;
+ if (evtx && player.hasUseTarget({ name: name, nature: nature, isCard: true })) return true;
}
}
return false;
},
content: function () {
"step 0";
- var history = game.getGlobalHistory("useCard", (evt) => {
+ var history = game.getGlobalHistory("useCard", evt => {
return get.type(evt.card) == "basic";
});
var list = history
.slice(0, 2)
- .map((i) => i.player)
- .filter((user) => user == player);
+ .map(i => i.player)
+ .filter(user => user == player);
if (list.length == 1) {
player.logSkill("jueman");
player.draw();
@@ -10154,9 +8530,7 @@ game.import("character", function () {
var evtx = history[2],
name = evtx.card.name,
nature = evtx.card.nature;
- player
- .chooseUseTarget({ name: name, nature: nature, isCard: true }, true)
- .set("logSkill", "jueman");
+ player.chooseUseTarget({ name: name, nature: nature, isCard: true }, true).set("logSkill", "jueman");
}
},
},
@@ -10176,7 +8550,7 @@ game.import("character", function () {
if (count > 1 && event.name == "phaseZhunbei") return false;
if (count > 2) return false;
var num = count >= 3 ? 3 : 1;
- var types = ["basic", "trick", "equip"].filter((type) => {
+ var types = ["basic", "trick", "equip"].filter(type => {
return player.countMark("olbixin_" + type) < num;
});
if (!types.length) return false;
@@ -10203,27 +8577,18 @@ game.import("character", function () {
if (get.type(name) != "basic") continue;
if (!event) {
if (name == "sha") {
- if (!used.includes("sha") && player.hasUseTarget({ name: "sha" }))
- vcards.push(["基本", "", "sha"]);
+ if (!used.includes("sha") && player.hasUseTarget({ name: "sha" })) vcards.push(["基本", "", "sha"]);
for (var nature of natures) {
- if (player.hasUseTarget({ name: "sha", nature: nature }))
- vcards.push(["基本", "", "sha", nature]);
+ if (player.hasUseTarget({ name: "sha", nature: nature })) vcards.push(["基本", "", "sha", nature]);
}
- } else if (!used.includes(name) && player.hasUseTarget({ name: name }))
- vcards.push(["基本", "", name]);
+ } else if (!used.includes(name) && player.hasUseTarget({ name: name })) vcards.push(["基本", "", name]);
} else {
if (name == "sha") {
- if (!used.includes("sha") && event.filterCard({ name: "sha" }, player, event))
- vcards.push(["基本", "", "sha"]);
+ if (!used.includes("sha") && event.filterCard({ name: "sha" }, player, event)) vcards.push(["基本", "", "sha"]);
for (var nature of natures) {
- if (event.filterCard({ name: "sha", nature: nature }, player, event))
- vcards.push(["基本", "", "sha", nature]);
+ if (event.filterCard({ name: "sha", nature: nature }, player, event)) vcards.push(["基本", "", "sha", nature]);
}
- } else if (
- !used.includes(name) &&
- event.filterCard({ name: name }, player, event)
- )
- vcards.push(["基本", "", name]);
+ } else if (!used.includes(name) && event.filterCard({ name: name }, player, event)) vcards.push(["基本", "", name]);
}
}
return vcards;
@@ -10233,41 +8598,25 @@ game.import("character", function () {
var types = ["basic", "trick", "equip"];
var list = lib.skill.olbixin.getList(player);
if (list.length) {
- var dialog = [
- "###" +
- get.prompt("olbixin") +
- '###摸' +
- get.cnNumber(player.countMark("olbixin") >= 3 ? 1 : 3) +
- "张牌,然后将所有指定类型的手牌当一张基本牌使用
",
- ];
- dialog.push([types.map((i) => get.translation(i)), "tdnodes"]);
+ var dialog = ["###" + get.prompt("olbixin") + '###摸' + get.cnNumber(player.countMark("olbixin") >= 3 ? 1 : 3) + "张牌,然后将所有指定类型的手牌当一张基本牌使用
"];
+ dialog.push([types.map(i => get.translation(i)), "tdnodes"]);
dialog.push([list, "vcard"]);
player
.chooseButton(dialog, 2)
- .set("filterButton", (button) => {
+ .set("filterButton", button => {
var player = _status.event.player,
count = player.countMark("olbixin"),
num = count >= 3 ? 3 : 1;
var type = typeof button.link;
- if (ui.selected.buttons.length && type == typeof ui.selected.buttons[0].link)
- return false;
- if (
- type == "string" &&
- player.countMark("olbixin_" + lib.skill.olbixin.map[button.link]) >= num
- )
- return false;
- if (
- type != "string" &&
- !player.hasUseTarget({ name: button.link[2], nature: button.link[3] })
- )
- return false;
+ if (ui.selected.buttons.length && type == typeof ui.selected.buttons[0].link) return false;
+ if (type == "string" && player.countMark("olbixin_" + lib.skill.olbixin.map[button.link]) >= num) return false;
+ if (type != "string" && !player.hasUseTarget({ name: button.link[2], nature: button.link[3] })) return false;
return true;
})
- .set("ai", (button) => {
+ .set("ai", button => {
var list = _status.event.list;
var type = typeof button.link;
- if (type == "string")
- return (1.2 - list.indexOf(lib.skill.olbixin.map[button.link])) * 10;
+ if (type == "string") return (1.2 - list.indexOf(lib.skill.olbixin.map[button.link])) * 10;
return _status.event.player.getUseValue({
name: button.link[2],
nature: button.link[3],
@@ -10276,15 +8625,15 @@ game.import("character", function () {
.set(
"list",
types
- .map((i) => [
+ .map(i => [
i,
player
.getCards("h", { type: i })
- .map((i) => get.value(i))
+ .map(i => get.value(i))
.reduce((p, c) => p + c, 0),
])
.sort((a, b) => a[1] - b[1])
- .map((i) => i[0])
+ .map(i => i[0])
);
} else event.finish();
"step 1";
@@ -10303,20 +8652,11 @@ game.import("character", function () {
game.delayx();
} else event.finish();
"step 2";
- if (player.hasCard((card) => get.type2(card) == event.type, "h")) {
- var cards = player.getCards("h", (card) => get.type2(card) == event.type);
+ if (player.hasCard(card => get.type2(card) == event.type, "h")) {
+ var cards = player.getCards("h", card => get.type2(card) == event.type);
var cardx = get.autoViewAs(card, cards);
if (player.hasUseTarget(cardx, true, false)) {
- player
- .chooseUseTarget(cardx, cards, true, false)
- .set(
- "prompt",
- "选择" +
- get.translation(cardx) +
- "(" +
- get.translation(cards) +
- ")的目标"
- );
+ player.chooseUseTarget(cardx, cards, true, false).set("prompt", "选择" + get.translation(cardx) + "(" + get.translation(cards) + ")的目标");
}
}
},
@@ -10328,7 +8668,7 @@ game.import("character", function () {
var count = player.countMark("olbixin");
if (count <= 2) return false;
var num = count >= 3 ? 3 : 1;
- var types = ["basic", "trick", "equip"].filter((type) => {
+ var types = ["basic", "trick", "equip"].filter(type => {
return player.countMark("olbixin_" + type) < num;
});
if (!types.length) return false;
@@ -10339,35 +8679,16 @@ game.import("character", function () {
dialog: function (event, player) {
var list = lib.skill.olbixin.getList(player, event);
var types = ["basic", "trick", "equip"];
- return ui.create.dialog(
- '###笔心###摸一张牌,然后将所有指定类型的手牌当一张基本牌使用
',
- [types.map((i) => get.translation(i)), "tdnodes"],
- [list, "vcard"]
- );
+ return ui.create.dialog('###笔心###摸一张牌,然后将所有指定类型的手牌当一张基本牌使用
', [types.map(i => get.translation(i)), "tdnodes"], [list, "vcard"]);
},
filter: function (button, player) {
var player = _status.event.player,
count = player.countMark("olbixin"),
num = count >= 3 ? 3 : 1;
var type = typeof button.link;
- if (ui.selected.buttons.length && type == typeof ui.selected.buttons[0].link)
- return false;
- if (
- type == "string" &&
- player.countMark("olbixin_" + lib.skill.olbixin.map[button.link]) >= num
- )
- return false;
- if (
- type != "string" &&
- !_status.event
- .getParent()
- .filterCard(
- { name: button.link[2], nature: button.link[3] },
- player,
- _status.event.getParent()
- )
- )
- return false;
+ if (ui.selected.buttons.length && type == typeof ui.selected.buttons[0].link) return false;
+ if (type == "string" && player.countMark("olbixin_" + lib.skill.olbixin.map[button.link]) >= num) return false;
+ if (type != "string" && !_status.event.getParent().filterCard({ name: button.link[2], nature: button.link[3] }, player, _status.event.getParent())) return false;
return true;
},
select: 2,
@@ -10376,27 +8697,16 @@ game.import("character", function () {
var type = typeof button.link;
var player = _status.event.player;
var list = types
- .map((i) => [
+ .map(i => [
i,
player
.getCards("h", { type: i })
- .map((i) => get.value(i))
+ .map(i => get.value(i))
.reduce((p, c) => p + c, 0),
])
.sort((a, b) => a[1] - b[1])
- .map((i) => i[0]);
- if (type == "string")
- return (
- (1.2 -
- list.indexOf(button.link) +
- Math.sqrt(
- 3 -
- player.countMark(
- "olbixin_" + lib.skill.olbixin.map[button.link]
- )
- )) *
- 10
- );
+ .map(i => i[0]);
+ if (type == "string") return (1.2 - list.indexOf(button.link) + Math.sqrt(3 - player.countMark("olbixin_" + lib.skill.olbixin.map[button.link]))) * 10;
if (_status.event.getParent().type != "phase") return 1;
return player.getUseValue({ name: button.link[2], nature: button.link[3] });
},
@@ -10418,20 +8728,8 @@ game.import("character", function () {
player.addMark("olbixin_" + type, 1, false);
player.draw(player.countMark("olbixin") >= 3 ? 1 : 3);
"step 1";
- var cards = player.getCards(
- "h",
- (card) => get.type2(card) == lib.skill.olbixin_full_backup.type
- );
- var cardsx = cards.filter(
- (i) =>
- game.checkMod(
- i,
- player,
- "unchanged",
- "cardEnabled2",
- player
- ) !== false
- );
+ var cards = player.getCards("h", card => get.type2(card) == lib.skill.olbixin_full_backup.type);
+ var cardsx = cards.filter(i => game.checkMod(i, player, "unchanged", "cardEnabled2", player) !== false);
if (cardsx.length && cardsx.length == cards.length) {
event.result.cards = cards;
game.delayx();
@@ -10445,21 +8743,13 @@ game.import("character", function () {
};
},
prompt: function (links, player) {
- return (
- "摸一张牌,然后将所有" +
- get.translation(links[0]) +
- "牌当做" +
- (get.translation(links[1][3]) || "") +
- get.translation(links[1][2]) +
- "使用"
- );
+ return "摸一张牌,然后将所有" + get.translation(links[0]) + "牌当做" + (get.translation(links[1][3]) || "") + get.translation(links[1][2]) + "使用";
},
},
hiddenCard: function (player, name) {
var count = player.countMark("olbixin");
- if (!lib.inpile.includes(name) || get.type(name) != "basic" || count < 3)
- return false;
- var types = ["basic", "trick", "equip"].filter((type) => {
+ if (!lib.inpile.includes(name) || get.type(name) != "basic" || count < 3) return false;
+ var types = ["basic", "trick", "equip"].filter(type => {
return player.countMark("olbixin_" + type) < 3;
});
return types.length;
@@ -10471,7 +8761,7 @@ game.import("character", function () {
skillTagFilter: function (player) {
var count = player.countMark("olbixin");
if (count < 3) return;
- var types = ["basic", "trick", "equip"].filter((type) => {
+ var types = ["basic", "trick", "equip"].filter(type => {
return player.countMark("olbixin_" + type) < 3;
});
if (types.length) return true;
@@ -10539,8 +8829,7 @@ game.import("character", function () {
marktext: "☯",
intro: {
content: function (storage, player) {
- if (storage)
- return "转换技。当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。";
+ if (storage) return "转换技。当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。";
return "转换技。当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1。";
},
},
@@ -10554,15 +8843,8 @@ game.import("character", function () {
},
logTarget: "player",
prompt2: function (event, player) {
- var str =
- get.translation(event.player) +
- "的" +
- event.judgestr +
- "判定为" +
- get.translation(event.player.judging[0]) +
- "。你可以令其观看你的牌,其选择一张牌进行改判。";
- if (!player.hasSkill("olhuanshi_mark", null, null, false))
- str += "然后你可以重铸任意张牌。";
+ var str = get.translation(event.player) + "的" + event.judgestr + "判定为" + get.translation(event.player.judging[0]) + "。你可以令其观看你的牌,其选择一张牌进行改判。";
+ if (!player.hasSkill("olhuanshi_mark", null, null, false)) str += "然后你可以重铸任意张牌。";
return str;
},
check: function (event, player) {
@@ -10572,13 +8854,7 @@ game.import("character", function () {
for (var i = 0; i < cards.length; i++) {
var judge2 = event.judge(cards[i]);
if (judge2 > judge) return true;
- if (
- _status.currentPhase != player &&
- judge2 == judge &&
- get.color(cards[i]) == "red" &&
- get.useful(cards[i]) < 5
- )
- return true;
+ if (_status.currentPhase != player && judge2 == judge && get.color(cards[i]) == "red" && get.useful(cards[i]) < 5) return true;
}
return false;
},
@@ -10639,11 +8915,7 @@ game.import("character", function () {
card.clone.classList.remove("thrownhighlight");
}
}, trigger.player.judging[0]);
- game.addVideo(
- "deletenode",
- player,
- get.cardsInfo([trigger.player.judging[0].clone])
- );
+ game.addVideo("deletenode", player, get.cardsInfo([trigger.player.judging[0].clone]));
}
game.cardsDiscard(trigger.player.judging[0]);
trigger.player.judging[0] = event.card;
@@ -10651,25 +8923,17 @@ game.import("character", function () {
game.log(trigger.player, "的判定牌改为", event.card);
game.delay(2);
}
- if (!player.countCards("h") || player.hasSkill("olhuanshi_mark", null, null, false))
- event.finish();
+ if (!player.countCards("h") || player.hasSkill("olhuanshi_mark", null, null, false)) event.finish();
"step 3";
- player
- .chooseCard(
- "是否重铸任意张手牌?",
- "操作提示:选择要重铸的牌并点击“确定”",
- [1, player.countCards("h")],
- lib.filter.cardRecastable
- )
- .set("ai", function (card) {
- var player = _status.event.player,
- cards = ui.selected.cards;
- if (!player.hasSkill("olmingzhe")) return 5 - get.value(card);
- for (var i of cards) {
- if (get.color(i, player) == "red") return 5 - get.value(card);
- }
- return 7.5 - get.value(card);
- });
+ player.chooseCard("是否重铸任意张手牌?", "操作提示:选择要重铸的牌并点击“确定”", [1, player.countCards("h")], lib.filter.cardRecastable).set("ai", function (card) {
+ var player = _status.event.player,
+ cards = ui.selected.cards;
+ if (!player.hasSkill("olmingzhe")) return 5 - get.value(card);
+ for (var i of cards) {
+ if (get.color(i, player) == "red") return 5 - get.value(card);
+ }
+ return 7.5 - get.value(card);
+ });
"step 4";
if (result.bool) {
player.addTempSkill("olhuanshi_mark");
@@ -10688,25 +8952,16 @@ game.import("character", function () {
audio: "hongyuan",
trigger: { player: "gainAfter", global: "loseAsyncAfter" },
filter(event, player) {
- if (!player.countCards("he") || player.hasSkill("olhongyuan_blocker", null, null, false))
- return false;
+ if (!player.countCards("he") || player.hasSkill("olhongyuan_blocker", null, null, false)) return false;
return event.getg(player).length >= 2;
},
async content(event, trigger, player) {
- player.addTempSkill("olhongyuan_blocker", [
- "phaseZhunbeiBefore",
- "phaseJudgeBefore",
- "phaseDrawBefore",
- "phaseUseBefore",
- "phaseDiscardBefore",
- "phaseJieshuBefore",
- "phaseBefore",
- ]);
+ player.addTempSkill("olhongyuan_blocker", ["phaseZhunbeiBefore", "phaseJudgeBefore", "phaseDrawBefore", "phaseUseBefore", "phaseDiscardBefore", "phaseJieshuBefore", "phaseBefore"]);
let selectedTargets = [];
while (
selectedTargets.length < 2 &&
player.countCards("he") &&
- game.hasPlayer((target) => {
+ game.hasPlayer(target => {
return target != player && !selectedTargets.includes(target);
})
) {
@@ -10726,21 +8981,13 @@ game.import("character", function () {
ai1(card) {
const player = get.event("player");
if (
- !game.hasPlayer((current) => {
+ !game.hasPlayer(current => {
if (get.event("selectedTargets").includes(current)) return false;
- return (
- current != player &&
- get.attitude(player, current) > 0 &&
- !current.hasSkillTag("nogain")
- );
+ return current != player && get.attitude(player, current) > 0 && !current.hasSkillTag("nogain");
})
)
return -get.value(card);
- return (
- 4 +
- (player.hasSkill("olmingzhe") && get.color(card) == "red" ? 2 : 0) -
- Math.max(player.getUseValue(card), get.value(card, player))
- );
+ return 4 + (player.hasSkill("olmingzhe") && get.color(card) == "red" ? 2 : 0) - Math.max(player.getUseValue(card), get.value(card, player));
},
ai2(target) {
const player = _status.event.player,
@@ -10768,13 +9015,7 @@ game.import("character", function () {
audio: "mingzhe",
trigger: {
player: "loseAfter",
- global: [
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
forced: true,
filter: function (event, player) {
@@ -10790,8 +9031,7 @@ game.import("character", function () {
var cards = trigger.getl(player).hs.filter(function (i) {
return get.color(i, player) == "red";
});
- if (cards.length > 0)
- player.showCards(cards, get.translation(player) + "发动了【明哲】");
+ if (cards.length > 0) player.showCards(cards, get.translation(player) + "发动了【明哲】");
}
player.draw();
},
@@ -10813,13 +9053,7 @@ game.import("character", function () {
global: "useCard",
},
filter: function (event, player) {
- return (
- get.type(event.card) == "equip" &&
- event.player.isIn() &&
- lib.skill.xindiaodu.isFriendOf(player, event.player) &&
- (player == event.player || player.hasSkill("xindiaodu")) &&
- !event.player.hasSkill("xindiaodu_temp")
- );
+ return get.type(event.card) == "equip" && event.player.isIn() && lib.skill.xindiaodu.isFriendOf(player, event.player) && (player == event.player || player.hasSkill("xindiaodu")) && !event.player.hasSkill("xindiaodu_temp");
},
direct: true,
content: function () {
@@ -10841,10 +9075,7 @@ game.import("character", function () {
},
filter: function (event, player) {
return game.hasPlayer(function (current) {
- return (
- lib.skill.xindiaodu.isFriendOf(current, player) &&
- current.countGainableCards(player, "e") > 0
- );
+ return lib.skill.xindiaodu.isFriendOf(current, player) && current.countGainableCards(player, "e") > 0;
});
},
direct: true,
@@ -10852,10 +9083,7 @@ game.import("character", function () {
"step 0";
player
.chooseTarget(get.prompt2("xindiaodu"), function (card, player, current) {
- return (
- lib.skill.xindiaodu.isFriendOf(current, player) &&
- current.countGainableCards(player, "e") > 0
- );
+ return lib.skill.xindiaodu.isFriendOf(current, player) && current.countGainableCards(player, "e") > 0;
})
.setHiddenSkill(event.name).ai = function (target) {
var num = 1;
@@ -10875,16 +9103,9 @@ game.import("character", function () {
if (result.bool && player.getCards("h").includes(result.cards[0])) {
event.card = result.cards[0];
player
- .chooseTarget(
- "是否将" + get.translation(event.card) + "交给一名其他角色?",
- function (card, player, current) {
- return (
- current != player &&
- current != _status.event.target1 &&
- lib.skill.xindiaodu.isFriendOf(current, player)
- );
- }
- )
+ .chooseTarget("是否将" + get.translation(event.card) + "交给一名其他角色?", function (card, player, current) {
+ return current != player && current != _status.event.target1 && lib.skill.xindiaodu.isFriendOf(current, player);
+ })
.set("target1", event.target1);
} else event.finish();
"step 3";
@@ -10913,27 +9134,13 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseToDiscard(
- "he",
- [1, player.maxHp],
- get.prompt("olhuanfu"),
- "通过弃牌,预测" +
- (player == trigger.player ? "你" : get.translation(trigger.player)) +
- "使用的" +
- get.translation(trigger.card) +
- "能造成多少伤害。如果弃置的牌数等于总伤害,则你摸两倍的牌。"
- )
+ .chooseToDiscard("he", [1, player.maxHp], get.prompt("olhuanfu"), "通过弃牌,预测" + (player == trigger.player ? "你" : get.translation(trigger.player)) + "使用的" + get.translation(trigger.card) + "能造成多少伤害。如果弃置的牌数等于总伤害,则你摸两倍的牌。")
.set(
"predict",
(function () {
var target = trigger.target;
if (player == target) {
- if (
- trigger.targets.length > 1 ||
- player.hasShan() ||
- get.effect(player, trigger.card, trigger.player, player) == 0
- )
- return 0;
+ if (trigger.targets.length > 1 || player.hasShan() || get.effect(player, trigger.card, trigger.player, player) == 0) return 0;
} else {
var target = trigger.target;
if (
@@ -10941,7 +9148,7 @@ game.import("character", function () {
target.mayHaveShan(
player,
"use",
- target.getCards("h", (i) => {
+ target.getCards("h", i => {
return i.hasGaintag("sha_notshan");
})
)
@@ -10988,13 +9195,7 @@ game.import("character", function () {
ai: {
effect: {
target: function (card, player, target, current) {
- if (
- card.name == "sha" &&
- target.hp > 0 &&
- current < 0 &&
- target.countCards("he") > 0
- )
- return 0.7;
+ if (card.name == "sha" && target.hp > 0 && current < 0 && target.countCards("he") > 0) return 0.7;
},
},
},
@@ -11026,8 +9227,7 @@ game.import("character", function () {
return (
player.hasCard(function (card) {
return lib.filter.cardDiscardable(card, player, "olqingyi");
- }, "he") &&
- game.hasPlayer((current) => lib.skill.olqingyi.filterTarget(null, player, current))
+ }, "he") && game.hasPlayer(current => lib.skill.olqingyi.filterTarget(null, player, current))
);
},
selectTarget: [1, 2],
@@ -11054,15 +9254,9 @@ game.import("character", function () {
}
"step 1";
player
- .chooseCardOL(
- event.list,
- "he",
- true,
- "清议:选择弃置一张牌",
- function (card, player) {
- return lib.filter.cardDiscardable(card, player, "olqingyi");
- }
- )
+ .chooseCardOL(event.list, "he", true, "清议:选择弃置一张牌", function (card, player) {
+ return lib.filter.cardDiscardable(card, player, "olqingyi");
+ })
.set("ai", get.unuseful);
"step 2";
var lose_list = [],
@@ -11123,7 +9317,7 @@ game.import("character", function () {
trigger: { player: "phaseJieshuBegin" },
direct: true,
filter: function (event, player) {
- var history = player.getHistory("useSkill", (evt) => evt.skill == "olqingyi");
+ var history = player.getHistory("useSkill", evt => evt.skill == "olqingyi");
if (!history.length) return false;
var color = false;
for (var evt of history) {
@@ -11131,8 +9325,7 @@ game.import("character", function () {
list.addArray(evt.targets);
for (var target of list) {
target.getHistory("lose", function (evtx) {
- if (color === true || evtx.getParent(2).name != "olqingyi")
- return false;
+ if (color === true || evtx.getParent(2).name != "olqingyi") return false;
for (var card of evtx.cards) {
if (color === true || get.position(card, true) != "d") continue;
var color2 = get.color(card, false);
@@ -11147,7 +9340,7 @@ game.import("character", function () {
},
content: function () {
"step 0";
- var history = player.getHistory("useSkill", (evt) => evt.skill == "olqingyi"),
+ var history = player.getHistory("useSkill", evt => evt.skill == "olqingyi"),
cards = [];
for (var evt of history) {
var list = [player];
@@ -11165,10 +9358,7 @@ game.import("character", function () {
.chooseButton(["清议:选择获得两张异色牌", cards], 2)
.set("filterButton", function (button) {
if (!ui.selected.buttons.length) return true;
- return (
- get.color(button.link, false) !=
- get.color(ui.selected.buttons[0].link, false)
- );
+ return get.color(button.link, false) != get.color(ui.selected.buttons[0].link, false);
})
.set("ai", function (button) {
return get.value(button.link, _status.event.player);
@@ -11195,21 +9385,14 @@ game.import("character", function () {
for (var i = history.length - 1; i >= 0; i--) {
if (i < history.length - 1 && history[i].isMe) break;
for (var evt of history[i].damage) {
- if (evt.source && evt.source != player && evt.source.isIn())
- sources.add(evt.source);
+ if (evt.source && evt.source != player && evt.source.isIn()) sources.add(evt.source);
}
}
for (var source of sources) {
var skills = source.getStockSkills("一!", "五!");
for (var skill of skills) {
var info = get.info(skill);
- if (
- info &&
- !info.charlotte &&
- !get.is.locked(skill, source) &&
- source.hasSkill(skill, null, null, false)
- )
- return true;
+ if (info && !info.charlotte && !get.is.locked(skill, source) && source.hasSkill(skill, null, null, false)) return true;
}
}
return false;
@@ -11221,32 +9404,21 @@ game.import("character", function () {
for (var i = history.length - 1; i >= 0; i--) {
if (i < history.length - 1 && history[i].isMe) break;
for (var evt of history[i].damage) {
- if (evt.source && evt.source != player && evt.source.isIn())
- sources.add(evt.source);
+ if (evt.source && evt.source != player && evt.source.isIn()) sources.add(evt.source);
}
}
sources = sources.filter(function (source) {
var skills = source.getStockSkills("一!", "五!");
for (var skill of skills) {
var info = get.info(skill);
- if (
- info &&
- !info.charlotte &&
- !get.is.locked(skill, source) &&
- source.hasSkill(skill, null, null, false)
- )
- return true;
+ if (info && !info.charlotte && !get.is.locked(skill, source) && source.hasSkill(skill, null, null, false)) return true;
}
return false;
});
player
- .chooseTarget(
- get.prompt("olzeyue"),
- "令一名可选角色的一个非锁定技失效",
- function (card, player, target) {
- return _status.event.sources.includes(target);
- }
- )
+ .chooseTarget(get.prompt("olzeyue"), "令一名可选角色的一个非锁定技失效", function (card, player, target) {
+ return _status.event.sources.includes(target);
+ })
.set("sources", sources)
.set("ai", function (target) {
var player = _status.event.player,
@@ -11263,19 +9435,10 @@ game.import("character", function () {
var skills = target.getStockSkills("一!", "五!");
skills = skills.filter(function (skill) {
var info = get.info(skill);
- if (
- info &&
- !info.charlotte &&
- !get.is.locked(skill, target) &&
- target.hasSkill(skill, null, null, false)
- )
- return true;
+ if (info && !info.charlotte && !get.is.locked(skill, target) && target.hasSkill(skill, null, null, false)) return true;
});
if (skills.length == 1) event._result = { control: skills[0] };
- else
- player
- .chooseControl(skills)
- .set("prompt", "令" + get.translation(target) + "的一个技能失效");
+ else player.chooseControl(skills).set("prompt", "令" + get.translation(target) + "的一个技能失效");
} else event.finish();
"step 2";
var skill = result.control;
@@ -11319,30 +9482,16 @@ game.import("character", function () {
if (
target.storage[key] &&
player.hasHistory("damage", function (evt) {
- return (
- evt.card.name == "sha" &&
- evt.getParent().type == "card" &&
- evt.getParent(3) == event
- );
+ return evt.card.name == "sha" && evt.getParent().type == "card" && evt.getParent(3) == event;
})
) {
for (var skill in target.disabledSkills) {
- if (target.disabledSkills[skill].includes(key))
- game.log(
- target,
- "恢复了技能",
- "#g【" + get.translation(skill) + "】"
- );
+ if (target.disabledSkills[skill].includes(key)) game.log(target, "恢复了技能", "#g【" + get.translation(skill) + "】");
}
delete target.storage[key];
target.enableSkill(key);
}
- if (
- event.num > 0 &&
- player.isIn() &&
- target.isIn() &&
- target.canUse("sha", player, false)
- ) {
+ if (event.num > 0 && player.isIn() && target.isIn() && target.canUse("sha", player, false)) {
event.goto(2);
} else if (event.targets.length > 0) {
event.target = event.targets.shift();
@@ -11357,12 +9506,7 @@ game.import("character", function () {
audio: 2,
trigger: { source: "damageSource" },
filter: function (event, player) {
- return (
- event.getParent().type == "card" &&
- event.card &&
- event.card.name == "sha" &&
- event.player.countCards("he") > 0
- );
+ return event.getParent().type == "card" && event.card && event.card.name == "sha" && event.player.countCards("he") > 0;
},
logTarget: "player",
content: function () {
@@ -11406,33 +9550,16 @@ game.import("character", function () {
},
usable: 1,
filter: function (event, player) {
- if (
- event.type != "discard" ||
- event.getlx === false ||
- player == _status.currentPhase ||
- !event.isPhaseUsing()
- )
- return false;
+ if (event.type != "discard" || event.getlx === false || player == _status.currentPhase || !event.isPhaseUsing()) return false;
for (var card of event.cards) {
- if (
- get.position(card, true) == "d" &&
- get.name(card, event.hs && event.hs.includes(card) ? event.player : false) ==
- "sha"
- )
- return true;
+ if (get.position(card, true) == "d" && get.name(card, event.hs && event.hs.includes(card) ? event.player : false) == "sha") return true;
}
},
direct: true,
content: function () {
"step 0";
var cards = trigger.cards.filter(function (card) {
- return (
- get.position(card, true) == "d" &&
- get.name(
- card,
- trigger.hs && trigger.hs.includes(card) ? trigger.player : false
- ) == "sha"
- );
+ return get.position(card, true) == "d" && get.name(card, trigger.hs && trigger.hs.includes(card) ? trigger.player : false) == "sha";
});
player.chooseButton(["是否发动【更战】获得一张杀?", cards]).set("ai", function (button) {
return get.value(button.link, _status.event.player);
@@ -11510,14 +9637,7 @@ game.import("character", function () {
},
direct: true,
filter: function (event, player) {
- if (
- event.player != _status.currentPhase ||
- !event.targets ||
- event.targets.length != 1 ||
- event.type != "card" ||
- !player.countCards("he")
- )
- return false;
+ if (event.player != _status.currentPhase || !event.targets || event.targets.length != 1 || event.type != "card" || !player.countCards("he")) return false;
return lib.skill.cihuang.getList(player, event.player, true);
},
getList: function (player, target, bool) {
@@ -11525,15 +9645,7 @@ game.import("character", function () {
var tricks = [];
for (var name of lib.inpile) {
var info = lib.card[name];
- if (
- !info ||
- info.type != "trick" ||
- info.notarget ||
- (info.selectTarget &&
- info.selectTarget != 1 &&
- (info.selectTarget != -1 || !info.toself))
- )
- continue;
+ if (!info || info.type != "trick" || info.notarget || (info.selectTarget && info.selectTarget != 1 && (info.selectTarget != -1 || !info.toself))) continue;
tricks.push(name);
}
var history = player.actionHistory;
@@ -11588,24 +9700,16 @@ game.import("character", function () {
game.broadcastAll(function () {
_status.noclearcountdown = true;
});
- player
- .chooseButton([
- get.prompt("cihuang", target),
- '将一张牌当以下的一张牌对' +
- get.translation(target) +
- "使用
",
- [list, "vcard"],
- ])
- .set("ai", function (button) {
- var card = {
- name: button.link[2],
- nature: button.link[3],
- storage: { cihuang: true },
- },
- player = _status.event.player,
- target = _status.event.getTrigger().player;
- return get.effect(target, card, player, player);
- });
+ player.chooseButton([get.prompt("cihuang", target), '将一张牌当以下的一张牌对' + get.translation(target) + "使用
", [list, "vcard"]]).set("ai", function (button) {
+ var card = {
+ name: button.link[2],
+ nature: button.link[3],
+ storage: { cihuang: true },
+ },
+ player = _status.event.player,
+ target = _status.event.getTrigger().player;
+ return get.effect(target, card, player, player);
+ });
"step 1";
if (result.bool) {
var card = {
@@ -11615,31 +9719,12 @@ game.import("character", function () {
};
event.card = card;
player
- .chooseCard(
- "hes",
- "雌黄:将一张牌当" +
- get.translation(card) +
- "对" +
- get.translation(trigger.player) +
- "使用",
- function (card, player) {
- return player.canUse(
- get.autoViewAs(_status.event.getParent().card, [card]),
- _status.event.target,
- false
- );
- }
- )
+ .chooseCard("hes", "雌黄:将一张牌当" + get.translation(card) + "对" + get.translation(trigger.player) + "使用", function (card, player) {
+ return player.canUse(get.autoViewAs(_status.event.getParent().card, [card]), _status.event.target, false);
+ })
.set("target", trigger.player)
.set("ai", function (card) {
- if (
- get.effect(
- _status.event.target,
- get.autoViewAs(_status.event.getParent().card, [card]),
- player
- ) <= 0
- )
- return false;
+ if (get.effect(_status.event.target, get.autoViewAs(_status.event.getParent().card, [card]), player) <= 0) return false;
return 6 - get.value(card);
});
} else event._result = { bool: false };
@@ -11651,13 +9736,7 @@ game.import("character", function () {
});
}
if (result.bool) {
- player.useCard(
- get.autoViewAs(event.card, result.cards),
- result.cards,
- false,
- trigger.player,
- "cihuang"
- ).oncard = function (card, player) {
+ player.useCard(get.autoViewAs(event.card, result.cards), result.cards, false, trigger.player, "cihuang").oncard = function (card, player) {
_status.event.directHit.addArray(game.filterPlayer());
};
}
@@ -11771,11 +9850,7 @@ game.import("character", function () {
}
"step 2";
var func = function (card) {
- return (
- get.subtype(card, false) == result.control &&
- player.canUse(card, player) &&
- !get.cardtag(card, "gifts")
- );
+ return get.subtype(card, false) == result.control && player.canUse(card, player) && !get.cardtag(card, "gifts");
};
var card = get.discardPile(func) || get.cardPile2(func);
if (card) {
@@ -11791,21 +9866,14 @@ game.import("character", function () {
})
) {
player
- .chooseTarget(
- "是否对一名装备数小于你的角色造成伤害?",
- "你可以选择一名装备区内牌数小于你的角色,并对其造成X点伤害(X为你与其装备区牌数之差),但此效果每局游戏内仅限一次。",
- function (card, player, target) {
- return (
- player != target && player.countCards("e") > target.countCards("e")
- );
- }
- )
+ .chooseTarget("是否对一名装备数小于你的角色造成伤害?", "你可以选择一名装备区内牌数小于你的角色,并对其造成X点伤害(X为你与其装备区牌数之差),但此效果每局游戏内仅限一次。", function (card, player, target) {
+ return player != target && player.countCards("e") > target.countCards("e");
+ })
.set("ai", function (target) {
var player = _status.event.player;
var num = player.countCards("e") - target.countCards("e");
if (get.attitude(player, target) >= 0) return 0;
- if (num >= Math.min(2, player.hp, target.hp))
- return get.damageEffect(target, player, player);
+ if (num >= Math.min(2, player.hp, target.hp)) return get.damageEffect(target, player, player);
return 0;
});
} else event.finish();
@@ -11851,14 +9919,11 @@ game.import("character", function () {
color2 = get.color(evt.card);
return color != color2 && color2 != "none";
},
- prompt2: (event) => "将" + get.translation(event.cards.filterInD("oe")) + "置于武将牌上",
+ prompt2: event => "将" + get.translation(event.cards.filterInD("oe")) + "置于武将牌上",
check: function (event, player) {
if (
!game.hasPlayer(function (current) {
- return (
- current.hasSkill("qianmeng", null, null, false) &&
- get.attitude(player, current) > 0
- );
+ return current.hasSkill("qianmeng", null, null, false) && get.attitude(player, current) > 0;
})
)
return false;
@@ -11870,11 +9935,7 @@ game.import("character", function () {
var subtype = get.subtype(card);
if (
player.hasCard("hs", function (card) {
- return (
- get.subtype(card) == subtype &&
- player.canUse(card, player) &&
- get.effect(player, card, player, player) > 0
- );
+ return get.subtype(card) == subtype && player.canUse(card, player) && get.effect(player, card, player, player) > 0;
})
)
return true;
@@ -11895,13 +9956,7 @@ game.import("character", function () {
var history = game.getGlobalHistory("useCard");
if (!history.length) return;
var evt = history[history.length - 1];
- if (
- evt &&
- evt.card &&
- get.color(evt.card) != "none" &&
- get.color(card) != "none" &&
- get.color(evt.card) != get.color(card)
- ) {
+ if (evt && evt.card && get.color(evt.card) != "none" && get.color(card) != "none" && get.color(evt.card) != get.color(card)) {
return num + 4;
}
}
@@ -11943,14 +9998,7 @@ game.import("character", function () {
qianmeng: {
audio: 2,
trigger: {
- global: [
- "loseAfter",
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["loseAfter", "equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
filter: function (event, player) {
if (event.name == "addToExpansion") {
@@ -11959,12 +10007,7 @@ game.import("character", function () {
red = cards.filter(function (i) {
return get.color(i, false) == "red";
});
- if (
- cards.length == red.length ||
- red.length == 0 ||
- cards.length == red.length * 2
- )
- return true;
+ if (cards.length == red.length || red.length == 0 || cards.length == red.length * 2) return true;
}
}
if (event.name == "lose" && event.getlx !== false) {
@@ -11974,11 +10017,7 @@ game.import("character", function () {
red = cards.filter(function (i) {
return get.color(i, false) == "red";
});
- return (
- cards.length == red.length ||
- red.length == 0 ||
- cards.length == red.length / 2
- );
+ return cards.length == red.length || red.length == 0 || cards.length == red.length / 2;
}
}
return false;
@@ -11992,11 +10031,7 @@ game.import("character", function () {
red = cards.filter(function (i) {
return get.color(i, false) == "red";
});
- return (
- cards.length == red.length ||
- red.length == 0 ||
- cards.length == red.length / 2
- );
+ return cards.length == red.length || red.length == 0 || cards.length == red.length / 2;
}
}
return false;
@@ -12142,12 +10177,7 @@ game.import("character", function () {
cards.addArray(cardsx);
list.push([current, cardsx]);
current.$throw(cardsx);
- game.log(
- current,
- "将",
- cardsx,
- "化作“" + (color == "black" ? "灵杉" : "玉树") + "”良缘"
- );
+ game.log(current, "将", cardsx, "化作“" + (color == "black" ? "灵杉" : "玉树") + "”良缘");
}
});
event.result.cards = cards;
@@ -12331,9 +10361,7 @@ game.import("character", function () {
"step 0";
var list = trigger.getParent()._shanduan;
if (!list) {
- trigger.getParent()._shanduan = (
- player.storage.shanduan || [1, 2, 3, 4]
- ).slice(0);
+ trigger.getParent()._shanduan = (player.storage.shanduan || [1, 2, 3, 4]).slice(0);
player.storage.shanduan = [1, 2, 3, 4];
}
"step 1";
@@ -12366,9 +10394,7 @@ game.import("character", function () {
"step 0";
var list = trigger.getParent()._shanduan;
if (!list) {
- trigger.getParent()._shanduan = (
- player.storage.shanduan || [1, 2, 3, 4]
- ).slice(0);
+ trigger.getParent()._shanduan = (player.storage.shanduan || [1, 2, 3, 4]).slice(0);
player.storage.shanduan = [1, 2, 3, 4];
}
"step 1";
@@ -12383,11 +10409,7 @@ game.import("character", function () {
var player = _status.event.player,
list = _status.event.list,
card = { name: "sha" };
- if (
- player.hasSha() &&
- player.hasValueTarget(card, false, true) &&
- !player.hasValueTarget(card, null, true)
- ) {
+ if (player.hasSha() && player.hasValueTarget(card, false, true) && !player.hasValueTarget(card, null, true)) {
var range = 1;
var equips = player.getCards("e");
for (var i = 0; i < equips.length; i++) {
@@ -12402,13 +10424,8 @@ game.import("character", function () {
if (i <= range) continue;
if (
game.hasPlayer(function (current) {
- var distance = get.distance(
- player,
- current,
- "attack"
- );
- if (distance > 1 && distance <= i - range)
- return true;
+ var distance = get.distance(player, current, "attack");
+ if (distance > 1 && distance <= i - range) return true;
return false;
})
)
@@ -12436,10 +10453,7 @@ game.import("character", function () {
var player = _status.event.player,
list = _status.event.list;
var sha = player.countCards("hs", function (card) {
- return (
- get.name(card) == "sha" &&
- player.hasValueTarget(card, null, true)
- );
+ return get.name(card) == "sha" && player.hasValueTarget(card, null, true);
});
var max = player.getCardUsable("sha");
if (sha <= max) {
@@ -12473,9 +10487,7 @@ game.import("character", function () {
"step 0";
var list = trigger.getParent()._shanduan;
if (!list) {
- trigger.getParent()._shanduan = (
- player.storage.shanduan || [1, 2, 3, 4]
- ).slice(0);
+ trigger.getParent()._shanduan = (player.storage.shanduan || [1, 2, 3, 4]).slice(0);
player.storage.shanduan = [1, 2, 3, 4];
}
"step 1";
@@ -12537,11 +10549,7 @@ game.import("character", function () {
audio: 2,
enable: "chooseToUse",
hiddenCard: function (player, name) {
- if (
- get.type(name) == "basic" &&
- lib.inpile.includes(name) &&
- !player.getStorage("yilie_count").includes(name)
- ) {
+ if (get.type(name) == "basic" && lib.inpile.includes(name) && !player.getStorage("yilie_count").includes(name)) {
var hs = player.getCards("hs");
if (hs.length < 2) return false;
var bool = false,
@@ -12580,8 +10588,7 @@ game.import("character", function () {
if (name == "sha") {
for (var nature of lib.inpile_nature) {
card.nature = nature;
- if (event.filterCard(get.autoViewAs(card, "unsure"), player, event))
- return true;
+ if (event.filterCard(get.autoViewAs(card, "unsure"), player, event)) return true;
}
}
}
@@ -12594,13 +10601,11 @@ game.import("character", function () {
for (var i of lib.inpile) {
if (get.type(i) != "basic" || storage.includes(i)) continue;
var card = { name: i };
- if (event.filterCard(get.autoViewAs(card, "unsure"), player, event))
- list.push(["基本", "", i]);
+ if (event.filterCard(get.autoViewAs(card, "unsure"), player, event)) list.push(["基本", "", i]);
if (i == "sha") {
for (var j of lib.inpile_nature) {
card.nature = j;
- if (event.filterCard(get.autoViewAs(card, "unsure"), player, event))
- list.push(["基本", "", i, j]);
+ if (event.filterCard(get.autoViewAs(card, "unsure"), player, event)) list.push(["基本", "", i, j]);
}
}
}
@@ -12620,15 +10625,9 @@ game.import("character", function () {
if (evt.type == "phase") {
if (button.link[2] == "jiu") {
if (player.getUseValue({ name: "jiu" }) <= 0) return 0;
- var cards = player.getCards("hs", (cardx) => get.value(cardx) < 8);
+ var cards = player.getCards("hs", cardx => get.value(cardx) < 8);
cards.sort((a, b) => get.value(a) - get.value(b));
- if (
- cards.some(
- (cardx) =>
- get.name(cardx) == "sha" && !cards.slice(0, 2).includes(cardx)
- )
- )
- return player.getUseValue({ name: "jiu" });
+ if (cards.some(cardx => get.name(cardx) == "sha" && !cards.slice(0, 2).includes(cardx))) return player.getUseValue({ name: "jiu" });
return 0;
}
return player.getUseValue(card) / 4;
@@ -12648,7 +10647,7 @@ game.import("character", function () {
},
position: "hs",
complexCard: true,
- check: (card) => 8 - get.value(card),
+ check: card => 8 - get.value(card),
popname: true,
viewAs: {
name: links[0][2],
@@ -12664,12 +10663,7 @@ game.import("character", function () {
prompt: function (links, player) {
var name = links[0][2];
var nature = links[0][3];
- return (
- "将两张颜色相同的手牌当做" +
- (get.translation(nature) || "") +
- get.translation(name) +
- "使用"
- );
+ return "将两张颜色相同的手牌当做" + (get.translation(nature) || "") + get.translation(name) + "使用";
},
},
ai: {
@@ -12677,33 +10671,19 @@ game.import("character", function () {
if (player && _status.event.type == "phase") {
var add = false,
max = 0;
- var names = lib.inpile.filter(
- (name) =>
- get.type(name) == "basic" &&
- !player.getStorage("yilie_count").includes(name)
- );
+ var names = lib.inpile.filter(name => get.type(name) == "basic" && !player.getStorage("yilie_count").includes(name));
if (names.includes("sha")) add = true;
- names = names.map((namex) => {
+ names = names.map(namex => {
return { name: namex };
});
- if (add)
- lib.inpile_nature.forEach((nature) =>
- names.push({ name: "sha", nature: nature })
- );
- names.forEach((card) => {
+ if (add) lib.inpile_nature.forEach(nature => names.push({ name: "sha", nature: nature }));
+ names.forEach(card => {
if (player.getUseValue(card) > 0) {
var temp = get.order(card);
if (card.name == "jiu") {
- var cards = player.getCards("hs", (cardx) => get.value(cardx) < 8);
+ var cards = player.getCards("hs", cardx => get.value(cardx) < 8);
cards.sort((a, b) => get.value(a) - get.value(b));
- if (
- !cards.some(
- (cardx) =>
- get.name(cardx) == "sha" &&
- !cards.slice(0, 2).includes(cardx)
- )
- )
- temp = 0;
+ if (!cards.some(cardx => get.name(cardx) == "sha" && !cards.slice(0, 2).includes(cardx))) temp = 0;
}
if (temp > max) max = temp;
}
@@ -12762,16 +10742,9 @@ game.import("character", function () {
direct: true,
content: function () {
"step 0";
- player
- .chooseTarget(
- get.prompt("tongxie"),
- "选择至多两名其他角色作为“同协角色”",
- lib.filter.notMe,
- [0, 2]
- )
- .set("ai", function (target) {
- return get.attitude(_status.event.player, target);
- });
+ player.chooseTarget(get.prompt("tongxie"), "选择至多两名其他角色作为“同协角色”", lib.filter.notMe, [0, 2]).set("ai", function (target) {
+ return get.attitude(_status.event.player, target);
+ });
"step 1";
if (result.bool) {
var targets = result.targets;
@@ -12802,12 +10775,7 @@ game.import("character", function () {
forced: true,
popup: false,
filter: function (event, player) {
- if (
- event.card.name != "sha" ||
- event.targets.length != 1 ||
- !event.targets[0].isIn()
- )
- return false;
+ if (event.card.name != "sha" || event.targets.length != 1 || !event.targets[0].isIn()) return false;
if (event.getParent(2).name == "tongxie_effect") return false;
var list = player.getStorage("tongxie_effect"),
target = event.targets[0];
@@ -12831,28 +10799,16 @@ game.import("character", function () {
event.target = trigger.targets[0];
"step 1";
var current = targets.shift();
- if (
- current.isIn() &&
- target.isIn() &&
- current.canUse("sha", target, false) &&
- (_status.connectMode || current.hasSha())
- ) {
+ if (current.isIn() && target.isIn() && current.canUse("sha", target, false) && (_status.connectMode || current.hasSha())) {
current
- .chooseToUse(
- function (card, player, event) {
- if (get.name(card) != "sha") return false;
- return lib.filter.filterCard.apply(this, arguments);
- },
- "同协:是否对" + get.translation(target) + "使用一张杀?"
- )
+ .chooseToUse(function (card, player, event) {
+ if (get.name(card) != "sha") return false;
+ return lib.filter.filterCard.apply(this, arguments);
+ }, "同协:是否对" + get.translation(target) + "使用一张杀?")
.set("targetRequired", true)
.set("complexSelect", true)
.set("filterTarget", function (card, player, target) {
- if (
- target != _status.event.sourcex &&
- !ui.selected.targets.includes(_status.event.sourcex)
- )
- return false;
+ if (target != _status.event.sourcex && !ui.selected.targets.includes(_status.event.sourcex)) return false;
return lib.filter.targetEnabled.apply(this, arguments);
})
.set("sourcex", target)
@@ -12871,12 +10827,7 @@ game.import("character", function () {
var list = player.getStorage("tongxie_effect");
if (!list.includes(event.player)) return false;
for (var i of list) {
- if (
- i != event.player &&
- i.isIn() &&
- !i.hasSkill("tongxie_count2", null, null, false)
- )
- return true;
+ if (i != event.player && i.isIn() && !i.hasSkill("tongxie_count2", null, null, false)) return true;
}
return false;
},
@@ -12887,11 +10838,7 @@ game.import("character", function () {
event.targets = player
.getStorage("tongxie_effect")
.filter(function (i) {
- return (
- i != trigger.player &&
- i.isIn() &&
- !i.hasSkill("tongxie_count2", null, null, false)
- );
+ return i != trigger.player && i.isIn() && !i.hasSkill("tongxie_count2", null, null, false);
})
.sortBySeat();
event.num = 0;
@@ -12899,29 +10846,15 @@ game.import("character", function () {
var target = targets[num];
event.num++;
event.target = target;
- target
- .chooseBool(
- "同协:是否为" + get.translation(trigger.player) + "阻挡伤害?",
- "失去1点体力,防止" +
- get.translation(trigger.player) +
- "即将受到的" +
- get.cnNumber(trigger.num) +
- "点伤害"
- )
- .set("ai", function () {
- var player = _status.event.player,
- target = _status.event.getTrigger().player;
- var trigger = _status.event.getTrigger();
- var eff1 = get.damageEffect(
- target,
- trigger.source,
- player,
- trigger.nature
- );
- if (trigger.num > 1) eff1 = Math.min(-1, eff1) * trigger.num;
- var eff2 = get.effect(player, { name: "losehp" }, player, player);
- return eff2 > eff1;
- });
+ target.chooseBool("同协:是否为" + get.translation(trigger.player) + "阻挡伤害?", "失去1点体力,防止" + get.translation(trigger.player) + "即将受到的" + get.cnNumber(trigger.num) + "点伤害").set("ai", function () {
+ var player = _status.event.player,
+ target = _status.event.getTrigger().player;
+ var trigger = _status.event.getTrigger();
+ var eff1 = get.damageEffect(target, trigger.source, player, trigger.nature);
+ if (trigger.num > 1) eff1 = Math.min(-1, eff1) * trigger.num;
+ var eff2 = get.effect(player, { name: "losehp" }, player, player);
+ return eff2 > eff1;
+ });
"step 2";
if (result.bool) {
target.logSkill("tongxie_damage", trigger.player);
@@ -12957,11 +10890,7 @@ game.import("character", function () {
trigger: { player: "useCardToPlayered" },
shaRelated: true,
filter: function (event, player) {
- return (
- event.card.name == "sha" &&
- event.target.countCards("he") > 0 &&
- get.distance(player, event.target) == 1
- );
+ return event.card.name == "sha" && event.target.countCards("he") > 0 && get.distance(player, event.target) == 1;
},
forced: true,
logTarget: "target",
@@ -13054,8 +10983,7 @@ game.import("character", function () {
var dialog = get.idDialog(id);
if (!dialog) return;
var button = ui.create.button(card, "card", dialog.buttonss[index]);
- button.querySelector(".info").innerHTML =
- name + "|" + get.strNumber(card.number);
+ button.querySelector(".info").innerHTML = name + "|" + get.strNumber(card.number);
},
event.videoId,
card,
@@ -13149,8 +11077,7 @@ game.import("character", function () {
var dialog = get.idDialog(id);
if (!dialog) return;
var button = ui.create.button(card, "card", dialog.buttonss[index]);
- button.querySelector(".info").innerHTML =
- name + "|" + get.strNumber(card.number);
+ button.querySelector(".info").innerHTML = name + "|" + get.strNumber(card.number);
},
event.videoId,
card,
@@ -13191,10 +11118,7 @@ game.import("character", function () {
game.broadcastAll(
function (id, result) {
var dialog = get.idDialog(id);
- if (dialog)
- dialog.content.firstChild.innerHTML = ["锻造失败…", "锻造成功", "完美锻造!"][
- result
- ];
+ if (dialog) dialog.content.firstChild.innerHTML = ["锻造失败…", "锻造成功", "完美锻造!"][result];
},
event.videoId,
result
@@ -13242,14 +11166,9 @@ game.import("character", function () {
}
if (!list.length) event.finish();
else
- player
- .chooseButton(
- ["请选择一种装备牌", [list.randomGets(event.duanzao_result + 1), "vcard"]],
- true
- )
- .set("ai", function (button) {
- return get.value({ name: button.link[2] }, player, "raw");
- });
+ player.chooseButton(["请选择一种装备牌", [list.randomGets(event.duanzao_result + 1), "vcard"]], true).set("ai", function (button) {
+ return get.value({ name: button.link[2] }, player, "raw");
+ });
"step 7";
var name = result.links[0][2];
var card;
@@ -13270,13 +11189,9 @@ game.import("character", function () {
return;
}
player
- .chooseTarget(
- true,
- "将" + get.translation(card) + "置于一名角色的装备区内",
- function (card, player, target) {
- return target.canEquip(_status.event.card, true);
- }
- )
+ .chooseTarget(true, "将" + get.translation(card) + "置于一名角色的装备区内", function (card, player, target) {
+ return target.canEquip(_status.event.card, true);
+ })
.set("card", card)
.set("ai", function (target) {
var card = _status.event.getParent().card,
@@ -13355,12 +11270,10 @@ game.import("character", function () {
return !event.numFixed && event.num > 0;
},
check: function (event, player) {
- if (player.hasEmptySlot(2) || player.hasEmptySlot(5) || player.hasEmptySlot(1))
- return true;
+ if (player.hasEmptySlot(2) || player.hasEmptySlot(5) || player.hasEmptySlot(1)) return true;
return false;
},
- prompt2:
- "摸牌阶段开始时,你可以少摸一张牌并声明一种装备牌的副类别,然后从牌堆或弃牌堆中获得一张该副类别的牌。",
+ prompt2: "摸牌阶段开始时,你可以少摸一张牌并声明一种装备牌的副类别,然后从牌堆或弃牌堆中获得一张该副类别的牌。",
content: function () {
"step 0";
player
@@ -13440,15 +11353,10 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseCard(
- "h",
- get.prompt("zhaogujing_skill"),
- "展示并视为使用一张基本牌或普通锦囊牌",
- function (card, player) {
- var type = get.type(card, player);
- return type == "basic" || type == "trick";
- }
- )
+ .chooseCard("h", get.prompt("zhaogujing_skill"), "展示并视为使用一张基本牌或普通锦囊牌", function (card, player) {
+ var type = get.type(card, player);
+ return type == "basic" || type == "trick";
+ })
.set("ai", function (card) {
var player = _status.event.player,
name = get.name(card, player);
@@ -13511,13 +11419,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("shufazijinguan"),
- "对一名其他角色造成1点伤害",
- function (card, player, target) {
- return player != target;
- }
- )
+ .chooseTarget(get.prompt("shufazijinguan"), "对一名其他角色造成1点伤害", function (card, player, target) {
+ return player != target;
+ })
.set("ai", function (target) {
return get.damageEffect(target, player, player);
});
@@ -13660,7 +11564,7 @@ game.import("character", function () {
check: function (event, player) {
return get.effect(player, event.card, event.player, player) <= 0;
},
- prompt2: (event) => "进行一次判定。若结果为♥,则" + get.translation(event.card) + "对你无效",
+ prompt2: event => "进行一次判定。若结果为♥,则" + get.translation(event.card) + "对你无效",
content: function () {
"step 0";
player.judge("linglongshimandai", function (card) {
@@ -13729,8 +11633,7 @@ game.import("character", function () {
onremove: true,
mod: {
cardUsable: function (card, player, num) {
- if (card.name == "sha")
- return num + player.countMark("bintieshuangji_skill_effect");
+ if (card.name == "sha") return num + player.countMark("bintieshuangji_skill_effect");
},
},
},
@@ -13767,9 +11670,7 @@ game.import("character", function () {
firstDo: true,
onremove: true,
filter: function (event, player) {
- return (
- player.storage.chixueqingfeng2 && player.storage.chixueqingfeng2.includes(event.card)
- );
+ return player.storage.chixueqingfeng2 && player.storage.chixueqingfeng2.includes(event.card);
},
content: function () {
player.storage.chixueqingfeng2.remove(trigger.card);
@@ -13803,8 +11704,7 @@ game.import("character", function () {
unequip_ai: true,
directHit_ai: true,
skillTagFilter: function (player, tag, arg) {
- if (arg && arg.card && arg.card.name == "sha" && get.color(arg.card) == "red")
- return true;
+ if (arg && arg.card && arg.card.name == "sha" && get.color(arg.card) == "red") return true;
return false;
},
},
@@ -13839,8 +11739,7 @@ game.import("character", function () {
target.hasCard(function (card) {
return lib.filter.canBeDiscarded(card, player, target);
}, "he") &&
- get.effect(target, { name: "guohe_copy2" }, player, player) >
- get.effect(player, { name: "draw" }, player, player)
+ get.effect(target, { name: "guohe_copy2" }, player, player) > get.effect(player, { name: "draw" }, player, player)
)
return 1;
return 0;
@@ -13860,30 +11759,18 @@ game.import("character", function () {
//芮姬
qiaoli: {
onChooseToUse: function (event) {
- if (
- event.type == "phase" &&
- !game.online &&
- !(event.qiaoli_equip1 && event.qiaoli_noequip1)
- ) {
+ if (event.type == "phase" && !game.online && !(event.qiaoli_equip1 && event.qiaoli_noequip1)) {
var player = event.player;
var evt = event.getParent("phaseUse");
if (
player.getHistory("useCard", function (evtx) {
- return (
- evtx.getParent("phaseUse") == evt &&
- evtx.skill == "qiaoli" &&
- get.subtype(evtx.cards[0]) == "equip1"
- );
+ return evtx.getParent("phaseUse") == evt && evtx.skill == "qiaoli" && get.subtype(evtx.cards[0]) == "equip1";
}).length
)
event.set("qiaoli_equip1", true);
if (
player.getHistory("useCard", function (evtx) {
- return (
- evtx.getParent("phaseUse") == evt &&
- evtx.skill == "qiaoli" &&
- get.subtype(evtx.cards[0]) != "equip1"
- );
+ return evtx.getParent("phaseUse") == evt && evtx.skill == "qiaoli" && get.subtype(evtx.cards[0]) != "equip1";
}).length
)
event.set("qiaoli_noequip1", true);
@@ -13922,9 +11809,7 @@ game.import("character", function () {
ai: {
directHit_ai: true,
skillTagFilter: function (player, tag, arg) {
- return (
- arg && arg.card && arg.card.name == "juedou" && _status.event.skill == "qiaoli"
- );
+ return arg && arg.card && arg.card.name == "juedou" && _status.event.skill == "qiaoli";
},
},
subSkill: {
@@ -13946,12 +11831,7 @@ game.import("character", function () {
charlotte: true,
trigger: { source: "damageSource" },
filter: function (event, player) {
- return (
- event.card &&
- event.cards &&
- event.card.qiaoli &&
- get.subtype(event.cards[0]) == "equip1"
- );
+ return event.card && event.cards && event.card.qiaoli && get.subtype(event.cards[0]) == "equip1";
},
forced: true,
popup: false,
@@ -13960,8 +11840,7 @@ game.import("character", function () {
var card = trigger.cards[0];
var num = 1;
var info = get.info(card, false);
- if (info && info.distance && typeof info.distance.attackFrom == "number")
- num -= info.distance.attackFrom;
+ if (info && info.distance && typeof info.distance.attackFrom == "number") num -= info.distance.attackFrom;
player.draw(num);
"step 1";
var cards = result;
@@ -13986,9 +11865,7 @@ game.import("character", function () {
"step 2";
player.chooseCardTarget({
filterCard: function (card) {
- return (
- _status.event.cards.includes(card) && !card.hasGaintag("qiaoli_given")
- );
+ return _status.event.cards.includes(card) && !card.hasGaintag("qiaoli_given");
},
cards: cards,
filterTarget: lib.filter.notMe,
@@ -14055,8 +11932,7 @@ game.import("character", function () {
usable: 1,
logTarget: "player",
check: function (event, player) {
- if (get.attitude(player, event.player) > 0 || event.player.hasSkillTag("nogain"))
- return true;
+ if (get.attitude(player, event.player) > 0 || event.player.hasSkillTag("nogain")) return true;
var eff = get.effect(player, event.card, event.player, player);
if (eff >= 0) return false;
var suits = [],
@@ -14091,18 +11967,11 @@ game.import("character", function () {
if (suits.length > banned.length) {
player
.chooseControl()
- .set("choiceList", [
- "和" + get.translation(trigger.player) + "各摸一张牌",
- "弃置一种花色的所有手牌,令" + get.translation(trigger.card) + "对自己无效",
- ])
+ .set("choiceList", ["和" + get.translation(trigger.player) + "各摸一张牌", "弃置一种花色的所有手牌,令" + get.translation(trigger.card) + "对自己无效"])
.set("ai", function () {
var player = _status.event.player,
event = _status.event.getTrigger();
- if (
- get.attitude(player, event.player) > 0 ||
- event.player.hasSkillTag("nogain")
- )
- return 0;
+ if (get.attitude(player, event.player) > 0 || event.player.hasSkillTag("nogain")) return 0;
return 1;
});
event.suits = suits;
@@ -14153,22 +12022,12 @@ game.import("character", function () {
trigger: { global: "phaseZhunbeiBegin" },
logTarget: "player",
filter: function (event, player) {
- return (
- player != event.player &&
- event.player.isIn() &&
- player.countCards("h") > 0 &&
- !player.hasSkill("yuanzi_round", null, null, false)
- );
+ return player != event.player && event.player.isIn() && player.countCards("h") > 0 && !player.hasSkill("yuanzi_round", null, null, false);
},
check: function (event, player) {
if (event.player.hasJudge("lebu") || get.attitude(player, event.player) < 2) return false;
return game.hasPlayer(function (current) {
- return (
- current !== player &&
- current !== event.player &&
- event.player.inRange(current) &&
- get.attitude(event.player, current) < 0
- );
+ return current !== player && current !== event.player && event.player.inRange(current) && get.attitude(event.player, current) < 0;
});
},
content: function () {
@@ -14185,11 +12044,7 @@ game.import("character", function () {
forced: true,
filter: function (event, player) {
var source = event.source;
- return (
- source &&
- source == _status.currentPhase &&
- player.countCards("h") <= source.countCards("h")
- );
+ return source && source == _status.currentPhase && player.countCards("h") <= source.countCards("h");
},
content: function () {
player.draw(2);
@@ -14209,9 +12064,7 @@ game.import("character", function () {
"step 0";
var source = trigger.source;
var prompt2 = "弃置至多三张牌并摸等量的牌";
- if (source)
- prompt2 +=
- ",若弃置的牌中有红色牌,则弃置" + get.translation(source) + "至多等量的牌";
+ if (source) prompt2 += ",若弃置的牌中有红色牌,则弃置" + get.translation(source) + "至多等量的牌";
var next = player.chooseToDiscard("he", [1, 3], get.prompt("liejie"), prompt2);
next.set("ai", function (card) {
return 6 - get.value(card);
@@ -14226,10 +12079,7 @@ game.import("character", function () {
var num = cards.filter(function (i) {
return get.color(i, player) == "red";
}).length;
- if (num > 0)
- player
- .discardPlayerCard(trigger.source, "he", [1, num])
- .set("forceAuto", true);
+ if (num > 0) player.discardPlayerCard(trigger.source, "he", [1, num]).set("forceAuto", true);
}
}
},
@@ -14252,46 +12102,29 @@ game.import("character", function () {
!storage1[0].includes(i) &&
!storage2.includes(i) &&
game.hasPlayer(function (current) {
- return (
- !storage1[1].includes(current) && lib.skill.luochong.filterx[i](current)
- );
+ return !storage1[1].includes(current) && lib.skill.luochong.filterx[i](current);
})
)
return true;
}
return false;
},
- filterx: [
- (target) => target.isDamaged(),
- () => true,
- (target) => target.countCards("he") > 0,
- () => true,
- ],
+ filterx: [target => target.isDamaged(), () => true, target => target.countCards("he") > 0, () => true],
onremove: true,
content: function () {
"step 0";
var list = [];
- var choiceList = [
- "令一名角色回复1点体力。",
- "令一名角色失去1点体力。",
- "令一名角色弃置两张牌。",
- "令一名角色摸两张牌。",
- ];
+ var choiceList = ["令一名角色回复1点体力。", "令一名角色失去1点体力。", "令一名角色弃置两张牌。", "令一名角色摸两张牌。"];
var storage1 = player.storage.luochong_round,
storage2 = player.getStorage("luochong");
if (!storage1) storage1 = [[], []];
for (var i = 0; i < 4; i++) {
if (storage2.includes(i)) {
- choiceList[i] =
- '' +
- choiceList[i] +
- "";
+ choiceList[i] = '' + choiceList[i] + "";
} else if (
storage1[0].includes(i) ||
!game.hasPlayer(function (current) {
- return (
- !storage1[1].includes(current) && lib.skill.luochong.filterx[i](current)
- );
+ return !storage1[1].includes(current) && lib.skill.luochong.filterx[i](current);
})
) {
choiceList[i] = '' + choiceList[i] + "";
@@ -14311,37 +12144,17 @@ game.import("character", function () {
var max = 0,
func = {
选项一: function (current) {
- if (current.isDamaged())
- max = Math.max(
- max,
- get.recoverEffect(current, player, player)
- );
+ if (current.isDamaged()) max = Math.max(max, get.recoverEffect(current, player, player));
},
选项二: function (target) {
- max = Math.max(
- max,
- get.effect(target, { name: "losehp" }, player, player)
- );
+ max = Math.max(max, get.effect(target, { name: "losehp" }, player, player));
},
选项三: function (target) {
var num = target.countDiscardableCards(player, "he");
- if (num > 0)
- max = Math.max(
- max,
- Math.sqrt(Math.min(2, num)) *
- get.effect(
- target,
- { name: "guohe_copy2" },
- player,
- player
- )
- );
+ if (num > 0) max = Math.max(max, Math.sqrt(Math.min(2, num)) * get.effect(target, { name: "guohe_copy2" }, player, player));
},
选项四: function (target) {
- max = Math.max(
- max,
- 2 * get.effect(target, { name: "draw" }, player, player)
- );
+ max = Math.max(max, 2 * get.effect(target, { name: "draw" }, player, player));
},
}[choice];
game.countPlayer(function (current) {
@@ -14376,10 +12189,7 @@ game.import("character", function () {
"选择一名角色,令其弃置两张牌",
function (target) {
var player = _status.event.player;
- return (
- get.effect(target, { name: "guohe_copy2" }, player, player) *
- Math.sqrt(Math.min(2, target.countCards("he")))
- );
+ return get.effect(target, { name: "guohe_copy2" }, player, player) * Math.sqrt(Math.min(2, target.countCards("he")));
},
],
[
@@ -14391,9 +12201,7 @@ game.import("character", function () {
],
][index];
var targets = game.filterPlayer(function (current) {
- return (
- !listx.includes(current) && lib.skill.luochong.filterx[event.index](current)
- );
+ return !listx.includes(current) && lib.skill.luochong.filterx[event.index](current);
});
var next = player.chooseTarget(list[0], true, function (card, player, target) {
return _status.event.targets.includes(target);
@@ -14438,29 +12246,18 @@ game.import("character", function () {
trigger: { player: "dying" },
forced: true,
filter: function (event, player) {
- return (
- player.hasSkill("luochong", null, null, false) &&
- player.getStorage("luochong").length < 3
- );
+ return player.hasSkill("luochong", null, null, false) && player.getStorage("luochong").length < 3;
},
content: function () {
"step 0";
//var num=1-player.hp;
//if(num>0) player.recover(num);
var list = [];
- var choiceList = [
- "令一名角色回复1点体力。",
- "令一名角色失去1点体力。",
- "令一名角色弃置两张牌。",
- "令一名角色摸两张牌。",
- ];
+ var choiceList = ["令一名角色回复1点体力。", "令一名角色失去1点体力。", "令一名角色弃置两张牌。", "令一名角色摸两张牌。"];
var storage2 = player.getStorage("luochong");
for (var i = 0; i < 4; i++) {
if (storage2.includes(i)) {
- choiceList[i] =
- '' +
- choiceList[i] +
- "";
+ choiceList[i] = '' + choiceList[i] + "";
} else list.push("选项" + get.cnNumber(i + 1, true));
}
player
@@ -14478,24 +12275,11 @@ game.import("character", function () {
"step 1";
var index = ["选项一", "选项二", "选项三", "选项四"].indexOf(result.control);
player.markAuto("luochong", [index]);
- game.log(
- player,
- "移去了",
- "#g【落宠】",
- "的",
- "#y" +
- [
- "令一名角色回复1点体力",
- "令一名角色失去1点体力",
- "令一名角色弃置两张牌",
- "令一名角色摸两张牌",
- ][index],
- "的选项"
- );
+ game.log(player, "移去了", "#g【落宠】", "的", "#y" + ["令一名角色回复1点体力", "令一名角色失去1点体力", "令一名角色弃置两张牌", "令一名角色摸两张牌"][index], "的选项");
},
ai: {
combo: "luochong",
- neg: true
+ neg: true,
},
},
//SP孟获
@@ -14545,13 +12329,11 @@ game.import("character", function () {
var cards = [],
bool = true;
player.getHistory("lose", function (evt) {
- if (!bool || evt.type != "discard" || evt.getParent(event.name) != event)
- return false;
+ if (!bool || evt.type != "discard" || evt.getParent(event.name) != event) return false;
for (var i of evt.cards2) {
if (get.position(i, true) == "d") {
cards.add(i);
- if (!game.checkMod(i, player, "unchanged", "cardEnabled2", player))
- bool = false;
+ if (!game.checkMod(i, player, "unchanged", "cardEnabled2", player)) bool = false;
}
}
});
@@ -14568,25 +12350,17 @@ game.import("character", function () {
}
}
});
- return (
- "将" +
- get.translation(cards) +
- "(共计" +
- get.cnNumber(cards.length) +
- "张牌)当做【南蛮入侵】使用"
- );
+ return "将" + get.translation(cards) + "(共计" + get.cnNumber(cards.length) + "张牌)当做【南蛮入侵】使用";
},
check: function (event, player) {
var cards = [],
bool = true;
player.getHistory("lose", function (evt) {
- if (!bool || evt.type != "discard" || evt.getParent(event.name) != event)
- return false;
+ if (!bool || evt.type != "discard" || evt.getParent(event.name) != event) return false;
for (var i of evt.cards2) {
if (get.position(i, true) == "d") {
cards.add(i);
- if (!game.checkMod(i, player, "unchanged", "cardEnabled2", player))
- bool = false;
+ if (!game.checkMod(i, player, "unchanged", "cardEnabled2", player)) bool = false;
}
}
});
@@ -14614,13 +12388,7 @@ game.import("character", function () {
forced: true,
popup: false,
filter: function (event, player) {
- return (
- event.card.name == "nanman" &&
- event.getParent(2).name == "sppanqin" &&
- player.countMark("spmanwang") < 4 &&
- player.hasSkill("spmanwang", null, null, false) &&
- event.cards.length <= event.targets.length
- );
+ return event.card.name == "nanman" && event.getParent(2).name == "sppanqin" && player.countMark("spmanwang") < 4 && player.hasSkill("spmanwang", null, null, false) && event.cards.length <= event.targets.length;
},
content: function () {
player.addMark("spmanwang", 1, false);
@@ -14653,32 +12421,17 @@ game.import("character", function () {
player.inRange(event.player) &&
(player.hp > 0 ||
player.hasCard(function (card) {
- return (
- get.type(card) != "basic" &&
- lib.filter.cardDiscardable(card, player, "zengou")
- );
+ return get.type(card) != "basic" && lib.filter.cardDiscardable(card, player, "zengou");
}, "eh"))
);
},
logTarget: "player",
check: function (event, player) {
if (get.attitude(player, event.player) >= 0) return false;
- if (
- get.damageEffect(
- event.player,
- event.getParent(3).player,
- player,
- get.nature(event.card)
- ) <= 0
- )
- return false;
+ if (get.damageEffect(event.player, event.getParent(3).player, player, get.nature(event.card)) <= 0) return false;
if (
player.hasCard(function (card) {
- return (
- get.type(card) != "basic" &&
- get.value(card) < 7 &&
- lib.filter.cardDiscardable(card, player, "zengou")
- );
+ return get.type(card) != "basic" && get.value(card) < 7 && lib.filter.cardDiscardable(card, player, "zengou");
}, "eh")
)
return true;
@@ -14723,10 +12476,7 @@ game.import("character", function () {
event.target = trigger.player;
if (player.getHistory("sourceDamage").length)
player
- .chooseBool(
- get.prompt("qhzhangji", event.target),
- "令" + get.translation(event.target) + "摸两张牌"
- )
+ .chooseBool(get.prompt("qhzhangji", event.target), "令" + get.translation(event.target) + "摸两张牌")
.set("choice", get.attitude(player, event.target) > 0)
.set("ai", () => _status.event.choice);
else event.goto(2);
@@ -14737,16 +12487,9 @@ game.import("character", function () {
target.draw(2);
}
"step 2";
- if (
- target.isIn() &&
- target.countCards("he") > 0 &&
- player.getHistory("damage").length > 0
- )
+ if (target.isIn() && target.countCards("he") > 0 && player.getHistory("damage").length > 0)
player
- .chooseBool(
- get.prompt("qhzhangji", event.target),
- "令" + get.translation(event.target) + "弃置两张牌"
- )
+ .chooseBool(get.prompt("qhzhangji", event.target), "令" + get.translation(event.target) + "弃置两张牌")
.set("choice", get.attitude(player, event.target) < 0)
.set("ai", () => _status.event.choice);
else event.finish();
@@ -14817,14 +12560,7 @@ game.import("character", function () {
ai: {
unequip_ai: true,
skillTagFilter: function (player, tag, arg) {
- if (
- arg &&
- arg.name == "sha" &&
- get.color(arg.card) == "black" &&
- arg.target &&
- arg.target.hasSkill("yuanchou")
- )
- return true;
+ if (arg && arg.name == "sha" && get.color(arg.card) == "black" && arg.target && arg.target.hasSkill("yuanchou")) return true;
return false;
},
},
@@ -14846,13 +12582,10 @@ game.import("character", function () {
ai: {
result: {
player: function (player, target) {
- return (
- target.getAllHistory("useCard", (evt) => evt.card.name == "sha").length *
- lib.card.juedou.ai.result.player.apply(this, arguments)
- );
+ return target.getAllHistory("useCard", evt => evt.card.name == "sha").length * lib.card.juedou.ai.result.player.apply(this, arguments);
},
target: function (player, target) {
- var num = target.getAllHistory("useCard", (evt) => evt.card.name == "sha").length;
+ var num = target.getAllHistory("useCard", evt => evt.card.name == "sha").length;
if (num < target.hp) return 0;
return num * lib.card.juedou.ai.result.target;
},
@@ -14869,10 +12602,7 @@ game.import("character", function () {
},
content: function () {
var target = trigger.getParent().target;
- trigger.num = Math.max(
- 1,
- target.getAllHistory("useCard", (evt) => evt.card.name == "sha").length
- );
+ trigger.num = Math.max(1, target.getAllHistory("useCard", evt => evt.card.name == "sha").length);
target.addTempSkills("juesheng", { player: "phaseAfter" });
},
},
@@ -14886,8 +12616,7 @@ game.import("character", function () {
},
direct: true,
filter: function (event, player) {
- if (event.targets.length != 1 || event.target == player || event.target.hasSkill("nodis"))
- return false;
+ if (event.targets.length != 1 || event.target == player || event.target.hasSkill("nodis")) return false;
if (event.card.name != "sha" && get.type(event.card) != "trick") return false;
var target = event.target;
var left = [],
@@ -14990,14 +12719,7 @@ game.import("character", function () {
player
.chooseControl(choices)
.set("prompt", get.prompt("saodi"))
- .set(
- "prompt2",
- "令自己和" +
- get.translation(trigger.target) +
- "某个方向之间的所有角色均成为" +
- get.translation(trigger.card) +
- "的目标"
- )
+ .set("prompt2", "令自己和" + get.translation(trigger.target) + "某个方向之间的所有角色均成为" + get.translation(trigger.card) + "的目标")
.set("choices", choices)
.set("ai", function () {
var evt = _status.event.getTrigger();
@@ -15009,15 +12731,13 @@ game.import("character", function () {
if (result.control == "↖顺时针") {
var current = player.getPrevious();
while (current != trigger.target) {
- if (lib.filter.targetEnabled2(trigger.card, player, current))
- targets.push(current);
+ if (lib.filter.targetEnabled2(trigger.card, player, current)) targets.push(current);
current = current.getPrevious();
}
} else {
var current = player.getNext();
while (current != trigger.target) {
- if (lib.filter.targetEnabled2(trigger.card, player, current))
- targets.push(current);
+ if (lib.filter.targetEnabled2(trigger.card, player, current)) targets.push(current);
current = current.getNext();
}
}
@@ -15031,16 +12751,8 @@ game.import("character", function () {
ai: {
effect: {
player_use: function (card, player, target) {
- if (
- !target ||
- player._saodi_judging ||
- ui.selected.targets.length ||
- player == target ||
- target.hasSkill("nodis")
- )
- return;
- if (typeof card != "object" || (card.name != "sha" && get.type(card) != "trick"))
- return false;
+ if (!target || player._saodi_judging || ui.selected.targets.length || player == target || target.hasSkill("nodis")) return;
+ if (typeof card != "object" || (card.name != "sha" && get.type(card) != "trick")) return false;
player._saodi_judging = true;
var effect = lib.skill.saodi.aiJudge(card, player, target);
delete player._saodi_judging;
@@ -15063,13 +12775,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("zhuitao"),
- "令自己至一名其他角色的距离-1",
- function (card, player, target) {
- return target != player && !player.getStorage("zhuitao").includes(target);
- }
- )
+ .chooseTarget(get.prompt("zhuitao"), "令自己至一名其他角色的距离-1", function (card, player, target) {
+ return target != player && !player.getStorage("zhuitao").includes(target);
+ })
.set("ai", function (target) {
var player = _status.event.player;
var att = get.attitude(player, target);
@@ -15123,11 +12831,7 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- "丰积:请选择增加摸牌的目标",
- "令自己本回合的额定摸牌数-1,且目标下回合的额定摸牌数+2。或者点击「取消」,令自己的额定摸牌数+1",
- lib.filter.notMe
- )
+ .chooseTarget("丰积:请选择增加摸牌的目标", "令自己本回合的额定摸牌数-1,且目标下回合的额定摸牌数+2。或者点击「取消」,令自己的额定摸牌数+1", lib.filter.notMe)
.set("ai", function (target) {
var player = _status.event.player;
if (target.hasJudge("lebu") || target.hasJudge("bingliang")) return 0;
@@ -15138,12 +12842,7 @@ game.import("character", function () {
}
if (
game.countPlayer(function (current) {
- return (
- current != player &&
- current != target &&
- get.attitude(player, current) < 0 &&
- get.distance(player, current, "absolute") < dist
- );
+ return current != player && current != target && get.attitude(player, current) < 0 && get.distance(player, current, "absolute") < dist;
}) >= target.hp
)
return 0;
@@ -15166,18 +12865,11 @@ game.import("character", function () {
player.addTempSkill("olfengji_draw");
player.markSkill("olfengji_draw");
"step 2";
- player
- .chooseTarget(
- "丰积:请选择增加使用杀次数的目标",
- "令自己本回合使用杀的次数上限-1,且目标下回合使用杀的次数上限+2。或者点击「取消」,令自己使用杀的次数上限+1",
- lib.filter.notMe
- )
- .set("ai", function (target) {
- var player = _status.event.player;
- if (target.countMark("olfengji_draw") > 0 && target.getCardUsable("sha") < 2)
- return get.attitude(player, target);
- return 0;
- });
+ player.chooseTarget("丰积:请选择增加使用杀次数的目标", "令自己本回合使用杀的次数上限-1,且目标下回合使用杀的次数上限+2。或者点击「取消」,令自己使用杀的次数上限+1", lib.filter.notMe).set("ai", function (target) {
+ var player = _status.event.player;
+ if (target.countMark("olfengji_draw") > 0 && target.getCardUsable("sha") < 2) return get.attitude(player, target);
+ return 0;
+ });
"step 3";
if (!player.storage.olfengji_sha) player.storage.olfengji_sha = 0;
if (result.bool) {
@@ -15235,33 +12927,18 @@ game.import("character", function () {
direct: true,
filter: function (event, player) {
return game.hasPlayer(function (current) {
- return (
- current != player &&
- lib.skill.jixian.getNum(player, current) > 0 &&
- player.canUse("sha", current, false)
- );
+ return current != player && lib.skill.jixian.getNum(player, current) > 0 && player.canUse("sha", current, false);
});
},
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("jixian"),
- "视为对一名满足条件的角色使用一张【杀】",
- function (card, player, target) {
- return (
- target != player &&
- lib.skill.jixian.getNum(player, target) > 0 &&
- player.canUse("sha", target, false)
- );
- }
- )
+ .chooseTarget(get.prompt("jixian"), "视为对一名满足条件的角色使用一张【杀】", function (card, player, target) {
+ return target != player && lib.skill.jixian.getNum(player, target) > 0 && player.canUse("sha", target, false);
+ })
.set("ai", function (target) {
var player = _status.event.player;
- return (
- get.effect(target, { name: "sha" }, player, player) *
- Math.sqrt(lib.skill.jixian.getNum(player, target))
- );
+ return get.effect(target, { name: "sha" }, player, player) * Math.sqrt(lib.skill.jixian.getNum(player, target));
});
"step 1";
if (result.bool) {
@@ -15306,9 +12983,7 @@ game.import("character", function () {
content: function () {
"step 0";
var ph = player.countCards("h");
- var targets = game
- .filterPlayer((current) => current == player || current.countCards("h") >= ph)
- .sortBySeat();
+ var targets = game.filterPlayer(current => current == player || current.countCards("h") >= ph).sortBySeat();
player.line(targets, "green");
event.targets = targets;
event.num = 0;
@@ -15317,38 +12992,22 @@ game.import("character", function () {
event.num++;
if (target.isIn()) {
event.target = target;
- target
- .chooseBool(
- "是否令" +
- (player == target ? "自己" : get.translation(player)) +
- "摸一张牌?"
- )
- .set(
- "ai",
- () => get.attitude(_status.event.player, _status.event.getParent().player) > 0
- );
+ target.chooseBool("是否令" + (player == target ? "自己" : get.translation(player)) + "摸一张牌?").set("ai", () => get.attitude(_status.event.player, _status.event.getParent().player) > 0);
} else {
event.goto(event.num < targets.length ? 1 : 3);
}
"step 2";
if (result.bool) {
target.line(player);
- if (player !== target && (get.mode() !== "identity" || target.identity !== "nei"))
- target.addExpose(0.15);
+ if (player !== target && (get.mode() !== "identity" || target.identity !== "nei")) target.addExpose(0.15);
player.draw();
}
if (num < targets.length) event.goto(1);
"step 3";
player
- .chooseTarget(
- "是否对一名手牌数等于自己的目标角色造成1点伤害?",
- function (card, player, target) {
- return (
- _status.event.getParent().targets.includes(target) &&
- target.countCards("h") == player.countCards("h")
- );
- }
- )
+ .chooseTarget("是否对一名手牌数等于自己的目标角色造成1点伤害?", function (card, player, target) {
+ return _status.event.getParent().targets.includes(target) && target.countCards("h") == player.countCards("h");
+ })
.set("ai", function (target) {
var player = _status.event.player;
return get.damageEffect(target, player, player);
@@ -15362,17 +13021,11 @@ game.import("character", function () {
} else event.finish();
"step 5";
var ph = player.countCards("h");
- if (ph > 0 && targets.some((target) => target.isIn() && target.countCards("h") < ph)) {
+ if (ph > 0 && targets.some(target => target.isIn() && target.countCards("h") < ph)) {
player
- .chooseTarget(
- "请选择一名手牌数小于自己的目标角色,令其摸一张牌",
- function (card, player, target) {
- return (
- _status.event.getParent().targets.includes(target) &&
- target.countCards("h") < player.countCards("h")
- );
- }
- )
+ .chooseTarget("请选择一名手牌数小于自己的目标角色,令其摸一张牌", function (card, player, target) {
+ return _status.event.getParent().targets.includes(target) && target.countCards("h") < player.countCards("h");
+ })
.set("ai", function (target) {
var player = _status.event.player;
return get.attitude(player, target);
@@ -15382,8 +13035,7 @@ game.import("character", function () {
if (result.bool) {
var target = result.targets[0];
player.line(target);
- if (player !== target && (get.mode() !== "identity" || player.identity !== "nei"))
- player.addExpose(0.1);
+ if (player !== target && (get.mode() !== "identity" || player.identity !== "nei")) player.addExpose(0.1);
target.draw();
}
},
@@ -15398,20 +13050,10 @@ game.import("character", function () {
direct: true,
content: function () {
"step 0";
- player
- .chooseCard(
- "h",
- get.prompt("spolzhouxuan"),
- [1, 5 - player.getExpansions("spolzhouxuan").length],
- "将至多" +
- get.cnNumber(5 - player.getExpansions("spolzhouxuan").length) +
- "张手牌置于武将牌上"
- )
- .set("ai", function (card) {
- if (ui.selected.cards.length >= player.needsToDiscard())
- return 6 - get.value(card);
- return 100 - get.useful(card);
- });
+ player.chooseCard("h", get.prompt("spolzhouxuan"), [1, 5 - player.getExpansions("spolzhouxuan").length], "将至多" + get.cnNumber(5 - player.getExpansions("spolzhouxuan").length) + "张手牌置于武将牌上").set("ai", function (card) {
+ if (ui.selected.cards.length >= player.needsToDiscard()) return 6 - get.value(card);
+ return 100 - get.useful(card);
+ });
"step 1";
if (result.bool) {
var cards = result.cards;
@@ -15443,8 +13085,7 @@ game.import("character", function () {
player.loseToDiscardpile(player.getExpansions("spolzhouxuan").randomGet());
"step 1";
var num = 1;
- if (!player.isMaxHandcard(true))
- num += player.getExpansions("spolzhouxuan").length;
+ if (!player.isMaxHandcard(true)) num += player.getExpansions("spolzhouxuan").length;
player.draw(num);
},
},
@@ -15484,22 +13125,20 @@ game.import("character", function () {
});
if (!list.length) event.finish();
else
- player
- .chooseButton([get.prompt("olxianlve"), [list, "vcard"]])
- .set("ai", function (button) {
- switch (button.link[2]) {
- case "wuxie":
- return 0.6 + Math.random();
- case "wuzhong":
- case "dongzhuxianji":
- return 0.5 + Math.random();
- case "guohe":
- case "zhujinqiyuan":
- return 0.4 + Math.random();
- default:
- return Math.random();
- }
- });
+ player.chooseButton([get.prompt("olxianlve"), [list, "vcard"]]).set("ai", function (button) {
+ switch (button.link[2]) {
+ case "wuxie":
+ return 0.6 + Math.random();
+ case "wuzhong":
+ case "dongzhuxianji":
+ return 0.5 + Math.random();
+ case "guohe":
+ case "zhujinqiyuan":
+ return 0.4 + Math.random();
+ default:
+ return Math.random();
+ }
+ });
"step 1";
if (result.bool) {
var name = result.links[0][2];
@@ -15510,10 +13149,7 @@ game.import("character", function () {
},
intro: {
content: function (name, player) {
- return (
- "已声明" +
- (player.isUnderControl(true) ? "【" + get.translation(name) + "】" : "一个牌名")
- );
+ return "已声明" + (player.isUnderControl(true) ? "【" + get.translation(name) + "】" : "一个牌名");
},
},
group: ["olxianlve_use", "olxianlve_count"],
@@ -15539,12 +13175,7 @@ game.import("character", function () {
locked: false,
usable: 1,
filter: function (event, player) {
- return (
- event.player != player &&
- event.olxianlve_map &&
- event.olxianlve_map[player.playerid] &&
- event.card.name == player.storage.olxianlve
- );
+ return event.player != player && event.olxianlve_map && event.olxianlve_map[player.playerid] && event.card.name == player.storage.olxianlve;
},
content: function () {
"step 0";
@@ -15573,9 +13204,7 @@ game.import("character", function () {
"step 2";
player.chooseCardTarget({
filterCard: function (card) {
- return (
- _status.event.cards.includes(card) && !card.hasGaintag("olxianlve")
- );
+ return _status.event.cards.includes(card) && !card.hasGaintag("olxianlve");
},
cards: cards,
filterTarget: lib.filter.notMe,
@@ -15602,8 +13231,7 @@ game.import("character", function () {
cards.removeArray(res);
if (!event.given_map[target]) event.given_map[target] = [];
event.given_map[target].addArray(res);
- if (result.targets[0].isPhaseUsing() && get.type2(res[0]) == "trick")
- event.ai_list.push(res[0].name);
+ if (result.targets[0].isPhaseUsing() && get.type2(res[0]) == "trick") event.ai_list.push(res[0].name);
if (cards.length) event.goto(2);
}
"step 4";
@@ -15643,8 +13271,7 @@ game.import("character", function () {
.chooseButton([get.prompt("olxianlve"), [list, "vcard"]])
.set("list", event.ai_list)
.set("ai", function (button) {
- if (_status.event.list.includes(button.link[2]))
- return 2 + Math.random();
+ if (_status.event.list.includes(button.link[2])) return 2 + Math.random();
switch (button.link[2]) {
case "wuxie":
return 0.6 + Math.random();
@@ -15705,10 +13332,7 @@ game.import("character", function () {
trigger: { global: "dieBegin" },
forced: true,
filter: function (event, player) {
- return (
- event.player.identity == "zhu" &&
- (player.identity == "zhong" || player.identity == "mingzhong")
- );
+ return event.player.identity == "zhu" && (player.identity == "zhong" || player.identity == "mingzhong");
},
logTarget: "player",
skillAnimation: true,
@@ -15741,20 +13365,10 @@ game.import("character", function () {
skillAnimation: true,
animationColor: "wood",
filter: function (event, player) {
- return (
- player.identity == "fan" &&
- event.source &&
- (event.source.identity == "zhu" ||
- event.source.identity == "zhong" ||
- event.source.identity == "mingzhong")
- );
+ return player.identity == "fan" && event.source && (event.source.identity == "zhu" || event.source.identity == "zhong" || event.source.identity == "mingzhong");
},
content: function () {
- game.over(
- game.me.identity == "zhu" ||
- game.me.identity == "zhong" ||
- game.me.identity == "mingzhong"
- );
+ game.over(game.me.identity == "zhu" || game.me.identity == "zhong" || game.me.identity == "mingzhong");
},
},
},
@@ -15765,11 +13379,7 @@ game.import("character", function () {
trigger: { global: "phaseBegin" },
direct: true,
filter: function (event, player) {
- return (
- event.player.isIn() &&
- event.player.hasEmptySlot(5) &&
- player.hasCard(lib.skill.zhuangshu.filterCard, "he")
- );
+ return event.player.isIn() && event.player.hasEmptySlot(5) && player.hasCard(lib.skill.zhuangshu.filterCard, "he");
},
filterCard: function (card) {
if (_status.connectMode) return true;
@@ -15779,15 +13389,10 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseToDiscard(
- "he",
- get.prompt("zhuangshu", trigger.player),
- "弃置一张牌,并根据此牌的类型,按如下关系将一张宝物牌置入该角色的装备区:{<基本牌,【琼梳】>,<锦囊牌,【犀梳】>,<装备牌,【金梳】>}。",
- function (card) {
- var type = get.type2(card);
- return type == "basic" || type == "trick" || type == "equip";
- }
- )
+ .chooseToDiscard("he", get.prompt("zhuangshu", trigger.player), "弃置一张牌,并根据此牌的类型,按如下关系将一张宝物牌置入该角色的装备区:{<基本牌,【琼梳】>,<锦囊牌,【犀梳】>,<装备牌,【金梳】>}。", function (card) {
+ var type = get.type2(card);
+ return type == "basic" || type == "trick" || type == "equip";
+ })
.set("ai", function (card) {
var player = _status.event.player;
if (get.attitude(player, _status.event.getTrigger().player) < 4) return 0;
@@ -15802,9 +13407,7 @@ game.import("character", function () {
}).logSkill = ["zhuangshu", trigger.player];
"step 1";
if (result.bool) {
- var name =
- "zhuangshu_" +
- get.type2(result.cards[0], result.cards[0].original == "h" ? player : false);
+ var name = "zhuangshu_" + get.type2(result.cards[0], result.cards[0].original == "h" ? player : false);
if (lib.card[name] && trigger.player.isIn && trigger.player.hasEmptySlot(5)) {
var target = game.findPlayer(function (current) {
var equip = current.getEquip(name);
@@ -15832,16 +13435,11 @@ game.import("character", function () {
},
content: function () {
"step 0";
- player
- .chooseButton([
- get.prompt("zhuangshu"),
- [["zhuangshu_basic", "zhuangshu_trick", "zhuangshu_equip"], "vcard"],
- ])
- .set("filterButton", function (button) {
- return !game.hasPlayer(function (current) {
- return current.getEquip(button.link[2]);
- });
+ player.chooseButton([get.prompt("zhuangshu"), [["zhuangshu_basic", "zhuangshu_trick", "zhuangshu_equip"], "vcard"]]).set("filterButton", function (button) {
+ return !game.hasPlayer(function (current) {
+ return current.getEquip(button.link[2]);
});
+ });
"step 1";
if (result.bool) {
player.logSkill("zhuangshu");
@@ -15867,7 +13465,7 @@ game.import("character", function () {
return game.hasPlayer(function (current) {
if (player != current) {
var cards = current.getEquips(5);
- if (!cards.some((card) => card.name.indexOf("zhuangshu_") == 0)) return false;
+ if (!cards.some(card => card.name.indexOf("zhuangshu_") == 0)) return false;
}
var evt = event.getl(current);
if (!evt || !evt.cards2) return false;
@@ -15883,7 +13481,7 @@ game.import("character", function () {
game.countPlayer(function (current) {
if (player != current) {
var cards2 = current.getEquips(5);
- if (!cards2.some((card) => card.name.indexOf("zhuangshu_") == 0)) return false;
+ if (!cards2.some(card => card.name.indexOf("zhuangshu_") == 0)) return false;
}
var evt = trigger.getl(current);
for (var i of evt.cards2) {
@@ -15918,15 +13516,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseToDiscard(
- "he",
- trigger.num,
- get.prompt("zhuangshu_basic"),
- "弃置" + get.cnNumber(trigger.num) + "张牌并防止伤害",
- function (card, player) {
- return card != player.getEquip("zhuangshu_basic");
- }
- )
+ .chooseToDiscard("he", trigger.num, get.prompt("zhuangshu_basic"), "弃置" + get.cnNumber(trigger.num) + "张牌并防止伤害", function (card, player) {
+ return card != player.getEquip("zhuangshu_basic");
+ })
.set("ai", function (card) {
var player = _status.event.player;
return 4 + player.getUseValue(card) - get.value(card, player);
@@ -16034,28 +13626,20 @@ game.import("character", function () {
direct: true,
content: function () {
"step 0";
- player
- .chooseTarget(get.prompt2("oljuanxia"), lib.filter.notMe)
- .set("ai", function (target) {
- var player = _status.event.player,
- list = [];
- for (var name of lib.inpile) {
- var info = lib.card[name];
- if (
- !info ||
- info.type != "trick" ||
- info.notarget ||
- (info.selectTarget && info.selectTarget != 1)
- )
- continue;
- if (!player.canUse(name, target, false)) continue;
- var eff = get.effect(target, { name: name }, player, player);
- if (eff > 0) list.push(eff);
- }
- list.sort().reverse();
- if (!list.length) return 0;
- return list[0] + (list[1] || 0) + (list[2] || 0);
- });
+ player.chooseTarget(get.prompt2("oljuanxia"), lib.filter.notMe).set("ai", function (target) {
+ var player = _status.event.player,
+ list = [];
+ for (var name of lib.inpile) {
+ var info = lib.card[name];
+ if (!info || info.type != "trick" || info.notarget || (info.selectTarget && info.selectTarget != 1)) continue;
+ if (!player.canUse(name, target, false)) continue;
+ var eff = get.effect(target, { name: name }, player, player);
+ if (eff > 0) list.push(eff);
+ }
+ list.sort().reverse();
+ if (!list.length) return 0;
+ return list[0] + (list[1] || 0) + (list[2] || 0);
+ });
"step 1";
if (result.bool) {
var target = result.targets[0];
@@ -16066,13 +13650,7 @@ game.import("character", function () {
var list = [];
for (var name of lib.inpile) {
var info = lib.card[name];
- if (
- !info ||
- info.type != "trick" ||
- info.notarget ||
- (info.selectTarget && info.selectTarget != 1)
- )
- continue;
+ if (!info || info.type != "trick" || info.notarget || (info.selectTarget && info.selectTarget != 1)) continue;
list.push(name);
}
if (!list.length) event.finish();
@@ -16085,20 +13663,10 @@ game.import("character", function () {
return player.canUse(name, target, false);
});
if (list.length) {
- var next = player
- .chooseButton([
- "视为对" + get.translation(target) + "使用一张牌",
- [list, "vcard"],
- ])
- .set("ai", function (button) {
- var evt = _status.event.getParent();
- return get.effect(
- evt.target,
- { name: button.link[2] },
- evt.player,
- evt.player
- );
- });
+ var next = player.chooseButton(["视为对" + get.translation(target) + "使用一张牌", [list, "vcard"]]).set("ai", function (button) {
+ var evt = _status.event.getParent();
+ return get.effect(evt.target, { name: button.link[2] }, evt.player, evt.player);
+ });
if (event.count == 0) next.set("forced", true);
} else {
event.stopped = true;
@@ -16117,8 +13685,7 @@ game.import("character", function () {
else {
target.addTempSkill("oljuanxia_counter", { player: "phaseAfter" });
if (!target.storage.oljuanxia_counter) target.storage.oljuanxia_counter = {};
- if (!target.storage.oljuanxia_counter[player.playerid])
- target.storage.oljuanxia_counter[player.playerid] = 0;
+ if (!target.storage.oljuanxia_counter[player.playerid]) target.storage.oljuanxia_counter[player.playerid] = 0;
target.storage.oljuanxia_counter[player.playerid] += event.count;
}
}
@@ -16134,8 +13701,7 @@ game.import("character", function () {
map2 = player.storage.oljuanxia_counter;
if (!map2) return false;
for (var i in map2) {
- if (map1[i] && map1[i].isIn() && player.canUse("sha", map1[i], false))
- return true;
+ if (map1[i] && map1[i].isIn() && player.canUse("sha", map1[i], false)) return true;
}
return false;
},
@@ -16166,13 +13732,7 @@ game.import("character", function () {
event.target = target;
if (target.isIn() && player.canUse("sha", target, false))
player
- .chooseBool(
- "狷狭:是否视为对" +
- get.translation(target) +
- "依次使用" +
- get.cnNumber(player.storage.oljuanxia_counter[target.playerid]) +
- "张【杀】?"
- )
+ .chooseBool("狷狭:是否视为对" + get.translation(target) + "依次使用" + get.cnNumber(player.storage.oljuanxia_counter[target.playerid]) + "张【杀】?")
.set("goon", get.effect(target, { name: "sha" }, player, player) > 0)
.set("ai", () => _status.event.goon);
"step 2";
@@ -16182,8 +13742,7 @@ game.import("character", function () {
else event.finish();
"step 3";
event.count--;
- if (target.isIn() && player.canUse("sha", target, false))
- player.useCard({ name: "sha", isCard: true }, target, false);
+ if (target.isIn() && player.canUse("sha", target, false)) player.useCard({ name: "sha", isCard: true }, target, false);
if (event.count > 0) event.redo();
else if (event.num < targets.length) event.goto(1);
},
@@ -16230,11 +13789,7 @@ game.import("character", function () {
content: function () {
"step 0";
event.target = trigger.player;
- event.target.chooseCard(
- "h",
- true,
- get.translation(player) + "发动了【诏颂】;请交给其一张手牌"
- );
+ event.target.chooseCard("h", true, get.translation(player) + "发动了【诏颂】;请交给其一张手牌");
"step 1";
if (result.bool) {
var card = result.cards[0];
@@ -16252,8 +13807,7 @@ game.import("character", function () {
intro: {
name: "诏颂(颂)",
name2: "颂",
- content:
- "当你使用【杀】选择唯一目标时,你可移去“颂”,并为此【杀】增加至多两个目标。",
+ content: "当你使用【杀】选择唯一目标时,你可移去“颂”,并为此【杀】增加至多两个目标。",
},
trigger: { player: "useCard2" },
direct: true,
@@ -16265,30 +13819,17 @@ game.import("character", function () {
event.card.name == "sha" &&
event.targets.length == 1 &&
game.hasPlayer(function (current) {
- return (
- current != player &&
- current != event.targets[0] &&
- lib.filter.targetEnabled2(event.card, player, current)
- );
+ return current != player && current != event.targets[0] && lib.filter.targetEnabled2(event.card, player, current);
})
);
},
content: function () {
"step 0";
player
- .chooseTarget(
- [1, 2],
- "是否弃置“颂”标记?",
- "为" + get.translation(trigger.card) + "增加至多两个目标",
- function (card, player, target) {
- var evt = _status.event.getTrigger();
- return (
- target != player &&
- target != evt.targets[0] &&
- lib.filter.targetEnabled2(evt.card, player, target)
- );
- }
- )
+ .chooseTarget([1, 2], "是否弃置“颂”标记?", "为" + get.translation(trigger.card) + "增加至多两个目标", function (card, player, target) {
+ var evt = _status.event.getTrigger();
+ return target != player && target != evt.targets[0] && lib.filter.targetEnabled2(evt.card, player, target);
+ })
.set("ai", function (target) {
var evt = _status.event.getTrigger();
return get.effect(target, evt.card, evt.player, evt.player);
@@ -16342,26 +13883,12 @@ game.import("character", function () {
if (
player.maxHp < 2 ||
player.countCards("h", function (card) {
- var mod2 = game.checkMod(
- card,
- player,
- "unchanged",
- "cardEnabled2",
- player
- );
+ var mod2 = game.checkMod(card, player, "unchanged", "cardEnabled2", player);
if (mod2 != "unchanged") return mod2;
- var mod = game.checkMod(
- card,
- player,
- event.player,
- "unchanged",
- "cardSavable",
- player
- );
+ var mod = game.checkMod(card, player, event.player, "unchanged", "cardSavable", player);
if (mod != "unchanged") return mod;
var savable = get.info(card).savable;
- if (typeof savable == "function")
- savable = savable(card, player, event.player);
+ if (typeof savable == "function") savable = savable(card, player, event.player);
return savable;
}) >=
1 + event.num - event.player.hp
@@ -16401,15 +13928,11 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- "是否弃置“赋”标记?",
- "弃置一名角色区域内的至多两张牌",
- function (card, player, current) {
- return current.hasCard(function (card) {
- return lib.filter.canBeDiscarded(card, player, current);
- }, "hej");
- }
- )
+ .chooseTarget("是否弃置“赋”标记?", "弃置一名角色区域内的至多两张牌", function (card, player, current) {
+ return current.hasCard(function (card) {
+ return lib.filter.canBeDiscarded(card, player, current);
+ }, "hej");
+ })
.set("ai", function (target) {
var player = _status.event.player,
att = get.attitude(player, target) > 0 ? 2 : 1;
@@ -16441,15 +13964,9 @@ game.import("character", function () {
},
content: function () {
"step 0";
- player.chooseTarget(
- get.prompt("lisi"),
- "将" +
- get.translation(trigger.cards.filterInD()) +
- "交给一名手牌数不大于你的其他角色",
- function (card, player, target) {
- return target != player && target.countCards("h") <= player.countCards("h");
- }
- );
+ player.chooseTarget(get.prompt("lisi"), "将" + get.translation(trigger.cards.filterInD()) + "交给一名手牌数不大于你的其他角色", function (card, player, target) {
+ return target != player && target.countCards("h") <= player.countCards("h");
+ });
"step 1";
if (result.bool) {
var target = result.targets[0];
@@ -16465,13 +13982,7 @@ game.import("character", function () {
direct: true,
usable: 1,
filter: function (event, player) {
- if (
- event.olfengzi_buff ||
- !event.targets.length ||
- !player.isPhaseUsing() ||
- player.hasSkill("olfengzi_buff")
- )
- return false;
+ if (event.olfengzi_buff || !event.targets.length || !player.isPhaseUsing() || player.hasSkill("olfengzi_buff")) return false;
var type = get.type(event.card, false);
if (type != "basic" && type != "trick") return false;
return player.hasCard(function (i) {
@@ -16484,18 +13995,9 @@ game.import("character", function () {
if (player != game.me && !player.isUnderControl() && !player.isOnline()) game.delayx();
var type = get.type(trigger.card, false);
player
- .chooseToDiscard(
- "h",
- get.prompt("olfengzi"),
- "弃置一张" +
- get.translation(type) +
- "牌,令" +
- get.translation(trigger.card) +
- "结算两次",
- function (card, player) {
- return get.type2(card, player) == _status.event.type;
- }
- )
+ .chooseToDiscard("h", get.prompt("olfengzi"), "弃置一张" + get.translation(type) + "牌,令" + get.translation(trigger.card) + "结算两次", function (card, player) {
+ return get.type2(card, player) == _status.event.type;
+ })
.set("type", type)
.set("ai", function (card) {
var player = _status.event.player;
@@ -16581,15 +14083,11 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("olfusong"),
- "令一名体力上限大于你的其他角色获得〖丰姿〗或〖吉占〗",
- function (card, player, target) {
- return target.maxHp > player.maxHp;
- }
- )
+ .chooseTarget(get.prompt("olfusong"), "令一名体力上限大于你的其他角色获得〖丰姿〗或〖吉占〗", function (card, player, target) {
+ return target.maxHp > player.maxHp;
+ })
.set("forceDie", true)
- .set("ai", (target) => get.attitude(_status.event.player, target));
+ .set("ai", target => get.attitude(_status.event.player, target));
"step 1";
if (result.bool) {
var target = result.targets[0];
@@ -16610,12 +14108,7 @@ game.import("character", function () {
trigger: { global: "damageBegin4" },
usable: 1,
filter: function (event, player) {
- return (
- event.source &&
- event.source.isIn() &&
- [event.source, event.player].includes(player) &&
- event.source != event.player
- );
+ return event.source && event.source.isIn() && [event.source, event.player].includes(player) && event.source != event.player;
},
logTarget: function (event, player) {
return player == event.player ? event.source : event.player;
@@ -16624,13 +14117,7 @@ game.import("character", function () {
_status.olxiuhao_judging = true;
var bool = false;
if (get.attitude(player, event.player) > 0) bool = true;
- else if (
- 2 * get.effect(event.source, { name: "draw" }, player, _status.event.player) +
- event.num *
- get.damageEffect(player, event.source, _status.event.player, event.nature) >
- 0
- )
- bool = true;
+ else if (2 * get.effect(event.source, { name: "draw" }, player, _status.event.player) + event.num * get.damageEffect(player, event.source, _status.event.player, event.nature) > 0) bool = true;
else if (event.source.hasSkillTag("nogain")) bool = true;
delete _status.olxiuhao_judging;
return bool;
@@ -16642,24 +14129,10 @@ game.import("character", function () {
ai: {
effect: {
target: function (card, player, target) {
- if (
- !_status.olxiuhao_judging &&
- get.tag(card, "damage") &&
- get.attitude(target, player) > 0 &&
- player != target &&
- (!target.storage.counttrigger || !target.storage.counttrigger.olxiuhao)
- )
- return [0, 0.5, 0, 0.5];
+ if (!_status.olxiuhao_judging && get.tag(card, "damage") && get.attitude(target, player) > 0 && player != target && (!target.storage.counttrigger || !target.storage.counttrigger.olxiuhao)) return [0, 0.5, 0, 0.5];
},
player: function (card, player, target) {
- if (
- !_status.olxiuhao_judging &&
- get.tag(card, "damage") &&
- get.attitude(player, target) > 0 &&
- player != target &&
- (!player.storage.counttrigger || !player.storage.counttrigger.olxiuhao)
- )
- return [0, 0.5, 0, 0.5];
+ if (!_status.olxiuhao_judging && get.tag(card, "damage") && get.attitude(player, target) > 0 && player != target && (!player.storage.counttrigger || !player.storage.counttrigger.olxiuhao)) return [0, 0.5, 0, 0.5];
},
},
},
@@ -16687,10 +14160,7 @@ game.import("character", function () {
var str = get.translation(cards);
player
.chooseControl()
- .set("choiceList", [
- "将" + str + "分配给任意名其他角色",
- "弃置" + str + "并弃置一名其他角色至多等量的牌",
- ])
+ .set("choiceList", ["将" + str + "分配给任意名其他角色", "弃置" + str + "并弃置一名其他角色至多等量的牌"])
.set("ai", function () {
var cards = _status.event.getParent().cards,
player = _status.event.player;
@@ -16735,15 +14205,9 @@ game.import("character", function () {
})
) {
player
- .chooseTarget(
- true,
- "弃置一名其他角色的至多" + get.cnNumber(num) + "张牌",
- function (card, player, current) {
- return (
- current != player && current.countDiscardableCards(player, "he") > 0
- );
- }
- )
+ .chooseTarget(true, "弃置一名其他角色的至多" + get.cnNumber(num) + "张牌", function (card, player, current) {
+ return current != player && current.countDiscardableCards(player, "he") > 0;
+ })
.set("ai", function (current) {
var att = get.attitude(player, current);
if (
@@ -16844,11 +14308,7 @@ game.import("character", function () {
popup: false,
firstDo: true,
filter: function (event, player) {
- if (event.name == "gain")
- return (
- player == _status.currentPhase &&
- event.getParent("olsujian").player != player
- );
+ if (event.name == "gain") return player == _status.currentPhase && event.getParent("olsujian").player != player;
return true;
},
content: function () {
@@ -16905,12 +14365,7 @@ game.import("character", function () {
usable: 2,
trigger: { global: "useCardAfter" },
filter: function (event, player) {
- return (
- player != event.player &&
- event.targets &&
- event.targets.includes(player) &&
- player.countCards("h") > 0
- );
+ return player != event.player && event.targets && event.targets.includes(player) && player.countCards("h") > 0;
},
prompt2: function (event, player) {
var suit = get.suit(event.card),
@@ -16924,9 +14379,7 @@ game.import("character", function () {
return "展示所有手牌,然后无事发生";
}
}
- return (
- '展示所有手牌,然后获得' + get.translation(cards) + ""
- );
+ return '展示所有手牌,然后获得' + get.translation(cards) + "";
},
check: function (event, player) {
var suit = get.suit(event.card),
@@ -16972,10 +14425,7 @@ game.import("character", function () {
animationColor: "water",
filter: function (event, player) {
if (player.isTurnedOver()) return false;
- var list = game.filterPlayer(
- (target) =>
- target != player && !target.hasMark("quxi_gain") && !target.hasMark("quxi_lose")
- );
+ var list = game.filterPlayer(target => target != player && !target.hasMark("quxi_gain") && !target.hasMark("quxi_lose"));
if (list.length < 2) return false;
var nf = list[0].countCards("h");
for (var i = 1; i < list.length; i++) {
@@ -16986,21 +14436,11 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- 2,
- get.prompt("quxi"),
- "选择两名手牌数不同的其他角色。你将翻至背面,令这两名角色中手牌数较少的角色获得另一名角色的一张牌并获得一枚“丰”,另一名角色获得一枚“歉”。",
- function (card, player, target) {
- if (
- player == target ||
- target.hasMark("quxi_gain") ||
- target.hasMark("quxi_lose")
- )
- return false;
- if (!ui.selected.targets.length) return true;
- return target.countCards("h") != ui.selected.targets[0].countCards("h");
- }
- )
+ .chooseTarget(2, get.prompt("quxi"), "选择两名手牌数不同的其他角色。你将翻至背面,令这两名角色中手牌数较少的角色获得另一名角色的一张牌并获得一枚“丰”,另一名角色获得一枚“歉”。", function (card, player, target) {
+ if (player == target || target.hasMark("quxi_gain") || target.hasMark("quxi_lose")) return false;
+ if (!ui.selected.targets.length) return true;
+ return target.countCards("h") != ui.selected.targets[0].countCards("h");
+ })
.set("complexTarget", true)
.set("ai", function (target) {
if (!ui.selected.targets.length) {
@@ -17008,22 +14448,13 @@ game.import("character", function () {
hs = target.countCards("h");
if (
game.hasPlayer(function (current) {
- return (
- current != player &&
- current != target &&
- current.countCards("h") > hs &&
- !current.hasMark("quxi_gain") &&
- !current.hasMark("quxi_lose")
- );
+ return current != player && current != target && current.countCards("h") > hs && !current.hasMark("quxi_gain") && !current.hasMark("quxi_lose");
})
)
- return (
- get.attitude(player, target) / Math.sqrt(1 + target.countCards("h"))
- );
+ return get.attitude(player, target) / Math.sqrt(1 + target.countCards("h"));
return 0;
}
- if (target.countCards("h") > ui.selected.targets[0].countCards("h"))
- return -get.attitude(_status.event.player, target);
+ if (target.countCards("h") > ui.selected.targets[0].countCards("h")) return -get.attitude(_status.event.player, target);
return 0;
});
"step 1";
@@ -17031,8 +14462,7 @@ game.import("character", function () {
player.logSkill("quxi", result.targets);
player.awakenSkill("quxi");
player.skip("phaseDiscard");
- if (result.targets[0].countCards("h") > result.targets[1].countCards("h"))
- result.targets.reverse();
+ if (result.targets[0].countCards("h") > result.targets[1].countCards("h")) result.targets.reverse();
event.gainner = result.targets[0];
event.giver = result.targets[1];
player.turnOver();
@@ -17051,16 +14481,9 @@ game.import("character", function () {
charlotte: true,
direct: true,
filter: function (event, player) {
- if (event.name == "die")
- return (
- event.player.countMark("quxi_gain") > 0 ||
- event.player.countMark("quxi_lose") > 0
- );
+ if (event.name == "die") return event.player.countMark("quxi_gain") > 0 || event.player.countMark("quxi_lose") > 0;
return game.hasPlayer(function (target) {
- return (
- target != player &&
- (target.countMark("quxi_gain") > 0 || target.countMark("quxi_lose") > 0)
- );
+ return target != player && (target.countMark("quxi_gain") > 0 || target.countMark("quxi_lose") > 0);
});
},
content: function () {
@@ -17069,18 +14492,9 @@ game.import("character", function () {
var gain = trigger.player.countMark("quxi_gain"),
lose = trigger.player.countMark("quxi_lose");
player
- .chooseTarget(
- "是否令一名角色获得" +
- get.translation(trigger.player) +
- "的“" +
- (gain && lose ? "丰”和“歉" : gain ? "丰" : "歉") +
- "”标记?",
- function (card, player, target) {
- return (
- !target.hasMark("quxi_gain") && !target.hasMark("quxi_lose")
- );
- }
- )
+ .chooseTarget("是否令一名角色获得" + get.translation(trigger.player) + "的“" + (gain && lose ? "丰”和“歉" : gain ? "丰" : "歉") + "”标记?", function (card, player, target) {
+ return !target.hasMark("quxi_gain") && !target.hasMark("quxi_lose");
+ })
.set("goon", gain - lose)
.set("ai", function (target) {
var evt = _status.event;
@@ -17114,10 +14528,7 @@ game.import("character", function () {
)
player
.chooseTarget(2, "是否转移“丰”标记?", function (card, player, target) {
- if (ui.selected.targets.length)
- return (
- !target.hasMark("quxi_gain") && !target.hasMark("quxi_lose")
- );
+ if (ui.selected.targets.length) return !target.hasMark("quxi_gain") && !target.hasMark("quxi_lose");
return target.countMark("quxi_gain") > 0;
})
.set("complexTarget", true)
@@ -17151,10 +14562,7 @@ game.import("character", function () {
)
player
.chooseTarget(2, "是否转移“歉”标记?", function (card, player, target) {
- if (ui.selected.targets.length)
- return (
- !target.hasMark("quxi_gain") && !target.hasMark("quxi_lose")
- );
+ if (ui.selected.targets.length) return !target.hasMark("quxi_gain") && !target.hasMark("quxi_lose");
return target.countMark("quxi_lose") > 0;
})
.set("complexTarget", true)
@@ -17218,12 +14626,7 @@ game.import("character", function () {
},
forced: true,
filter: function (event, player) {
- if (
- event.type != "discard" ||
- event.getlx === false ||
- event.getParent("phaseDiscard").player != player
- )
- return false;
+ if (event.type != "discard" || event.getlx === false || event.getParent("phaseDiscard").player != player) return false;
var evt = event.getl(player);
return evt && evt.hs && evt.hs.length > 0;
},
@@ -17239,8 +14642,7 @@ game.import("character", function () {
onremove: true,
mod: {
targetEnabled: function (card, player, target) {
- if (player !== target && target.getStorage("bixiong2").includes(get.suit(card)))
- return false;
+ if (player !== target && target.getStorage("bixiong2").includes(get.suit(card))) return false;
},
},
intro: { content: "不能成为其他角色$牌的目标" },
@@ -17323,13 +14725,7 @@ game.import("character", function () {
popup: false,
filter: function (event, player) {
var evt = event.getParent("useCard");
- return (
- event.card &&
- evt &&
- event.card == evt.card &&
- evt.skill == "juguan_backup" &&
- evt.player == player
- );
+ return event.card && evt && event.card == evt.card && evt.skill == "juguan_backup" && evt.player == player;
},
content: function () {
player.addSkill("juguan_draw");
@@ -17359,15 +14755,11 @@ game.import("character", function () {
silent: true,
popup: false,
filter: function (event, player) {
- return (
- player.storage.juguan_draw &&
- player.storage.juguan_draw.includes(event.source)
- );
+ return player.storage.juguan_draw && player.storage.juguan_draw.includes(event.source);
},
content: function () {
player.unmarkAuto("juguan_draw", [trigger.source]);
- if (!player.storage.juguan_draw || !player.storage.juguan_draw.length)
- player.removeSkill("juguan_draw");
+ if (!player.storage.juguan_draw || !player.storage.juguan_draw.length) player.removeSkill("juguan_draw");
},
},
},
@@ -17385,21 +14777,14 @@ game.import("character", function () {
"step 0";
var target = trigger.targets[0];
target
- .chooseToUse(
- function (card, player, event) {
- if (get.name(card) != "sha") return false;
- return lib.filter.filterCard.apply(this, arguments);
- },
- "武娘:是否对" + get.translation(player) + "使用一张杀?"
- )
+ .chooseToUse(function (card, player, event) {
+ if (get.name(card) != "sha") return false;
+ return lib.filter.filterCard.apply(this, arguments);
+ }, "武娘:是否对" + get.translation(player) + "使用一张杀?")
.set("targetRequired", true)
.set("complexSelect", true)
.set("filterTarget", function (card, player, target) {
- if (
- target != _status.event.sourcex &&
- !ui.selected.targets.includes(_status.event.sourcex)
- )
- return false;
+ if (target != _status.event.sourcex && !ui.selected.targets.includes(_status.event.sourcex)) return false;
return lib.filter.filterTarget.apply(this, arguments);
})
.set("sourcex", player);
@@ -17460,9 +14845,7 @@ game.import("character", function () {
"step 3";
if (result.bool) {
if (target.name2 != undefined) {
- target
- .chooseControl(target.name1, target.name2)
- .set("prompt", "请选择要更换的武将牌");
+ target.chooseControl(target.name1, target.name2).set("prompt", "请选择要更换的武将牌");
} else event._result = { control: target.name1 };
} else event.finish();
"step 4";
@@ -17476,22 +14859,14 @@ game.import("character", function () {
viewAs: { name: "nanman" },
filterCard: true,
selectCard: function () {
- if (ui.selected.targets.length)
- return [
- ui.selected.targets.length,
- Math.min(ui.selected.targets.length + 1, game.players.length - 1),
- ];
+ if (ui.selected.targets.length) return [ui.selected.targets.length, Math.min(ui.selected.targets.length + 1, game.players.length - 1)];
return [1, Infinity];
},
check: function (card) {
var player = _status.event.player;
if (
game.countPlayer(function (current) {
- return (
- current != player &&
- player.canUse("nanman", current) &&
- get.effect(current, { name: "nanman" }, player, player) > 0
- );
+ return current != player && player.canUse("nanman", current) && get.effect(current, { name: "nanman" }, player, player) > 0;
}) <= ui.selected.cards.length
)
return 0;
@@ -17522,7 +14897,7 @@ game.import("character", function () {
enable: "phaseUse",
usable: 1,
filter: function (event, player) {
- return game.hasPlayer((current) => lib.skill.guanxu.filterTarget(null, player, current));
+ return game.hasPlayer(current => lib.skill.guanxu.filterTarget(null, player, current));
},
filterTarget: function (card, player, target) {
return target != player && target.countCards("h") > 0;
@@ -17535,18 +14910,11 @@ game.import("character", function () {
}
game.updateRoundNumber();
var hs = target.getCards("h");
- var dialog = [
- "观虚:选择要操作的牌",
- '' + get.translation(target) + "的手牌
",
- hs,
- '牌堆顶
',
- cards,
- ];
+ var dialog = ["观虚:选择要操作的牌", '' + get.translation(target) + "的手牌
", hs, '牌堆顶
', cards];
player
.chooseButton(dialog, 2)
.set("filterButton", function (button) {
- if (ui.selected.buttons.length)
- return get.position(button.link) != get.position(ui.selected.buttons[0].link);
+ if (ui.selected.buttons.length) return get.position(button.link) != get.position(ui.selected.buttons[0].link);
return true;
})
.set("cards1", hs)
@@ -17566,8 +14934,7 @@ game.import("character", function () {
var num = cards1.filter(function (c) {
return get.suit(c, target) == i;
}).length;
- if (num > 2 || (num > 1 && suits.includes(i)))
- return 20 + get.value(card);
+ if (num > 2 || (num > 1 && suits.includes(i))) return 20 + get.value(card);
}
return get.value(card);
}
@@ -17633,7 +15000,7 @@ game.import("character", function () {
direct: true,
filter: function (event, player) {
if (event.source && event.source.isIn()) return true;
- return game.hasPlayer((current) => lib.skill.guanxu.filterTarget(null, player, current));
+ return game.hasPlayer(current => lib.skill.guanxu.filterTarget(null, player, current));
},
content: function () {
"step 0";
@@ -17642,8 +15009,7 @@ game.import("character", function () {
if (trigger.source && trigger.source.isIn()) {
choiceList.push("令" + get.translation(trigger.source) + "的所有非锁定技失效");
} else event.addIndex++;
- if (game.hasPlayer((current) => lib.skill.guanxu.filterTarget(null, player, current)))
- choiceList.push("发动一次〖观虚〗");
+ if (game.hasPlayer(current => lib.skill.guanxu.filterTarget(null, player, current))) choiceList.push("发动一次〖观虚〗");
player
.chooseControl("cancel2")
.set("prompt", get.prompt("yashi"))
@@ -17654,28 +15020,14 @@ game.import("character", function () {
index = _status.event.getParent().addIndex;
if (
game.hasPlayer(function (current) {
- return (
- current != player &&
- current.countCards("h") > 3 &&
- get.attitude(player, current) < 0
- );
+ return current != player && current.countCards("h") > 3 && get.attitude(player, current) < 0;
})
)
return 1 - index;
- if (
- source &&
- source.isIn() &&
- get.attitude(player, source) < 0 &&
- !source.hasSkill("fengyin")
- )
- return 0;
+ if (source && source.isIn() && get.attitude(player, source) < 0 && !source.hasSkill("fengyin")) return 0;
if (
game.hasPlayer(function (current) {
- return (
- current != player &&
- current.countCards("h") > 0 &&
- get.attitude(player, current) < 0
- );
+ return current != player && current.countCards("h") > 0 && get.attitude(player, current) < 0;
})
)
return 1 - index;
@@ -17690,12 +15042,10 @@ game.import("character", function () {
target.addTempSkill("fengyin", { player: "phaseBegin" });
event.finish();
} else
- player
- .chooseTarget(true, "请选择〖观虚〗的目标", lib.skill.guanxu.filterTarget)
- .set("ai", function (target) {
- var player = _status.event.player;
- return get.effect(target, "guanxu", player, player);
- });
+ player.chooseTarget(true, "请选择〖观虚〗的目标", lib.skill.guanxu.filterTarget).set("ai", function (target) {
+ var player = _status.event.player;
+ return get.effect(target, "guanxu", player, player);
+ });
} else event.finish();
"step 2";
if (result.bool) {
@@ -17747,8 +15097,7 @@ game.import("character", function () {
weiyi: {
trigger: { global: "damageEnd" },
filter: function (event, player) {
- if (player.getStorage("weiyi").includes(event.player) || !event.player.isIn())
- return false;
+ if (player.getStorage("weiyi").includes(event.player) || !event.player.isIn()) return false;
return event.player.hp >= player.hp || event.player.isDamaged();
},
direct: true,
@@ -17772,11 +15121,7 @@ game.import("character", function () {
if (
player.hp >= 2 &&
game.hasPlayer(function (current) {
- return (
- current.hp == player.hp + 1 &&
- !storage.includes(current) &&
- get.attitude(player, current) < 0
- );
+ return current.hp == player.hp + 1 && !storage.includes(current) && get.attitude(player, current) < 0;
})
)
return "cancel2";
@@ -17803,26 +15148,12 @@ game.import("character", function () {
audio: 2,
enable: ["chooseToUse", "chooseToRespond"],
hiddenCard: function (player, name) {
- if (
- get.type(name) == "basic" &&
- lib.inpile.includes(name) &&
- player.countMark("jinzhi2") < player.countCards("he")
- )
- return true;
+ if (get.type(name) == "basic" && lib.inpile.includes(name) && player.countMark("jinzhi2") < player.countCards("he")) return true;
},
filter: function (event, player) {
- if (
- event.responded ||
- event.jinzhi ||
- player.countMark("jinzhi2") >= player.countCards("he")
- )
- return false;
+ if (event.responded || event.jinzhi || player.countMark("jinzhi2") >= player.countCards("he")) return false;
for (var i of lib.inpile) {
- if (
- get.type(i) == "basic" &&
- event.filterCard({ name: i, isCard: true }, player, event)
- )
- return true;
+ if (get.type(i) == "basic" && event.filterCard({ name: i, isCard: true }, player, event)) return true;
}
return false;
},
@@ -17830,10 +15161,7 @@ game.import("character", function () {
dialog: function (event, player) {
var list = [];
for (var i of lib.inpile) {
- if (
- get.type(i) == "basic" &&
- event.filterCard({ name: i, isCard: true }, player, event)
- ) {
+ if (get.type(i) == "basic" && event.filterCard({ name: i, isCard: true }, player, event)) {
list.push(["基本", "", i]);
if (i == "sha") {
for (var j of lib.inpile_nature) list.push(["基本", "", "sha", j]);
@@ -17873,21 +15201,11 @@ game.import("character", function () {
check: function (card) {
var player = _status.event.player,
color = get.color(card, player);
- if (
- player.countCards("he", { color: color }) <=
- player.countMark("jinzhi2") ||
- (ui.selected.cards.length &&
- get.color(ui.selected.cards[0], player) != color)
- )
- return -1;
+ if (player.countCards("he", { color: color }) <= player.countMark("jinzhi2") || (ui.selected.cards.length && get.color(ui.selected.cards[0], player) != color)) return -1;
if (
lib.skill.jinzhi_backup.viewAs.name == "jiu" &&
!player.countCards("h", function (cardx) {
- return (
- card != cardx &&
- !ui.selected.cards.includes(cardx) &&
- get.name(cardx, player) == "sha"
- );
+ return card != cardx && !ui.selected.cards.includes(cardx) && get.name(cardx, player) == "sha";
})
)
return 0;
@@ -17924,24 +15242,12 @@ game.import("character", function () {
prompt: function (links, player) {
var name = links[0][2];
var nature = links[0][3];
- return (
- "弃置" +
- get.cnNumber(player.countMark("jinzhi2") + 1) +
- "张颜色相同的牌并摸一张牌,然后视为使用" +
- (get.translation(nature) || "") +
- get.translation(name)
- );
+ return "弃置" + get.cnNumber(player.countMark("jinzhi2") + 1) + "张颜色相同的牌并摸一张牌,然后视为使用" + (get.translation(nature) || "") + get.translation(name);
},
},
ai: {
order: function (item, player) {
- if (
- _status.event.type == "phase" &&
- !player.countMark("jinzhi2") &&
- player.getUseValue({ name: "jiu" }, null, true) > 0 &&
- player.countCards("h", "sha")
- )
- return get.order({ name: "jiu" }) + 1;
+ if (_status.event.type == "phase" && !player.countMark("jinzhi2") && player.getUseValue({ name: "jiu" }, null, true) > 0 && player.countCards("h", "sha")) return get.order({ name: "jiu" }) + 1;
return 1;
},
respondShan: true,
@@ -17985,12 +15291,8 @@ game.import("character", function () {
})
)
return true;
- if (player.countCards("he", (card) => get.value(card, player) < 5)) return true;
- if (
- target.countCards("he", (card) => get.value(card, target) > 6) &&
- player.countCards("he", (card) => get.value(card, player) < 7)
- )
- return true;
+ if (player.countCards("he", card => get.value(card, player) < 5)) return true;
+ if (target.countCards("he", card => get.value(card, target) > 6) && player.countCards("he", card => get.value(card, player) < 7)) return true;
return false;
},
content: function () {
@@ -18009,11 +15311,7 @@ game.import("character", function () {
audio: 2,
trigger: { player: "useCardAfter" },
filter: function (event, player) {
- if (
- !lib.suit.includes(get.suit(event.card, false)) ||
- typeof get.number(event.card) != "number"
- )
- return false;
+ if (!lib.suit.includes(get.suit(event.card, false)) || typeof get.number(event.card) != "number") return false;
if (
player.getHistory("sourceDamage", function (evt) {
return evt.card == event.card;
@@ -18053,11 +15351,7 @@ game.import("character", function () {
filter: function (event, player) {
if (event.card.name != "sha") return false;
return game.hasPlayer(function (current) {
- return (
- !event.targets.includes(current) &&
- get.distance(player, current) <= 1 &&
- player.canUse(event.card, current)
- );
+ return !event.targets.includes(current) && get.distance(player, current) <= 1 && player.canUse(event.card, current);
});
},
direct: true,
@@ -18065,17 +15359,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("reduanbing"),
- "为" + get.translation(trigger.card) + "增加一个目标",
- function (card, player, target) {
- return (
- !_status.event.sourcex.includes(target) &&
- get.distance(player, target) <= 1 &&
- player.canUse(_status.event.card, target)
- );
- }
- )
+ .chooseTarget(get.prompt("reduanbing"), "为" + get.translation(trigger.card) + "增加一个目标", function (card, player, target) {
+ return !_status.event.sourcex.includes(target) && get.distance(player, target) <= 1 && player.canUse(_status.event.card, target);
+ })
.set("sourcex", trigger.targets)
.set("ai", function (target) {
var player = _status.event.player;
@@ -18106,12 +15392,7 @@ game.import("character", function () {
}
if (
game.hasPlayer(function (current) {
- return (
- current != target &&
- get.distance(player, current) <= 1 &&
- player.canUse(card, current) &&
- get.effect(current, card, player, player) > 0
- );
+ return current != target && get.distance(player, current) <= 1 && player.canUse(card, current) && get.effect(current, card, player, player) > 0;
})
) {
delete player._reduanbingtmp;
@@ -18130,11 +15411,7 @@ game.import("character", function () {
trigger: { player: "useCardToPlayered" },
forced: true,
filter: function (event, player) {
- return (
- event.card.name == "sha" &&
- !event.getParent().directHit.includes(event.target) &&
- get.distance(player, event.target) <= 1
- );
+ return event.card.name == "sha" && !event.getParent().directHit.includes(event.target) && get.distance(player, event.target) <= 1;
},
logTarget: "target",
content: function () {
@@ -18150,12 +15427,7 @@ game.import("character", function () {
ai: {
directHit_ai: true,
skillTagFilter: function (player, tag, arg) {
- if (
- arg.card.name != "sha" ||
- arg.target.countCards("h", "shan") > 1 ||
- get.distance(player, arg.target) > 1
- )
- return false;
+ if (arg.card.name != "sha" || arg.target.countCards("h", "shan") > 1 || get.distance(player, arg.target) > 1) return false;
},
},
},
@@ -18183,27 +15455,16 @@ game.import("character", function () {
return 1;
}
var geteff = function (current) {
- return (
- player.canUse("sha", current, false, true) &&
- get.effect(current, { name: "sha" }, player, player) > 0
- );
+ return player.canUse("sha", current, false, true) && get.effect(current, { name: "sha" }, player, player) > 0;
};
if (player.hasSha() && geteff(target)) {
var num = game.countPlayer(function (current) {
- return (
- current != player &&
- get.distance(player, current) <= 1 &&
- geteff(current)
- );
+ return current != player && get.distance(player, current) <= 1 && geteff(current);
});
if (num == 0) {
if (
game.hasPlayer(function (current) {
- return (
- player.canUse("sha", current) &&
- geteff(current) &&
- current != target
- );
+ return player.canUse("sha", current) && geteff(current) && current != target;
})
) {
return 1;
@@ -18277,22 +15538,13 @@ game.import("character", function () {
trigger: { player: "useCard2" },
direct: true,
filter: function (event, player) {
- if (
- (event.card.name != "sha" &&
- (get.color(event.card) != "black" || get.type(event.card) != "trick")) ||
- !player.countMark("reluanzhan")
- )
- return false;
+ if ((event.card.name != "sha" && (get.color(event.card) != "black" || get.type(event.card) != "trick")) || !player.countMark("reluanzhan")) return false;
var info = get.info(event.card);
if (info.allowMultiple == false) return false;
if (event.targets && !info.multitarget) {
if (
game.hasPlayer(function (current) {
- return (
- !event.targets.includes(current) &&
- lib.filter.targetEnabled2(event.card, player, current) &&
- lib.filter.targetInRange(event.card, player, current)
- );
+ return !event.targets.includes(current) && lib.filter.targetEnabled2(event.card, player, current) && lib.filter.targetInRange(event.card, player, current);
})
) {
return true;
@@ -18303,18 +15555,14 @@ game.import("character", function () {
content: function () {
"step 0";
var num = player.countMark("reluanzhan");
- var prompt2 =
- "为" + get.translation(trigger.card) + "增加至多" + get.cnNumber(num) + "个目标";
+ var prompt2 = "为" + get.translation(trigger.card) + "增加至多" + get.cnNumber(num) + "个目标";
player
.chooseTarget(
get.prompt("reluanzhan"),
function (card, player, target) {
if (_status.event.targets.includes(target)) return false;
var player = _status.event.player;
- return (
- lib.filter.targetEnabled2(_status.event.card, player, target) &&
- lib.filter.targetInRange(_status.event.card, player, target)
- );
+ return lib.filter.targetEnabled2(_status.event.card, player, target) && lib.filter.targetInRange(_status.event.card, player, target);
},
[1, num]
)
@@ -18346,13 +15594,7 @@ game.import("character", function () {
forced: true,
locked: false,
filter: function (event, player) {
- if (
- !event.isFirstTarget ||
- (event.card.name != "sha" &&
- (get.color(event.card) != "black" || get.type(event.card) != "trick")) ||
- !player.countMark("reluanzhan")
- )
- return false;
+ if (!event.isFirstTarget || (event.card.name != "sha" && (get.color(event.card) != "black" || get.type(event.card) != "trick")) || !player.countMark("reluanzhan")) return false;
var info = get.info(event.card);
if (info.allowMultiple == false || info.multitarget) return false;
return event.targets.length < player.countMark("reluanzhan");
@@ -18371,9 +15613,7 @@ game.import("character", function () {
mark: true,
intro: {
content: function (storage, player) {
- return storage
- ? "每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。"
- : "每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌。";
+ return storage ? "每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。" : "每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌。";
},
},
init: function (player) {
@@ -18423,11 +15663,7 @@ game.import("character", function () {
return dialog;
},
filter: function (button) {
- if (
- ui.selected.buttons.length &&
- typeof button.link == typeof ui.selected.buttons[0].link
- )
- return false;
+ if (ui.selected.buttons.length && typeof button.link == typeof ui.selected.buttons[0].link) return false;
return true;
},
select: 2,
@@ -18452,10 +15688,7 @@ game.import("character", function () {
case 1: {
if (
game.hasPlayer(function (current) {
- return (
- (get.realAttitude || get.attitude)(player, current) < 0 &&
- get.distance(player, current) > 1
- );
+ return (get.realAttitude || get.attitude)(player, current) < 0 && get.distance(player, current) > 1;
})
)
return 0;
@@ -18498,10 +15731,7 @@ game.import("character", function () {
player.logSkill("youlong");
player.disableEquip(lib.skill.youlong_backup.equip);
delete event.result.skill;
- player.addTempSkill(
- "youlong_" + (player.storage.youlong || false),
- "roundStart"
- );
+ player.addTempSkill("youlong_" + (player.storage.youlong || false), "roundStart");
player.changeZhuanhuanji("youlong");
player.storage.youlong2.add(event.result.card.name);
},
@@ -18512,13 +15742,7 @@ game.import("character", function () {
var equip = "equip" + links[0];
var name = links[1][2];
var nature = links[1][3];
- return (
- "废除自己的" +
- get.translation(equip) +
- "栏,视为使用" +
- (get.translation(nature) || "") +
- get.translation(name)
- );
+ return "废除自己的" + get.translation(equip) + "栏,视为使用" + (get.translation(nature) || "") + get.translation(name);
},
},
ai: {
@@ -18535,17 +15759,12 @@ game.import("character", function () {
var max = 0,
add = false;
var type = player.storage.youlong ? "basic" : "trick";
- var list = lib.inpile.filter(
- (name) => get.type(name) == type && !player.storage.youlong2.includes(name)
- );
+ var list = lib.inpile.filter(name => get.type(name) == type && !player.storage.youlong2.includes(name));
if (list.includes("sha")) add = true;
- list = list.map((namex) => {
+ list = list.map(namex => {
return { name: namex, isCard: true };
});
- if (add)
- lib.inpile_nature.forEach((naturex) =>
- list.push({ name: "sha", nature: naturex, isCard: true })
- );
+ if (add) lib.inpile_nature.forEach(naturex => list.push({ name: "sha", nature: naturex, isCard: true }));
for (var card of list) {
if (player.getUseValue(card) > 0) {
var temp = get.order(card);
@@ -18579,14 +15798,7 @@ game.import("character", function () {
player.countCards("h", function (card) {
var mod2 = game.checkMod(card, player, "unchanged", "cardEnabled2", player);
if (mod2 != "unchanged") return mod2;
- var mod = game.checkMod(
- card,
- player,
- event.player,
- "unchanged",
- "cardSavable",
- player
- );
+ var mod = game.checkMod(card, player, event.player, "unchanged", "cardSavable", player);
if (mod != "unchanged") return mod;
var savable = get.info(card).savable;
if (typeof savable == "function") savable = savable(card, player, event.player);
@@ -18629,8 +15841,7 @@ game.import("character", function () {
},
direct: true,
content: function () {
- player.chooseUseTarget("sha", get.prompt("xiaoxi"), "视为使用一张【杀】").logSkill =
- "xiaoxi";
+ player.chooseUseTarget("sha", get.prompt("xiaoxi"), "视为使用一张【杀】").logSkill = "xiaoxi";
},
},
spmouzhu: {
@@ -18638,9 +15849,7 @@ game.import("character", function () {
audio: "mouzhu",
usable: 1,
filter: function (event, player) {
- return game.hasPlayer((current) =>
- lib.skill.spmouzhu.filterTarget(null, player, current)
- );
+ return game.hasPlayer(current => lib.skill.spmouzhu.filterTarget(null, player, current));
},
filterTarget: function (card, player, target) {
if (!target.countCards("h")) return false;
@@ -18663,15 +15872,9 @@ game.import("character", function () {
if (!list.length) event.finish();
else if (list.length == 1) event._result = { control: list[0] };
else
- target
- .chooseControl(list)
- .set("prompt", "对" + get.translation(player) + "使用一张【杀】或【决斗】。").ai =
- function () {
- return get.effect(player, { name: "sha" }, target, target) >=
- get.effect(player, { name: "juedou" }, target, target)
- ? "sha"
- : "juedou";
- };
+ target.chooseControl(list).set("prompt", "对" + get.translation(player) + "使用一张【杀】或【决斗】。").ai = function () {
+ return get.effect(player, { name: "sha" }, target, target) >= get.effect(player, { name: "juedou" }, target, target) ? "sha" : "juedou";
+ };
"step 3";
target.useCard({ name: result.control, isCard: true }, player, "noai");
},
@@ -18683,11 +15886,7 @@ game.import("character", function () {
if (ui.selected.targets.length) return 0;
if (target.countCards("h") - player.countCards("h") > 1) return 1;
if (get.damageEffect(target, player, player, player) > 0) return 1;
- if (
- player.hp > 3 ||
- (player.countCards("h", "sha") && player.countCards("h", "shan"))
- )
- return 0;
+ if (player.hp > 3 || (player.countCards("h", "sha") && player.countCards("h", "shan"))) return 0;
if (player.hp > 2) return -1.1;
return -2;
},
@@ -18781,15 +15980,7 @@ game.import("character", function () {
return (
event.player.getStockSkills("仲村由理", "天下第一").filter(function (skill) {
var info = get.info(skill);
- return (
- info &&
- !info.juexingji &&
- !info.hiddenSkill &&
- !info.zhuSkill &&
- !info.charlotte &&
- !info.limited &&
- !info.dutySkill
- );
+ return info && !info.juexingji && !info.hiddenSkill && !info.zhuSkill && !info.charlotte && !info.limited && !info.dutySkill;
}).length > 0
);
},
@@ -18802,15 +15993,7 @@ game.import("character", function () {
player.awakenSkill("tuogu");
var list = trigger.player.getStockSkills("仲村由理", "天下第一").filter(function (skill) {
var info = get.info(skill);
- return (
- info &&
- !info.juexingji &&
- !info.hiddenSkill &&
- !info.zhuSkill &&
- !info.charlotte &&
- !info.limited &&
- !info.dutySkill
- );
+ return info && !info.juexingji && !info.hiddenSkill && !info.zhuSkill && !info.charlotte && !info.limited && !info.dutySkill;
});
if (list.length == 1) event._result = { control: list[0] };
else
@@ -18842,15 +16025,7 @@ game.import("character", function () {
return (
event.player.getStockSkills("仲村由理", "天下第一").filter(function (skill) {
var info = get.info(skill);
- return (
- info &&
- !info.juexingji &&
- !info.hiddenSkill &&
- !info.zhuSkill &&
- !info.charlotte &&
- !info.limited &&
- !info.dutySkill
- );
+ return info && !info.juexingji && !info.hiddenSkill && !info.zhuSkill && !info.charlotte && !info.limited && !info.dutySkill;
}).length > 0
);
},
@@ -18858,15 +16033,7 @@ game.import("character", function () {
check: function (event, player) {
var list = event.player.getStockSkills("仲村由理", "天下第一").filter(function (skill) {
var info = get.info(skill);
- return (
- info &&
- !info.juexingji &&
- !info.hiddenSkill &&
- !info.zhuSkill &&
- !info.charlotte &&
- !info.limited &&
- !info.dutySkill
- );
+ return info && !info.juexingji && !info.hiddenSkill && !info.zhuSkill && !info.charlotte && !info.limited && !info.dutySkill;
});
var negSkill = list.some(function (skill) {
return get.skillRank(skill, "inout") <= 0;
@@ -18885,15 +16052,7 @@ game.import("character", function () {
"step 0";
var list = trigger.player.getStockSkills("仲村由理", "天下第一").filter(function (skill) {
var info = get.info(skill);
- return (
- info &&
- !info.juexingji &&
- !info.hiddenSkill &&
- !info.zhuSkill &&
- !info.charlotte &&
- !info.limited &&
- !info.dutySkill
- );
+ return info && !info.juexingji && !info.hiddenSkill && !info.zhuSkill && !info.charlotte && !info.limited && !info.dutySkill;
});
if (list.length == 1) event._result = { control: list[0] };
else
@@ -18913,11 +16072,7 @@ game.import("character", function () {
})
.slice(0, 2);
var listx2 = [0];
- if (
- Math.abs(listx[0][1] - listx[1][1]) <= 0.5 &&
- Math.sign(listx[0][1]) == Math.sign(listx[1][1])
- )
- listx2.push(1);
+ if (Math.abs(listx[0][1] - listx[1][1]) <= 0.5 && Math.sign(listx[0][1]) == Math.sign(listx[1][1])) listx2.push(1);
return listx[listx2.randomGet()][0];
});
"step 1";
@@ -18944,21 +16099,14 @@ game.import("character", function () {
audio: 2,
direct: true,
filter: function (event, player) {
- return (
- player != event.player &&
- !event.player.isDisabledJudge() &&
- event.player.countCards("he") &&
- !event.player.countCards("j", (card) => get.type(card.viewAs || card.name) == "delay")
- );
+ return player != event.player && !event.player.isDisabledJudge() && event.player.countCards("he") && !event.player.countCards("j", card => get.type(card.viewAs || card.name) == "delay");
},
content: function () {
"step 0";
- player
- .choosePlayerCard(trigger.player, "he", get.prompt("shanzhuan", trigger.player))
- .set("ai", function (card) {
- if (get.attitude(_status.event.player, _status.event.target) >= 0) return 0;
- return get.buttonValue(card);
- });
+ player.choosePlayerCard(trigger.player, "he", get.prompt("shanzhuan", trigger.player)).set("ai", function (card) {
+ if (get.attitude(_status.event.player, _status.event.target) >= 0) return 0;
+ return get.buttonValue(card);
+ });
"step 1";
if (result.bool) {
player.logSkill("shanzhuan", trigger.player);
@@ -18966,11 +16114,7 @@ game.import("character", function () {
trigger.player.$throw(card);
game.delayx();
if (get.type(card, false) == "delay") trigger.player.addJudge(card);
- else
- trigger.player.addJudge(
- { name: get.color(card, false) == "red" ? "lebu" : "bingliang" },
- result.cards
- );
+ else trigger.player.addJudge({ name: get.color(card, false) == "red" ? "lebu" : "bingliang" }, result.cards);
}
},
group: "shanzhuan_draw",
@@ -18999,8 +16143,7 @@ game.import("character", function () {
var next = player.draw();
if (get.isLuckyStar(player) || Math.random() < 0.5) next.num = 2;
var num = player.countMark("olxingshen");
- if (num < 6)
- player.addMark("olxingshen", Math.min(6 - num, player.getDamagedHp()), false);
+ if (num < 6) player.addMark("olxingshen", Math.min(6 - num, player.getDamagedHp()), false);
},
intro: {
content: "下一次发动〖严教〗时多展示X张牌",
@@ -19024,10 +16167,7 @@ game.import("character", function () {
if (get.color(result) == "red") return 1;
return 0;
};
- if (
- get.itemtype(trigger.source) != "player" ||
- !player.canUse("sha", trigger.source, false)
- )
+ if (get.itemtype(trigger.source) != "player" || !player.canUse("sha", trigger.source, false))
func = function (result) {
return 0;
};
@@ -19040,11 +16180,7 @@ game.import("character", function () {
return result.color == "red" ? true : false;
};
"step 1";
- if (
- result.color == "red" &&
- get.itemtype(trigger.source) == "player" &&
- player.canUse("sha", trigger.source, false)
- ) {
+ if (result.color == "red" && get.itemtype(trigger.source) == "player" && player.canUse("sha", trigger.source, false)) {
player.useCard({ name: "sha", isCard: true }, trigger.source, false, "noai");
}
},
@@ -19102,18 +16238,10 @@ game.import("character", function () {
player: function (player) {
if (
game.hasPlayer(function (target) {
- return (
- target != player &&
- !target.hasSkill("zlshoufu2") &&
- get.attitude(player, target) < 0
- );
+ return target != player && !target.hasSkill("zlshoufu2") && get.attitude(player, target) < 0;
}) ||
!game.hasPlayer(function (target) {
- return (
- target != player &&
- !target.hasSkill("zlshoufu2") &&
- get.attitude(player, target) > 0
- );
+ return target != player && !target.hasSkill("zlshoufu2") && get.attitude(player, target) > 0;
})
)
return 1;
@@ -19168,21 +16296,14 @@ game.import("character", function () {
var storage = player.getExpansions("zlshoufu2");
if (!storage.length) return false;
if (event.name == "damage") return true;
- if (
- event.type != "discard" ||
- event.getlx === false ||
- event.getParent("phaseDiscard").player != player
- )
- return false;
+ if (event.type != "discard" || event.getlx === false || event.getParent("phaseDiscard").player != player) return false;
var num = 0,
evt = event.getl(player);
if (!evt || !evt.cards2) return false;
for (var i of evt.cards2) {
if (
storage.filter(function (magic) {
- return (
- get.type2(magic) == get.type2(i, event.hs.includes(i) ? player : false)
- );
+ return get.type2(magic) == get.type2(i, event.hs.includes(i) ? player : false);
}).length
)
num++;
@@ -19202,15 +16323,7 @@ game.import("character", function () {
},
content: function () {
"step 0";
- player.chooseButton(
- [
- "印卡:请选择要置于牌堆" +
- (trigger.bottom ? "底" : "顶") +
- "的牌(先选择的在上)",
- Array.from(ui.cardPile.childNodes),
- ],
- [1, trigger.num || 1]
- );
+ player.chooseButton(["印卡:请选择要置于牌堆" + (trigger.bottom ? "底" : "顶") + "的牌(先选择的在上)", Array.from(ui.cardPile.childNodes)], [1, trigger.num || 1]);
"step 1";
if (result.bool) {
while (result.links.length) {
@@ -19263,20 +16376,11 @@ game.import("character", function () {
"step 1";
game.updateRoundNumber();
targets[0]
- .chooseToUse(
- "对" +
- get.translation(targets[1]) +
- "使用一张杀,或将装备区里的武器牌交给一名其他角色",
- { name: "sha" }
- )
+ .chooseToUse("对" + get.translation(targets[1]) + "使用一张杀,或将装备区里的武器牌交给一名其他角色", { name: "sha" })
.set("targetRequired", true)
.set("complexSelect", true)
.set("filterTarget", function (card, player, target) {
- if (
- target != _status.event.sourcex &&
- !ui.selected.targets.includes(_status.event.sourcex)
- )
- return false;
+ if (target != _status.event.sourcex && !ui.selected.targets.includes(_status.event.sourcex)) return false;
return lib.filter.filterTarget.apply(this, arguments);
})
.set("sourcex", targets[1])
@@ -19285,17 +16389,10 @@ game.import("character", function () {
var cards = targets[0].getEquips(1);
if (!result.bool && cards.length) {
event.cards = cards;
- player
- .chooseTarget(true, "将" + get.translation(cards) + "交给一名其他角色")
- .set("ai", function (target) {
- var card = _status.event.getParent().cards;
- return (
- (target.hasSkillTag("nogain")
- ? 0
- : get.attitude(_status.event.player, target)) *
- Math.max(0.1, target.getUseValue(cards[0]))
- );
- });
+ player.chooseTarget(true, "将" + get.translation(cards) + "交给一名其他角色").set("ai", function (target) {
+ var card = _status.event.getParent().cards;
+ return (target.hasSkillTag("nogain") ? 0 : get.attitude(_status.event.player, target)) * Math.max(0.1, target.getUseValue(cards[0]));
+ });
} else event.finish();
"step 3";
result.targets[0].gain(cards, result.targets[0], "give").giver = player;
@@ -19306,18 +16403,13 @@ game.import("character", function () {
target: function (player, target) {
if (ui.selected.targets.length) {
var pretarget = ui.selected.targets[0];
- if (pretarget.hasSha() && pretarget.canUse({ name: "sha" }, target))
- return get.effect(target, { name: "sha" }, pretarget, target);
+ if (pretarget.hasSha() && pretarget.canUse({ name: "sha" }, target)) return get.effect(target, { name: "sha" }, pretarget, target);
return Math.random();
}
if (!target.getEquip(1)) {
if (
game.hasPlayer(function (current) {
- return (
- current != target &&
- !current.hasSkillTag("nogain") &&
- get.attitude(current, target) > 0
- );
+ return current != target && !current.hasSkillTag("nogain") && get.attitude(current, target) > 0;
})
)
return 3;
@@ -19325,11 +16417,7 @@ game.import("character", function () {
}
if (
!game.hasPlayer(function (current) {
- return (
- current != target &&
- !current.hasSkillTag("nogain") &&
- get.attitude(current, target) > 0
- );
+ return current != target && !current.hasSkillTag("nogain") && get.attitude(current, target) > 0;
})
)
return -6;
@@ -19351,8 +16439,7 @@ game.import("character", function () {
return game.hasPlayer2(function (current) {
return (
current.getAllHistory("sourceDamage", function (evt) {
- if (!evt.card || evt.card.name != "sha" || evt.getParent().type != "card")
- return false;
+ if (!evt.card || evt.card.name != "sha" || evt.getParent().type != "card") return false;
var evt2 = evt.getParent(4);
return evt2 && evt2.name == "xinlianji" && evt2.player == player;
}).length > 0
@@ -19399,11 +16486,7 @@ game.import("character", function () {
return ui.create.dialog("矜功", [list, "vcard"]);
},
filter: function (button, player) {
- return lib.filter.filterCard(
- { name: button.link[2] },
- player,
- _status.event.getParent()
- );
+ return lib.filter.filterCard({ name: button.link[2] }, player, _status.event.getParent());
},
check: function (button) {
return _status.event.player.getUseValue({ name: button.link[2] });
@@ -19440,16 +16523,14 @@ game.import("character", function () {
audio: 2,
content: function () {
"step 0";
- player
- .chooseTarget(get.prompt2("bizheng"), lib.filter.notMe)
- .set("ai", function (target) {
- var player = _status.event.player;
- if (player.countCards("h") > player.maxHp) return 0;
- var att = get.attitude(player, target);
- if (att <= 0 || target.hasSkillTag("nogain")) return 0;
- if (target.maxHp - target.countCards("h") >= 2) return att;
- return att / 2;
- });
+ player.chooseTarget(get.prompt2("bizheng"), lib.filter.notMe).set("ai", function (target) {
+ var player = _status.event.player;
+ if (player.countCards("h") > player.maxHp) return 0;
+ var att = get.attitude(player, target);
+ if (att <= 0 || target.hasSkillTag("nogain")) return 0;
+ if (target.maxHp - target.countCards("h") >= 2) return att;
+ return att / 2;
+ });
"step 1";
if (result.bool) {
var target = result.targets[0];
@@ -19477,10 +16558,7 @@ game.import("character", function () {
}
if (
game.hasPlayer(function (current) {
- return (
- lib.filter.targetEnabled2(event.card, player, current) &&
- !event.targets.includes(current)
- );
+ return lib.filter.targetEnabled2(event.card, player, current) && !event.targets.includes(current);
})
) {
return true;
@@ -19538,10 +16616,7 @@ game.import("character", function () {
) {
player
.chooseControl("cancel2")
- .set("choiceList", [
- "摸两张牌,然后弃置一张牌",
- "获得场上的一张牌,然后弃置一张牌",
- ])
+ .set("choiceList", ["摸两张牌,然后弃置一张牌", "获得场上的一张牌,然后弃置一张牌"])
.set("prompt", get.prompt("neifa"))
.set("ai", function () {
if (
@@ -19556,9 +16631,7 @@ game.import("character", function () {
);
return (
current.countCards("ej", function (card) {
- return (
- get.position(card) == "j" || get.value(card, current) <= 0
- );
+ return get.position(card) == "j" || get.value(card, current) <= 0;
}) > 0
);
})
@@ -19579,13 +16652,9 @@ game.import("character", function () {
return;
} else if (result.index == 1) {
player
- .chooseTarget(
- "请选择一名角色,获得其装备区或判定区内的一张牌",
- true,
- function (card, player, target) {
- return target.countGainableCards(player, "ej") > 0;
- }
- )
+ .chooseTarget("请选择一名角色,获得其装备区或判定区内的一张牌", true, function (card, player, target) {
+ return target.countGainableCards(player, "ej") > 0;
+ })
.set("ai", function (target) {
var player = _status.event.player;
var att = get.attitude(player, target);
@@ -19634,27 +16703,19 @@ game.import("character", function () {
if (muniu && muniu.cards) hs = hs.concat(muniu.cards);
if (get.type(cardx) == "basic") {
var shas = hs.filter(function (card) {
- return (
- card != cardx &&
- get.name(card, player) == "sha" &&
- player.hasValueTarget(card)
- );
+ return card != cardx && get.name(card, player) == "sha" && player.hasValueTarget(card);
});
var numx = player.countCards("h", function (card) {
return get.type(card, player) != "basic";
});
- num +=
- Math.min(numx, Math.max(0, shas.length - player.getCardUsable("sha"))) * 0.7;
+ num += Math.min(numx, Math.max(0, shas.length - player.getCardUsable("sha"))) * 0.7;
num +=
Math.min(
player.getCardUsable("sha") + numx,
shas.filter(function (card) {
return (
game.countPlayer(function (current) {
- return (
- player.canUse(card, current) &&
- get.effect(current, card, player, player) > 0
- );
+ return player.canUse(card, current) && get.effect(current, card, player, player) > 0;
}) > 1
);
}).length
@@ -19681,12 +16742,7 @@ game.import("character", function () {
Math.min(
2,
hs.filter(function (card) {
- if (
- card == cardx ||
- get.type(card) != "equip" ||
- !player.hasUseTarget(card)
- )
- return false;
+ if (card == cardx || get.type(card) != "equip" || !player.hasUseTarget(card)) return false;
subs.add(get.subtype(card));
return true;
}).length
@@ -19695,19 +16751,10 @@ game.import("character", function () {
2.5;
num +=
hs.filter(function (card) {
- return (
- card != cardx &&
- get.type2(card) == "trick" &&
- player.hasValueTarget(card)
- );
+ return card != cardx && get.type2(card) == "trick" && player.hasValueTarget(card);
}).length * 0.65;
}
- if (
- get.position(cardx) == "e" &&
- cardx.name != "muniu" &&
- subs.includes(get.subtype(card))
- )
- num += 3;
+ if (get.position(cardx) == "e" && cardx.name != "muniu" && subs.includes(get.subtype(card))) num += 3;
return num * 1.5 - get.value(cardx);
});
"step 4";
@@ -19734,8 +16781,7 @@ game.import("character", function () {
onremove: true,
intro: {
name: "内伐 - 基本牌",
- content:
- "本回合内不能使用锦囊牌和装备牌,使用【杀】选择目标时可以额外指定一个目标且使用【杀】的目标次数上限+#。",
+ content: "本回合内不能使用锦囊牌和装备牌,使用【杀】选择目标时可以额外指定一个目标且使用【杀】的目标次数上限+#。",
},
mod: {
cardEnabled: function (card, player) {
@@ -19761,16 +16807,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("neifa"),
- "为" + get.translation(trigger.card) + "额外指定一个目标",
- function (card, player, target) {
- return (
- !_status.event.sourcex.includes(target) &&
- player.canUse(_status.event.card, target)
- );
- }
- )
+ .chooseTarget(get.prompt("neifa"), "为" + get.translation(trigger.card) + "额外指定一个目标", function (card, player, target) {
+ return !_status.event.sourcex.includes(target) && player.canUse(_status.event.card, target);
+ })
.set("sourcex", trigger.targets)
.set("ai", function (target) {
var player = _status.event.player;
@@ -19805,8 +16844,7 @@ game.import("character", function () {
},
intro: {
name: "内伐 - 非基本牌",
- content:
- "本回合内不能使用基本牌,使用普通锦囊牌选择目标时可以增加或减少一个目标,且本回合的出牌阶段内前两次使用装备牌时摸#张牌。",
+ content: "本回合内不能使用基本牌,使用普通锦囊牌选择目标时可以增加或减少一个目标,且本回合的出牌阶段内前两次使用装备牌时摸#张牌。",
},
filter: function (event, player) {
if (get.type(event.card) != "trick") return false;
@@ -19816,11 +16854,7 @@ game.import("character", function () {
if (event.targets && !info.multitarget) {
if (
game.hasPlayer(function (current) {
- return (
- !event.targets.includes(current) &&
- lib.filter.targetEnabled2(event.card, player, current) &&
- lib.filter.targetInRange(event.card, player, current)
- );
+ return !event.targets.includes(current) && lib.filter.targetEnabled2(event.card, player, current) && lib.filter.targetInRange(event.card, player, current);
})
) {
return true;
@@ -19835,19 +16869,13 @@ game.import("character", function () {
.chooseTarget(get.prompt("neifa"), function (card, player, target) {
var player = _status.event.player;
if (_status.event.targets.includes(target)) return true;
- return (
- lib.filter.targetEnabled2(_status.event.card, player, target) &&
- lib.filter.targetInRange(_status.event.card, player, target)
- );
+ return lib.filter.targetEnabled2(_status.event.card, player, target) && lib.filter.targetInRange(_status.event.card, player, target);
})
.set("prompt2", prompt2)
.set("ai", function (target) {
var trigger = _status.event.getTrigger();
var player = _status.event.player;
- return (
- get.effect(target, trigger.card, player, player) *
- (_status.event.targets.includes(target) ? -1 : 1)
- );
+ return get.effect(target, trigger.card, player, player) * (_status.event.targets.includes(target) ? -1 : 1);
})
.set("targets", trigger.targets)
.set("card", trigger.card);
@@ -19861,8 +16889,7 @@ game.import("character", function () {
"step 2";
if (event.targets) {
player.logSkill("neifa", event.targets);
- if (trigger.targets.includes(event.targets[0]))
- trigger.targets.removeArray(event.targets);
+ if (trigger.targets.includes(event.targets[0])) trigger.targets.removeArray(event.targets);
else trigger.targets.addArray(event.targets);
}
},
@@ -19870,19 +16897,11 @@ game.import("character", function () {
ai: {
reverseOrder: true,
skillTagFilter: function (player) {
- if (player.storage.counttrigger && player.storage.counttrigger.neifa_use >= 2)
- return false;
+ if (player.storage.counttrigger && player.storage.counttrigger.neifa_use >= 2) return false;
},
effect: {
target: function (card, player, target) {
- if (
- (!player.storage.counttrigger ||
- !player.storage.counttrigger.neifa_use ||
- player.storage.counttrigger.neifa_use < 2) &&
- player == target &&
- get.type(card) == "equip"
- )
- return [1, 3];
+ if ((!player.storage.counttrigger || !player.storage.counttrigger.neifa_use || player.storage.counttrigger.neifa_use < 2) && player == target && get.type(card) == "equip") return [1, 3];
},
},
},
@@ -19952,16 +16971,9 @@ game.import("character", function () {
},
content: function () {
"step 0";
- var next = player.chooseToDiscard(
- "he",
- get.prompt("xjshijian", trigger.player),
- "弃置一张牌并令其获得技能〖誉虚〗至回合结束"
- );
+ var next = player.chooseToDiscard("he", get.prompt("xjshijian", trigger.player), "弃置一张牌并令其获得技能〖誉虚〗至回合结束");
next.set("logSkill", ["xjshijian", trigger.player]);
- next.set(
- "check",
- get.attitude(player, trigger.player) > 0 && trigger.player.countCards("h") > 2
- );
+ next.set("check", get.attitude(player, trigger.player) > 0 && trigger.player.countCards("h") > 2);
next.ai = function (card) {
if (_status.event.check) return 5 - get.value(card);
return -1;
@@ -20032,15 +17044,9 @@ game.import("character", function () {
if (!list.length) event.finish();
else if (list.length == 1) event._result = { control: list[0] };
else
- target
- .chooseControl(list)
- .set("prompt", "对" + get.translation(player) + "使用一张【杀】或【决斗】。").ai =
- function () {
- return get.effect(player, { name: "sha" }, target, target) >=
- get.effect(player, { name: "juedou" }, target, target)
- ? "sha"
- : "juedou";
- };
+ target.chooseControl(list).set("prompt", "对" + get.translation(player) + "使用一张【杀】或【决斗】。").ai = function () {
+ return get.effect(player, { name: "sha" }, target, target) >= get.effect(player, { name: "juedou" }, target, target) ? "sha" : "juedou";
+ };
"step 3";
target.useCard({ name: result.control, isCard: true }, player, "noai");
},
@@ -20051,11 +17057,7 @@ game.import("character", function () {
player: function (player, target) {
if (target.countCards("h") - player.countCards("h") > 1) return 1;
if (get.damageEffect(target, player, player, player) > 0) return 1;
- if (
- player.hp > 3 ||
- (player.countCards("h", "sha") && player.countCards("h", "shan"))
- )
- return 0;
+ if (player.hp > 3 || (player.countCards("h", "sha") && player.countCards("h", "shan"))) return 0;
if (player.hp > 2) return -1.1;
return -2;
},
@@ -20105,11 +17107,7 @@ game.import("character", function () {
},
forced: true,
filter: function (event, player) {
- return (
- player.maxHp > 0 &&
- !get.is.single() &&
- (event.name != "phase" || game.phaseNumber == 0)
- );
+ return player.maxHp > 0 && !get.is.single() && (event.name != "phase" || game.phaseNumber == 0);
},
content: function () {
player.draw(Math.min(5, player.maxHp), false);
@@ -20215,11 +17213,7 @@ game.import("character", function () {
function (card) {
return get.suit(card) != _status.event.suit2;
},
- "交给" +
- get.translation(target) +
- "一张不为" +
- get.translation(suit2) +
- "花色的牌"
+ "交给" + get.translation(target) + "一张不为" + get.translation(suit2) + "花色的牌"
)
.set("suit2", suit2);
}
@@ -20247,11 +17241,7 @@ game.import("character", function () {
if (
from.side != to.side &&
game.hasPlayer(function (current) {
- return (
- current != to &&
- current.side == to.side &&
- current.hasSkill("zhenwei_three")
- );
+ return current != to && current.side == to.side && current.hasSkill("zhenwei_three");
})
)
return distance + 1;
@@ -20273,24 +17263,14 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseCard(
- get.translation(trigger.player) +
- "的" +
- (trigger.judgestr || "") +
- "判定为" +
- get.translation(trigger.player.judging[0]) +
- "," +
- get.prompt("huanshi_three"),
- "hes",
- function (card) {
- var player = _status.event.player;
- var mod2 = game.checkMod(card, player, "unchanged", "cardEnabled2", player);
- if (mod2 != "unchanged") return mod2;
- var mod = game.checkMod(card, player, "unchanged", "cardRespondable", player);
- if (mod != "unchanged") return mod;
- return true;
- }
- )
+ .chooseCard(get.translation(trigger.player) + "的" + (trigger.judgestr || "") + "判定为" + get.translation(trigger.player.judging[0]) + "," + get.prompt("huanshi_three"), "hes", function (card) {
+ var player = _status.event.player;
+ var mod2 = game.checkMod(card, player, "unchanged", "cardEnabled2", player);
+ if (mod2 != "unchanged") return mod2;
+ var mod = game.checkMod(card, player, "unchanged", "cardRespondable", player);
+ if (mod != "unchanged") return mod;
+ return true;
+ })
.set("ai", function (card) {
var trigger = _status.event.getTrigger();
var player = _status.event.player;
@@ -20320,11 +17300,7 @@ game.import("character", function () {
card.clone.classList.remove("thrownhighlight");
}
}, trigger.player.judging[0]);
- game.addVideo(
- "deletenode",
- player,
- get.cardsInfo([trigger.player.judging[0].clone])
- );
+ game.addVideo("deletenode", player, get.cardsInfo([trigger.player.judging[0].clone]));
}
game.cardsDiscard(trigger.player.judging[0]);
trigger.player.judging[0] = result.cards[0];
@@ -20372,11 +17348,7 @@ game.import("character", function () {
gzjili: {
mod: {
aiOrder: function (player, card, num) {
- if (
- player.isPhaseUsing() &&
- get.subtype(card) == "equip1" &&
- !get.cardtag(card, "gifts")
- ) {
+ if (player.isPhaseUsing() && get.subtype(card) == "equip1" && !get.cardtag(card, "gifts")) {
var range0 = player.getAttackRange();
var range = 0;
var info = get.info(card);
@@ -20393,10 +17365,7 @@ game.import("character", function () {
}
range0 += range;
if (
- range0 ==
- player.getHistory("useCard").length +
- player.getHistory("respond").length +
- 2 &&
+ range0 == player.getHistory("useCard").length + player.getHistory("respond").length + 2 &&
player.countCards("h", function (cardx) {
return get.subtype(cardx) != "equip1" && player.getUseValue(cardx) > 0;
})
@@ -20410,10 +17379,7 @@ game.import("character", function () {
locked: false,
preHidden: true,
filter: function (event, player) {
- return (
- player.getHistory("useCard").length + player.getHistory("respond").length ==
- player.getAttackRange()
- );
+ return player.getHistory("useCard").length + player.getHistory("respond").length == player.getAttackRange();
},
audio: 2,
content: function () {
@@ -20423,8 +17389,7 @@ game.import("character", function () {
threaten: 1.8,
effect: {
target: function (card, player, target, current) {
- let used =
- target.getHistory("useCard").length + target.getHistory("respond").length;
+ let used = target.getHistory("useCard").length + target.getHistory("respond").length;
if (get.subtype(card) == "equip1" && !get.cardtag(card, "gifts")) {
if (player != target || !player.isPhaseUsing()) return;
let range0 = player.getAttackRange();
@@ -20445,10 +17410,7 @@ game.import("character", function () {
let delta = range0 - used;
if (delta < 0) return;
let num = player.countCards("h", function (card) {
- return (
- (get.cardtag(card, "gifts") || get.subtype(card) != "equip1") &&
- player.getUseValue(card) > 0
- );
+ return (get.cardtag(card, "gifts") || get.subtype(card) != "equip1") && player.getUseValue(card) > 0;
});
if (delta == 2 && num > 0) return [1, 3];
if (num >= delta) return "zeroplayertarget";
@@ -20459,7 +17421,7 @@ game.import("character", function () {
!target.mayHaveShan(
player,
"use",
- target.getCards("h", (i) => {
+ target.getCards("h", i => {
return i.hasGaintag("sha_notshan");
})
)
@@ -20469,12 +17431,7 @@ game.import("character", function () {
return [1, (used + 1) / 2];
}
} else if (get.tag(card, "respondSha") > 0) {
- if (
- current < 0 &&
- used == target.getAttackRange() - 1 &&
- target.mayHaveSha(player)
- )
- return [1, (used + 1) / 2];
+ if (current < 0 && used == target.getAttackRange() - 1 && target.mayHaveSha(player)) return [1, (used + 1) / 2];
}
},
},
@@ -20486,11 +17443,7 @@ game.import("character", function () {
locked: false,
mod: {
aiValue: function (player, card, num) {
- if (
- (player.storage.xinshanjia || 0) < 3 &&
- get.type(card) == "equip" &&
- !get.cardtag(card, "gifts")
- ) {
+ if ((player.storage.xinshanjia || 0) < 3 && get.type(card) == "equip" && !get.cardtag(card, "gifts")) {
return num / player.hp;
}
},
@@ -20532,11 +17485,7 @@ game.import("character", function () {
if (result.cards) {
var cards = result.cards;
for (var i = 0; i < result.cards.length; i++) {
- var type = get.type(
- result.cards[i],
- "trick",
- result.cards[i].original == "h" ? player : false
- );
+ var type = get.type(result.cards[i], "trick", result.cards[i].original == "h" ? player : false);
if (type == "basic") bool1 = false;
if (type == "trick") bool2 = false;
}
@@ -20556,12 +17505,7 @@ game.import("character", function () {
},
effect: {
target: function (card, player, target) {
- if (
- player.storage.xinshanjia < 3 &&
- get.type(card) == "equip" &&
- !get.cardtag(card, "gifts")
- )
- return [1, 3];
+ if (player.storage.xinshanjia < 3 && get.type(card) == "equip" && !get.cardtag(card, "gifts")) return [1, 3];
},
},
},
@@ -20612,20 +17556,10 @@ game.import("character", function () {
"step 0";
var num = player.getDamagedHp() + 1;
player
- .chooseTarget(
- "是否发动【誓仇】?",
- "为" + get.translation(trigger.card) + "添加至多" + get.cnNumber(num) + "个目标",
- [1, num],
- function (card, player, target) {
- var evt = _status.event.getTrigger();
- return (
- target != player &&
- !evt.targets.includes(target) &&
- lib.filter.targetEnabled2(evt.card, player, target) &&
- lib.filter.targetInRange(evt.card, player, target)
- );
- }
- )
+ .chooseTarget("是否发动【誓仇】?", "为" + get.translation(trigger.card) + "添加至多" + get.cnNumber(num) + "个目标", [1, num], function (card, player, target) {
+ var evt = _status.event.getTrigger();
+ return target != player && !evt.targets.includes(target) && lib.filter.targetEnabled2(evt.card, player, target) && lib.filter.targetInRange(evt.card, player, target);
+ })
.set("ai", function (target) {
return get.effect(target, _status.event.getTrigger().card, _status.event.player);
});
@@ -20647,10 +17581,7 @@ game.import("character", function () {
event.card.name == "sha" &&
player.isDamaged() &&
game.hasPlayer(function (current) {
- return (
- !event.targets.includes(current) &&
- lib.filter.filterTarget(event.card, player, current)
- );
+ return !event.targets.includes(current) && lib.filter.filterTarget(event.card, player, current);
})
);
},
@@ -20660,25 +17591,13 @@ game.import("character", function () {
var num = Math.min(
player.getDamagedHp(),
game.countPlayer(function (current) {
- return (
- !trigger.targets.includes(current) &&
- lib.filter.filterTarget(trigger.card, player, current)
- );
+ return !trigger.targets.includes(current) && lib.filter.filterTarget(trigger.card, player, current);
})
);
- player.chooseTarget(
- "是否发动【誓仇】,令至多" + get.cnNumber(num) + "名其他角色也成为此【杀】的目标?",
- [1, num],
- function (card, player, target) {
- var evt = _status.event.getTrigger();
- return (
- target != player &&
- !evt.targets.includes(target) &&
- lib.filter.targetEnabled2(evt.card, player, target) &&
- lib.filter.targetInRange(evt.card, player, target)
- );
- }
- ).ai = function (target) {
+ player.chooseTarget("是否发动【誓仇】,令至多" + get.cnNumber(num) + "名其他角色也成为此【杀】的目标?", [1, num], function (card, player, target) {
+ var evt = _status.event.getTrigger();
+ return target != player && !evt.targets.includes(target) && lib.filter.targetEnabled2(evt.card, player, target) && lib.filter.targetInRange(evt.card, player, target);
+ }).ai = function (target) {
return get.effect(target, { name: "sha" }, _status.event.player);
};
"step 1";
@@ -20739,17 +17658,13 @@ game.import("character", function () {
if (_status.event.goon) return 20 - get.value(card);
return 7 - get.value(card);
})
- .set(
- "goon",
- player.needsToDiscard() || player.getExpansions("new_xingwu").length > 1
- );
+ .set("goon", player.needsToDiscard() || player.getExpansions("new_xingwu").length > 1);
"step 1";
if (result.bool) {
player.logSkill("new_xingwu");
var cards = result.cards;
player.addToExpansion(cards, player, "give").gaintag.add("new_xingwu");
- if (player.hasSkill("new_luoyan"))
- player.addAdditionalSkill("new_luoyan", ["oltianxiang", "liuli"]);
+ if (player.hasSkill("new_luoyan")) player.addAdditionalSkill("new_luoyan", ["oltianxiang", "liuli"]);
} else event.finish();
"step 2";
game.delayx();
@@ -20772,12 +17687,7 @@ game.import("character", function () {
.set("ai", function () {
var player = _status.event.player;
if (player.getExpansions("new_xingwu").length > 2) return 0;
- if (
- player.isTurnedOver() ||
- player.identity == "fan" ||
- player.getEnemies().length == 1
- )
- return 0;
+ if (player.isTurnedOver() || player.identity == "fan" || player.getEnemies().length == 1) return 0;
return "cancel2";
});
} else event.finish();
@@ -20788,12 +17698,7 @@ game.import("character", function () {
event.goto(5);
return;
}
- if (player.getExpansions("new_xingwu").length > 3)
- player.chooseButton(
- ["请选择要移去的“星舞”牌", player.getExpansions("new_xingwu")],
- 3,
- true
- );
+ if (player.getExpansions("new_xingwu").length > 3) player.chooseButton(["请选择要移去的“星舞”牌", player.getExpansions("new_xingwu")], 3, true);
else
event._result = {
bool: true,
@@ -20810,25 +17715,18 @@ game.import("character", function () {
player.chooseToDiscard(true, "h", 2);
player.turnOver();
"step 6";
- player
- .chooseTarget(
- "请选择【星舞】的目标",
- "弃置其装备区内的所有牌。然后对其造成2点伤害(目标为女性角色则改为1点)",
- true,
- lib.filter.notMe
- )
- .set("ai", function (target) {
- return (
- -get.attitude(_status.event.player, target) *
- Math.sqrt(
- 4 +
- target.countCards("e", function (card) {
- return get.value(card, target) > 0;
- })
- ) *
- (target.hasSex("female") ? 1 : 2)
- );
- });
+ player.chooseTarget("请选择【星舞】的目标", "弃置其装备区内的所有牌。然后对其造成2点伤害(目标为女性角色则改为1点)", true, lib.filter.notMe).set("ai", function (target) {
+ return (
+ -get.attitude(_status.event.player, target) *
+ Math.sqrt(
+ 4 +
+ target.countCards("e", function (card) {
+ return get.value(card, target) > 0;
+ })
+ ) *
+ (target.hasSex("female") ? 1 : 2)
+ );
+ });
"step 7";
if (result.bool && result.targets && result.targets.length) {
var target = result.targets[0];
@@ -20844,8 +17742,7 @@ game.import("character", function () {
},
new_luoyan: {
init: function (player) {
- if (player.getExpansions("new_xingwu").length)
- player.addAdditionalSkill("new_luoyan", ["oltianxiang", "liuli"]);
+ if (player.getExpansions("new_xingwu").length) player.addAdditionalSkill("new_luoyan", ["oltianxiang", "liuli"]);
},
onremove: function (player) {
player.removeAdditionalSkill("new_luoyan");
@@ -20863,12 +17760,7 @@ game.import("character", function () {
global: "phaseUseBegin",
},
filter: function (event, player) {
- return (
- event.player != player &&
- event.player.isIn() &&
- player.countCards("he") > 0 &&
- event.player.inRange(player)
- );
+ return event.player != player && event.player.isIn() && player.countCards("he") > 0 && event.player.inRange(player);
},
direct: true,
derivation: ["new_zhixi"],
@@ -20902,12 +17794,7 @@ game.import("character", function () {
target.addTempSkill("new_meibu_range", "phaseUseAfter");
target.markAuto("new_meibu_range", player);
}
- target.markSkillCharacter(
- "new_meibu",
- player,
- "魅步",
- "锁定技,出牌阶段,你至多可使用X张牌,你使用了锦囊牌后不能再使用牌(X为你的体力值)。"
- );
+ target.markSkillCharacter("new_meibu", player, "魅步", "锁定技,出牌阶段,你至多可使用X张牌,你使用了锦囊牌后不能再使用牌(X为你的体力值)。");
}
},
ai: {
@@ -20934,7 +17821,7 @@ game.import("character", function () {
player: "phaseUseBegin",
},
filter: function (event, player) {
- return game.hasPlayer((current) => {
+ return game.hasPlayer(current => {
if (current == player) return current.getEquips(2).length > 0;
return current.countCards("e") > 0;
});
@@ -20943,14 +17830,10 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("new_mumu"),
- "弃置一名其他角色装备区内的一张牌,或者获得一名角色装备区内的防具牌",
- function (card, player, target) {
- if (target == player) return target.getEquips(2).length > 0;
- return target.countCards("e") > 0;
- }
- )
+ .chooseTarget(get.prompt("new_mumu"), "弃置一名其他角色装备区内的一张牌,或者获得一名角色装备区内的防具牌", function (card, player, target) {
+ if (target == player) return target.getEquips(2).length > 0;
+ return target.countCards("e") > 0;
+ })
.set("ai", function (target) {
var player = _status.event.player;
var att = get.attitude(player, target);
@@ -20993,20 +17876,16 @@ game.import("character", function () {
new_zhixi: {
mod: {
cardEnabled: function (card, player) {
- if (player.storage.new_zhixi2 || player.countMark("new_zhixi") >= player.hp)
- return false;
+ if (player.storage.new_zhixi2 || player.countMark("new_zhixi") >= player.hp) return false;
},
cardUsable: function (card, player) {
- if (player.storage.new_zhixi2 || player.countMark("new_zhixi") >= player.hp)
- return false;
+ if (player.storage.new_zhixi2 || player.countMark("new_zhixi") >= player.hp) return false;
},
cardRespondable: function (card, player) {
- if (player.storage.new_zhixi2 || player.countMark("new_zhixi") >= player.hp)
- return false;
+ if (player.storage.new_zhixi2 || player.countMark("new_zhixi") >= player.hp) return false;
},
cardSavable: function (card, player) {
- if (player.storage.new_zhixi2 || player.countMark("new_zhixi") >= player.hp)
- return false;
+ if (player.storage.new_zhixi2 || player.countMark("new_zhixi") >= player.hp) return false;
},
},
trigger: {
@@ -21052,11 +17931,7 @@ game.import("character", function () {
check: function (event, player) {
if (
game.hasPlayer(function (current) {
- return (
- current != player &&
- current.isMinHandcard() &&
- get.attitude(player, current) > 0
- );
+ return current != player && current.isMinHandcard() && get.attitude(player, current) > 0;
})
) {
return true;
@@ -21091,13 +17966,9 @@ game.import("character", function () {
event.finish();
} else {
player
- .chooseTarget(
- true,
- "清忠:选择一名手牌最少的角色与其交换手牌",
- function (card, player, target) {
- return target.isMinHandcard();
- }
- )
+ .chooseTarget(true, "清忠:选择一名手牌最少的角色与其交换手牌", function (card, player, target) {
+ return target.isMinHandcard();
+ })
.set("ai", function (target) {
return get.attitude(_status.event.player, target);
});
@@ -21162,11 +18033,7 @@ game.import("character", function () {
if (
!player.hasShan() &&
!game.hasPlayer(function (current) {
- return (
- player.canUse("sha", current) &&
- current.hp == 1 &&
- get.effect(current, { name: "sha" }, player, player) > 0
- );
+ return player.canUse("sha", current) && current.hp == 1 && get.effect(current, { name: "sha" }, player, player) > 0;
})
) {
return 0;
@@ -21258,8 +18125,7 @@ game.import("character", function () {
audio: "zishu",
forced: true,
filter: function (event, player) {
- if (_status.currentPhase != player || event.getg(player).length == 0)
- return false;
+ if (_status.currentPhase != player || event.getg(player).length == 0) return false;
return event.getParent(2).name != "zishu_draw";
},
content: function () {
@@ -21293,13 +18159,9 @@ game.import("character", function () {
"step 0";
event.type = get.type(trigger.card, "trick");
player
- .chooseTarget(
- get.prompt("xinyingyuan"),
- "令一名其他角色从牌堆中获得一张" + get.translation(event.type) + "牌",
- function (card, player, target) {
- return target != player;
- }
- )
+ .chooseTarget(get.prompt("xinyingyuan"), "令一名其他角色从牌堆中获得一张" + get.translation(event.type) + "牌", function (card, player, target) {
+ return target != player;
+ })
.set("ai", function (target) {
var att = get.attitude(_status.event.player, target);
if (att < 3) return 0;
@@ -21335,13 +18197,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("yingyuan"),
- "将" + get.translation(trigger.cards) + "交给一名其他角色",
- function (card, player, target) {
- return target != player;
- }
- )
+ .chooseTarget(get.prompt("yingyuan"), "将" + get.translation(trigger.cards) + "交给一名其他角色", function (card, player, target) {
+ return target != player;
+ })
.set("ai", function (target) {
if (target.hasJudge("lebu")) return 0;
let att = get.attitude(_status.event.player, target),
@@ -21433,18 +18291,14 @@ game.import("character", function () {
if (cardname == "wuzhong") {
if (
player.needsToDiscard(2, (i, player) => {
- return (
- !ui.selected.cards.includes(i) && !player.canIgnoreHandcard(i)
- );
+ return !ui.selected.cards.includes(i) && !player.canIgnoreHandcard(i);
})
)
return 10 - get.value(card, player, "raw");
} else if (cardname == "guohe") {
if (
player.needsToDiscard(-1, (i, player) => {
- return (
- !ui.selected.cards.includes(i) && !player.canIgnoreHandcard(i)
- );
+ return !ui.selected.cards.includes(i) && !player.canIgnoreHandcard(i);
})
)
return 10 - get.value(card, player, "raw");
@@ -21513,26 +18367,15 @@ game.import("character", function () {
},
forced: true,
filter: function (event, player) {
- return (
- game.hasPlayer((current) => current != player) &&
- (event.name != "phase" || game.phaseNumber == 0)
- );
+ return game.hasPlayer(current => current != player) && (event.name != "phase" || game.phaseNumber == 0);
},
audio: 6,
content: function () {
"step 0";
player
- .chooseTarget(
- "请选择【先辅】的目标",
- lib.translate.xianfu_info,
- true,
- function (card, player, target) {
- return (
- target != player &&
- (!player.storage.xianfu2 || !player.storage.xianfu2.includes(target))
- );
- }
- )
+ .chooseTarget("请选择【先辅】的目标", lib.translate.xianfu_info, true, function (card, player, target) {
+ return target != player && (!player.storage.xianfu2 || !player.storage.xianfu2.includes(target));
+ })
.set("ai", function (target) {
var att = get.attitude(_status.event.player, target);
if (att > 0) return att + 1;
@@ -21561,13 +18404,7 @@ game.import("character", function () {
trigger: { global: ["damageEnd", "recoverEnd"] },
forced: true,
filter: function (event, player) {
- if (
- event.player.isDead() ||
- !player.storage.xianfu2 ||
- !player.storage.xianfu2.includes(event.player) ||
- event.num <= 0
- )
- return false;
+ if (event.player.isDead() || !player.storage.xianfu2 || !player.storage.xianfu2.includes(event.player) || event.num <= 0) return false;
if (event.name == "damage") return true;
return player.isDamaged();
},
@@ -21600,10 +18437,7 @@ game.import("character", function () {
trigger: { global: "dieBegin" },
silent: true,
filter: function (event, player) {
- return (
- event.player == player ||
- (player.storage.xianfu2 && player.storage.xianfu2.includes(player))
- );
+ return event.player == player || (player.storage.xianfu2 && player.storage.xianfu2.includes(player));
},
content: function () {
if (player == trigger.player) lib.skill.xianfu2.onremove(player);
@@ -21647,17 +18481,13 @@ game.import("character", function () {
} else {
var next = player.chooseTarget("令一名角色摸一张牌");
if (player.storage.xianfu2 && player.storage.xianfu2.length) {
- next.set(
- "prompt2",
- "(若目标为" + get.translation(player.storage.xianfu2) + "则改为摸两张牌)"
- );
+ next.set("prompt2", "(若目标为" + get.translation(player.storage.xianfu2) + "则改为摸两张牌)");
}
next.set("ai", function (target) {
var player = _status.event.player;
var att = get.attitude(player, target) / Math.sqrt(1 + target.countCards("h"));
if (target.hasSkillTag("nogain")) att /= 10;
- if (player.storage.xianfu2 && player.storage.xianfu2.includes(target))
- return att * 2;
+ if (player.storage.xianfu2 && player.storage.xianfu2.includes(target)) return att * 2;
return att;
});
}
@@ -21716,9 +18546,7 @@ game.import("character", function () {
filter: function (event, player) {
return (
event.card &&
- (get.type(event.card) == "trick" ||
- (get.type(event.card) == "basic" &&
- !["shan", "tao", "jiu", "du"].includes(event.card.name))) &&
+ (get.type(event.card) == "trick" || (get.type(event.card) == "basic" && !["shan", "tao", "jiu", "du"].includes(event.card.name))) &&
game.hasPlayer(function (current) {
return current != player && get.distance(current, player) <= 1;
})
@@ -21756,13 +18584,7 @@ game.import("character", function () {
return 0;
},
filterCard: function (card) {
- return (
- get.name(card) == "sha" ||
- (get.type(card, "trick") == "trick" &&
- get.color(card) == "black" &&
- !get.info(card).multitarget &&
- get.info(card).enable)
- );
+ return get.name(card) == "sha" || (get.type(card, "trick") == "trick" && get.color(card) == "black" && !get.info(card).multitarget && get.info(card).enable);
},
filterTarget: function (card, player, target) {
return (
@@ -21779,10 +18601,7 @@ game.import("character", function () {
delay: false,
content: function () {
"step 0";
- player.showCards(
- get.translation(player) + "对" + get.translation(target) + "发动了【连计】",
- cards
- );
+ player.showCards(get.translation(player) + "对" + get.translation(target) + "发动了【连计】", cards);
"step 1";
var equip1 = get.cardPile2(function (card) {
return get.subtype(card) == "equip1";
@@ -21812,19 +18631,7 @@ game.import("character", function () {
.chooseControl(function () {
return 0;
})
- .set("choiceList", [
- "对除" +
- get.translation(player) +
- "以外的角色使用" +
- get.translation(cards) +
- ",并将装备区里的武器牌交给该牌的一个目标角色",
- "视为" +
- get.translation(player) +
- "对你使用" +
- get.translation(cards) +
- ",并将装备区内的武器牌交给" +
- get.translation(player),
- ]);
+ .set("choiceList", ["对除" + get.translation(player) + "以外的角色使用" + get.translation(cards) + ",并将装备区里的武器牌交给该牌的一个目标角色", "视为" + get.translation(player) + "对你使用" + get.translation(cards) + ",并将装备区内的武器牌交给" + get.translation(player)]);
} else if (bool1) {
event.directindex = 0;
} else if (bool2) {
@@ -21884,17 +18691,10 @@ game.import("character", function () {
event.goto(2);
} else {
player
- .chooseTarget(
- select,
- "选择" + get.translation(card) + "的目标",
- true,
- function (cardx, player, target) {
- var card = _status.event.card;
- return (
- _status.event.targets.includes(target) && player.canUse(card, target)
- );
- }
- )
+ .chooseTarget(select, "选择" + get.translation(card) + "的目标", true, function (cardx, player, target) {
+ var card = _status.event.card;
+ return _status.event.targets.includes(target) && player.canUse(card, target);
+ })
.set("ai", function (target) {
var card = _status.event.card;
var player = _status.event.player;
@@ -21916,13 +18716,9 @@ game.import("character", function () {
}
if (event.list.length > 1) {
player
- .chooseTarget(
- true,
- "将" + get.translation(equip1) + "交给一名角色",
- function (card, player, target) {
- return _status.event.list.includes(target);
- }
- )
+ .chooseTarget(true, "将" + get.translation(equip1) + "交给一名角色", function (card, player, target) {
+ return _status.event.list.includes(target);
+ })
.set("ai", function (target) {
return get.attitude(player, target);
})
@@ -21953,10 +18749,7 @@ game.import("character", function () {
var bool = card.name != "sha";
if (
game.hasPlayer(function (current) {
- return (
- target.canUse(card, current, bool) &&
- get.effect(current, card, target, player) > 0
- );
+ return target.canUse(card, current, bool) && get.effect(current, card, target, player) > 0;
})
) {
var num = 1;
@@ -21979,11 +18772,7 @@ game.import("character", function () {
forced: true,
popup: false,
filter: function (event, player) {
- return (
- event.source != player &&
- event.getParent(2).name == "useCard" &&
- event.getParent(3).name == "wylianjiInserted"
- );
+ return event.source != player && event.getParent(2).name == "useCard" && event.getParent(3).name == "wylianjiInserted";
},
init: function (player) {
player.storage.moucheng = 0;
@@ -22056,11 +18845,7 @@ game.import("character", function () {
return ui.create.dialog("矜功", [list, "vcard"]);
},
filter: function (button, player) {
- return lib.filter.filterCard(
- { name: button.link[2] },
- player,
- _status.event.getParent()
- );
+ return lib.filter.filterCard({ name: button.link[2] }, player, _status.event.getParent());
},
check: function (button) {
return _status.event.player.getUseValue({ name: button.link[2] });
@@ -22090,8 +18875,7 @@ game.import("character", function () {
order: 2,
result: {
player: function (player) {
- if ((player.hp <= 2 || player.needsToDiscard()) && !player.getStat("damage"))
- return 0;
+ if ((player.hp <= 2 || player.needsToDiscard()) && !player.getStat("damage")) return 0;
return 1;
},
},
@@ -22121,8 +18905,7 @@ game.import("character", function () {
"step 1";
if (target.countCards("h", "shan")) {
player.viewHandcards(target);
- if (player.canUse({ name: "sha", isCard: true }, target, false))
- player.useCard({ name: "sha", isCard: true }, target, false);
+ if (player.canUse({ name: "sha", isCard: true }, target, false)) player.useCard({ name: "sha", isCard: true }, target, false);
player.storage.weikui2 = target;
player.addTempSkill("weikui2");
} else {
@@ -22169,14 +18952,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("lizhan"),
- "令任意名已受伤的角色各摸一张牌",
- [1, Infinity],
- function (card, player, target) {
- return target.isDamaged();
- }
- )
+ .chooseTarget(get.prompt("lizhan"), "令任意名已受伤的角色各摸一张牌", [1, Infinity], function (card, player, target) {
+ return target.isDamaged();
+ })
.set("ai", function (target) {
return get.attitude(player, target);
});
@@ -22209,8 +18987,7 @@ game.import("character", function () {
if (!result.bool) event.finish();
event.num = result.num1;
"step 2";
- if (num <= 5 && target.countGainableCards(player, "he") > 0)
- player.gainPlayerCard(target, "he", true);
+ if (num <= 5 && target.countGainableCards(player, "he") > 0) player.gainPlayerCard(target, "he", true);
"step 3";
if (num <= 9) {
var card = get.cardPile2(function (x) {
@@ -22234,12 +19011,7 @@ game.import("character", function () {
var ps = player.getCards("h").sort(sort);
var ts = target.getCards("h").sort(sort);
if (ps[0].number > ts[0].number) {
- var effect = get.effect(
- target,
- { name: "sha", nature: "thunder" },
- player,
- player
- );
+ var effect = get.effect(target, { name: "sha", nature: "thunder" }, player, player);
if (ps[0].number < 6 && target.countCards("he") > 1) effect -= 2;
if (ps[0].number < 10) effect -= 1;
return effect;
@@ -22294,10 +19066,7 @@ game.import("character", function () {
.chooseControl(function () {
return 1;
})
- .set("choiceList", [
- "令" + get.translation(target) + "不能使用或打出手牌直到回合结束",
- "视为对" + get.translation(target) + "使用一张杀(不计入次数限制)",
- ]);
+ .set("choiceList", ["令" + get.translation(target) + "不能使用或打出手牌直到回合结束", "视为对" + get.translation(target) + "使用一张杀(不计入次数限制)"]);
} else {
var evt = _status.event.getParent("phaseUse");
if (evt && evt.name == "phaseUse") {
@@ -22347,17 +19116,9 @@ game.import("character", function () {
filter: function (event, player) {
if (_status.currentPhase != player) return false;
if (!_status.event.getParent("phaseUse")) return false;
- if (
- event.card &&
- (event.card.name == "sha" || event.card.name == "juedou") &&
- event.getParent().name == event.card.name
- ) {
+ if (event.card && (event.card.name == "sha" || event.card.name == "juedou") && event.getParent().name == event.card.name) {
if (get.mode() == "guozhan") {
- return (
- (event.player.identity != "qun" || player.identity == "ye") &&
- !event.player.isUnseen() &&
- event.player.hasViceCharacter()
- );
+ return (event.player.identity != "qun" || player.identity == "ye") && !event.player.isUnseen() && event.player.hasViceCharacter();
} else {
var info = lib.character[event.player.name];
if (!info) return false;
@@ -22373,20 +19134,11 @@ game.import("character", function () {
logTarget: "player",
check: function (event, player) {
if (get.mode() == "guozhan") {
- if (
- !event.player.isUnseen(1) &&
- get.guozhanRank(event.player.name2, event.player) < 4
- )
- return false;
+ if (!event.player.isUnseen(1) && get.guozhanRank(event.player.name2, event.player) < 4) return false;
}
if (event.player.hasSkill("subplayer")) return false;
if (get.attitude(player, event.player) < 0) {
- if (
- event.player.hp == 1 &&
- event.player.countCards("e") < 2 &&
- event.player.name2 != "gz_pangtong"
- )
- return false;
+ if (event.player.hp == 1 && event.player.countCards("e") < 2 && event.player.name2 != "gz_pangtong") return false;
return true;
}
return false;
@@ -22397,16 +19149,12 @@ game.import("character", function () {
if (trigger.player.countCards("e")) {
trigger.player
.chooseControl(function (event, player) {
- if (get.mode() == "guozhan" && get.guozhanRank(player.name2, player) < 4)
- return 1;
+ if (get.mode() == "guozhan" && get.guozhanRank(player.name2, player) < 4) return 1;
if (player.hp == 1) return 1;
if (player.hp == 2 && player.countCards("e") >= 2) return 1;
return 0;
})
- .set("choiceList", [
- "弃置装备区内的所有牌并失去1点体力",
- get.mode() == "guozhan" ? "移除副将牌" : "随机移除武将牌上的一个技能",
- ]);
+ .set("choiceList", ["弃置装备区内的所有牌并失去1点体力", get.mode() == "guozhan" ? "移除副将牌" : "随机移除武将牌上的一个技能"]);
} else {
event._result = { index: 1 };
}
@@ -22440,10 +19188,7 @@ game.import("character", function () {
trigger: { player: "damageEnd" },
preHidden: true,
check: function (event, player) {
- return (
- get.attitude(player, _status.currentPhase) < 0 ||
- !_status.currentPhase.needsToDiscard(2)
- );
+ return get.attitude(player, _status.currentPhase) < 0 || !_status.currentPhase.needsToDiscard(2);
},
filter: function (event) {
return _status.currentPhase && _status.currentPhase.isIn() && event.num > 0;
@@ -22508,10 +19253,7 @@ game.import("character", function () {
audio: "hengjiang",
trigger: { player: "damageEnd" },
check: function (event, player) {
- return (
- get.attitude(player, _status.currentPhase) < 0 ||
- !_status.currentPhase.needsToDiscard(2)
- );
+ return get.attitude(player, _status.currentPhase) < 0 || !_status.currentPhase.needsToDiscard(2);
},
filter: function (event) {
return _status.currentPhase && _status.currentPhase.isIn() && event.num > 0;
@@ -22531,14 +19273,9 @@ game.import("character", function () {
player.addTempSkill("rehengjiang3");
"step 2";
if (event.count && player.hasSkill("rehengjiang")) {
- player
- .chooseBool(get.prompt2("rehengjiang", _status.currentPhase))
- .set("ai", function () {
- return lib.skill.rehengjiang.check(
- _status.event.getTrigger(),
- _status.event.player
- );
- });
+ player.chooseBool(get.prompt2("rehengjiang", _status.currentPhase)).set("ai", function () {
+ return lib.skill.rehengjiang.check(_status.event.getTrigger(), _status.event.player);
+ });
} else event.finish();
"step 3";
if (result.bool) {
@@ -22573,11 +19310,7 @@ game.import("character", function () {
if (!event.player.countMark("rehengjiang2")) return false;
if (
event.player.hasHistory("lose", function (evt) {
- return (
- evt.type == "discard" &&
- evt.cards2.length > 0 &&
- evt.getParent("phaseDiscard").player == event.player
- );
+ return evt.type == "discard" && evt.cards2.length > 0 && evt.getParent("phaseDiscard").player == event.player;
})
)
return false;
@@ -22791,8 +19524,7 @@ game.import("character", function () {
if (ui.selected.cards.length >= Math.ceil(list.length / 2)) return 0;
var value = get.value(card);
if (_status.event.getParent().player.isHealthy()) {
- value +=
- (get.tag(card, "damage") ? 1.5 : 0) + (get.tag(card, "draw") ? 2 : 0);
+ value += (get.tag(card, "damage") ? 1.5 : 0) + (get.tag(card, "draw") ? 2 : 0);
}
return value;
}
@@ -22833,10 +19565,7 @@ game.import("character", function () {
.chooseControl(function (event, player) {
return _status.event.choice;
})
- .set("choiceList", [
- "获得" + get.translation(event.target) + "展示的牌",
- "获得" + get.translation(event.target) + "未展示的牌",
- ])
+ .set("choiceList", ["获得" + get.translation(event.target) + "展示的牌", "获得" + get.translation(event.target) + "未展示的牌"])
.set("choice", choice);
"step 5";
if (result.index == 0) {
@@ -22859,10 +19588,7 @@ game.import("character", function () {
if (info.multitarget) return false;
if (event.targets.length > 1) return true;
return game.hasPlayer(function (current) {
- return (
- !event.targets.includes(current) &&
- lib.filter.targetEnabled2(event.card, event.player, current)
- );
+ return !event.targets.includes(current) && lib.filter.targetEnabled2(event.card, event.player, current);
});
},
direct: true,
@@ -22870,24 +19596,14 @@ game.import("character", function () {
"step 0";
var bool1 = trigger.targets.length > 1;
var bool2 = game.hasPlayer(function (current) {
- return (
- !trigger.targets.includes(current) &&
- lib.filter.targetEnabled2(trigger.card, trigger.player, current)
- );
+ return !trigger.targets.includes(current) && lib.filter.targetEnabled2(trigger.card, trigger.player, current);
});
if (bool1 && bool2) {
player
- .chooseControlList(
- get.prompt("sheyan"),
- [
- "为" + get.translation(trigger.card) + "增加一个目标",
- "为" + get.translation(trigger.card) + "减少一个目标",
- ],
- function (event, player) {
- if (_status.event.add) return 0;
- return 1;
- }
- )
+ .chooseControlList(get.prompt("sheyan"), ["为" + get.translation(trigger.card) + "增加一个目标", "为" + get.translation(trigger.card) + "减少一个目标"], function (event, player) {
+ if (_status.event.add) return 0;
+ return 1;
+ })
.set("add", get.effect(player, trigger.card, trigger.player, player) >= 0);
} else if (bool2) {
event.type = "add";
@@ -22909,38 +19625,22 @@ game.import("character", function () {
"step 2";
if (event.type == "add") {
player
- .chooseTarget(
- event.unchosen ? get.prompt("sheyan") : null,
- "为" + get.translation(trigger.card) + "增加一个目标",
- function (card, player, target) {
- var trigger = _status.event.getTrigger();
- return (
- !trigger.targets.includes(target) &&
- lib.filter.targetEnabled2(trigger.card, trigger.player, target)
- );
- }
- )
+ .chooseTarget(event.unchosen ? get.prompt("sheyan") : null, "为" + get.translation(trigger.card) + "增加一个目标", function (card, player, target) {
+ var trigger = _status.event.getTrigger();
+ return !trigger.targets.includes(target) && lib.filter.targetEnabled2(trigger.card, trigger.player, target);
+ })
.set("ai", function (target) {
var trigger = _status.event.getTrigger();
return get.effect(target, trigger.card, trigger.player, _status.event.player);
});
} else {
player
- .chooseTarget(
- event.unchosen ? get.prompt("sheyan") : null,
- "为" + get.translation(trigger.card) + "减少一个目标",
- function (card, player, target) {
- return _status.event.targets.includes(target);
- }
- )
+ .chooseTarget(event.unchosen ? get.prompt("sheyan") : null, "为" + get.translation(trigger.card) + "减少一个目标", function (card, player, target) {
+ return _status.event.targets.includes(target);
+ })
.set("ai", function (target) {
var trigger = _status.event.getTrigger();
- return -get.effect(
- target,
- trigger.card,
- trigger.player,
- _status.event.player
- );
+ return -get.effect(target, trigger.card, trigger.player, _status.event.player);
})
.set("targets", trigger.targets);
}
@@ -23001,10 +19701,7 @@ game.import("character", function () {
if (get.attitude(player, target) < 0) return 1;
return 0;
})
- .set("choiceList", [
- "令" + get.translation(event.target) + "摸一张牌",
- "令" + get.translation(event.target) + "弃置一张手牌",
- ]);
+ .set("choiceList", ["令" + get.translation(event.target) + "摸一张牌", "令" + get.translation(event.target) + "弃置一张手牌"]);
} else {
event.directfalse = true;
}
@@ -23024,10 +19721,7 @@ game.import("character", function () {
event.finish();
return;
}
- var next = player.chooseCard(
- "是否交给" + get.translation(event.target) + "一张牌?",
- "he"
- );
+ var next = player.chooseCard("是否交给" + get.translation(event.target) + "一张牌?", "he");
next.set("ai", function (card) {
if (get.position(card) != "h") return 0;
if (_status.event.shan && card.name == "shan") {
@@ -23038,11 +19732,7 @@ game.import("character", function () {
}
return -get.value(card, _status.event.player, "raw");
});
- if (
- get.attitude(player, event.target) > 1 &&
- player.countCards("h", "shan") > 1 &&
- player.countCards("h") > event.target.countCards("h")
- ) {
+ if (get.attitude(player, event.target) > 1 && player.countCards("h", "shan") > 1 && player.countCards("h") > event.target.countCards("h")) {
next.set("shan", true);
}
if (get.attitude(player, event.target) > 0 && player.needsToDiscard()) {
@@ -23070,10 +19760,7 @@ game.import("character", function () {
return !stat || !stat.includes(target);
},
filter: function (event, player) {
- return (
- player.countCards("h") > 0 &&
- game.hasPlayer((current) => lib.skill.fuman.filterTarget(null, player, current))
- );
+ return player.countCards("h") > 0 && game.hasPlayer(current => lib.skill.fuman.filterTarget(null, player, current));
},
discard: false,
lose: false,
@@ -23172,12 +19859,7 @@ game.import("character", function () {
player.addAdditionalSkill("qizhou", ["mashu", "reyingzi", "reduanbing"]);
break;
case 4:
- player.addAdditionalSkill("qizhou", [
- "mashu",
- "reyingzi",
- "reduanbing",
- "fenwei",
- ]);
+ player.addAdditionalSkill("qizhou", ["mashu", "reyingzi", "reduanbing", "fenwei"]);
break;
}
},
@@ -23201,10 +19883,7 @@ game.import("character", function () {
player.discardPlayerCard(target, true);
"step 1";
if (result.bool) {
- if (
- get.name(result.cards[0], result.cards[0].original == "h" ? player : false) ==
- "shan"
- ) {
+ if (get.name(result.cards[0], result.cards[0].original == "h" ? player : false) == "shan") {
player.viewHandcards(target);
} else {
target.viewHandcards(player);
@@ -23244,27 +19923,16 @@ game.import("character", function () {
return 1;
}
var geteff = function (current) {
- return (
- player.canUse("sha", current, false, true) &&
- get.effect(current, { name: "sha" }, player, player) > 0
- );
+ return player.canUse("sha", current, false, true) && get.effect(current, { name: "sha" }, player, player) > 0;
};
if (player.hasSha() && geteff(target)) {
var num = game.countPlayer(function (current) {
- return (
- current != player &&
- get.distance(player, current) <= 1 &&
- geteff(current)
- );
+ return current != player && get.distance(player, current) <= 1 && geteff(current);
});
if (num == 0) {
if (
game.hasPlayer(function (current) {
- return (
- player.canUse("sha", current) &&
- geteff(current) &&
- current != target
- );
+ return player.canUse("sha", current) && geteff(current) && current != target;
})
) {
return 1;
@@ -23299,28 +19967,16 @@ game.import("character", function () {
filter: function (event, player) {
if (event.card.name != "sha") return false;
return game.hasPlayer(function (current) {
- return (
- !event.targets.includes(current) &&
- get.distance(player, current) <= 1 &&
- player.canUse(event.card, current)
- );
+ return !event.targets.includes(current) && get.distance(player, current) <= 1 && player.canUse(event.card, current);
});
},
direct: true,
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("duanbing"),
- "为" + get.translation(trigger.card) + "增加一个目标",
- function (card, player, target) {
- return (
- !_status.event.sourcex.includes(target) &&
- get.distance(player, target) <= 1 &&
- player.canUse(_status.event.card, target)
- );
- }
- )
+ .chooseTarget(get.prompt("duanbing"), "为" + get.translation(trigger.card) + "增加一个目标", function (card, player, target) {
+ return !_status.event.sourcex.includes(target) && get.distance(player, target) <= 1 && player.canUse(_status.event.card, target);
+ })
.set("sourcex", trigger.targets)
.set("ai", function (target) {
var player = _status.event.player;
@@ -23350,12 +20006,7 @@ game.import("character", function () {
}
if (
game.hasPlayer(function (current) {
- return (
- current != target &&
- get.distance(player, current) <= 1 &&
- player.canUse(card, current) &&
- get.effect(current, card, player, player) > 0
- );
+ return current != target && get.distance(player, current) <= 1 && player.canUse(card, current) && get.effect(current, card, player, player) > 0;
})
) {
delete player._duanbingtmp;
@@ -23491,15 +20142,7 @@ game.import("character", function () {
skills.addArray(
(lib.character[i][3] || []).filter(function (skill) {
var info = get.info(skill);
- return (
- info &&
- !info.zhuSkill &&
- !info.limited &&
- !info.juexingji &&
- !info.hiddenSkill &&
- !info.charlotte &&
- !info.dutySkill
- );
+ return info && !info.zhuSkill && !info.limited && !info.juexingji && !info.hiddenSkill && !info.charlotte && !info.dutySkill;
})
);
}
@@ -23524,11 +20167,7 @@ game.import("character", function () {
if (!event._result) event._result = {};
event._result.skills = [];
var rSkill = event._result.skills;
- var dialog = ui.create.dialog(
- "请选择获得至多两个技能",
- [list, "character"],
- "hidden"
- );
+ var dialog = ui.create.dialog("请选择获得至多两个技能", [list, "character"], "hidden");
event.dialog = dialog;
var table = document.createElement("div");
table.classList.add("add-setting");
@@ -23696,26 +20335,21 @@ game.import("character", function () {
player = _status.event.player;
if (!player || !player.storage) return 0;
if (
- Object.keys(player.storage).some((i) => {
+ Object.keys(player.storage).some(i => {
return typeof i == "string" && i.indexOf("fuhan") != -1;
})
)
return 4;
return 1;
}
- const awakened = Object.keys(player.storage).some(
- (i) => typeof i == "string" && i.indexOf("fuhan") != -1
- );
+ const awakened = Object.keys(player.storage).some(i => typeof i == "string" && i.indexOf("fuhan") != -1);
if (_status.event.type == "phase") {
var max = 0;
var list = ["sha", "tao", "jiu"];
var map = { sha: "shan", tao: "jiu", jiu: "tao" };
for (var i = 0; i < list.length; i++) {
var name = list[i];
- if (
- player.countCards("hs", map[name]) > (name == "jiu" ? 1 : 0) &&
- player.getUseValue({ name: name }) > 0
- ) {
+ if (player.countCards("hs", map[name]) > (name == "jiu" ? 1 : 0) && player.getUseValue({ name: name }) > 0) {
var temp = get.order({ name: name });
if (temp > max) max = temp;
}
@@ -23739,12 +20373,7 @@ game.import("character", function () {
var num = 0;
for (var i = player.actionHistory.length - 1; i >= 0; i--) {
if (!player.actionHistory[i].isMe) continue;
- if (
- _status.globalHistory[i].changeHp.some(
- (evt) => evt.player == player && evt.getParent().name == "loseHp"
- )
- )
- return false;
+ if (_status.globalHistory[i].changeHp.some(evt => evt.player == player && evt.getParent().name == "loseHp")) return false;
else {
num++;
if (num >= 3) break;
@@ -23833,9 +20462,7 @@ game.import("character", function () {
},
content: function () {
"step 0";
- player
- .chooseToDiscard("he", "庸肆")
- .set("prompt2", "弃置一张牌,或取消并失去1点体力").ai = function (card) {
+ player.chooseToDiscard("he", "庸肆").set("prompt2", "弃置一张牌,或取消并失去1点体力").ai = function (card) {
return 8 - get.value(card);
};
"step 1";
@@ -23869,11 +20496,7 @@ game.import("character", function () {
player.give(cards, target);
if (get.color(cards[0]) == "black") {
target
- .chooseToDiscard(
- 2,
- "he",
- "弃置两张牌,或令" + get.translation(player) + "摸两张牌"
- )
+ .chooseToDiscard(2, "he", "弃置两张牌,或令" + get.translation(player) + "摸两张牌")
.set("ai", function (card) {
if (_status.event.goon) return 7 - get.value(card);
return 0;
@@ -23927,12 +20550,7 @@ game.import("character", function () {
cards = event.getl(player).cards2;
var cardsx = event.getg(current);
for (var i of cardsx) {
- if (
- hs.includes(i) &&
- cards.includes(i) &&
- get.color(i, player) == "black"
- )
- return true;
+ if (hs.includes(i) && cards.includes(i) && get.color(i, player) == "black") return true;
}
return false;
});
@@ -23956,11 +20574,7 @@ game.import("character", function () {
if (current == player) return;
var hs = current.getCards("h"),
cardsx = trigger.getg(current).filter(function (card) {
- return (
- hs.includes(card) &&
- cards.includes(card) &&
- get.color(card, player) == "black"
- );
+ return hs.includes(card) && cards.includes(card) && get.color(card, player) == "black";
});
if (cardsx.length > 0) {
current.addSkill("xiehui2");
@@ -24040,12 +20654,7 @@ game.import("character", function () {
}
}
if (useCard) {
- player.chooseUseTarget(
- { name: "sha" },
- false,
- "是否视为使用一张【杀】?",
- "nodistance"
- );
+ player.chooseUseTarget({ name: "sha" }, false, "是否视为使用一张【杀】?", "nodistance");
}
},
ai: {
@@ -24082,11 +20691,7 @@ game.import("character", function () {
if (
player.hasSha() &&
game.hasPlayer(function (current) {
- return (
- player.canUse("sha", current) &&
- get.attitude(player, current) < 0 &&
- get.effect(current, { name: "sha" }, player, player) > 0
- );
+ return player.canUse("sha", current) && get.attitude(player, current) < 0 && get.effect(current, { name: "sha" }, player, player) > 0;
})
) {
return 6 - get.value(card);
@@ -24205,9 +20810,9 @@ game.import("character", function () {
} else if (mode == "versus") {
if (!_status.mode || _status.mode != "two") num = player.getEnemies().length;
else {
- var target = game.findPlayer((x) => {
+ var target = game.findPlayer(x => {
var num = x.getFriends().length;
- return !game.hasPlayer((y) => {
+ return !game.hasPlayer(y => {
return x != y && y.getFriends().length > num;
});
});
@@ -24243,10 +20848,7 @@ game.import("character", function () {
})
.set("goon", goon)
.set("prompt", "定叛")
- .set("choiceList", [
- "令" + get.translation(player) + "弃置你装备区里的一张牌",
- "获得你装备区内的所有牌并受到1点伤害",
- ]);
+ .set("choiceList", ["令" + get.translation(player) + "弃置你装备区里的一张牌", "获得你装备区内的所有牌并受到1点伤害"]);
"step 2";
if (result.control == "选项一") {
player.discardPlayerCard(target, true, "e");
@@ -24289,13 +20891,7 @@ game.import("character", function () {
audio: 2,
trigger: {
player: ["loseAfter", "gainAfter"],
- global: [
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
direct: true,
filter: function (event, player) {
@@ -24306,13 +20902,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("hongde"),
- "令一名其他角色摸一张牌",
- function (card, player, target) {
- return target != player;
- }
- )
+ .chooseTarget(get.prompt("hongde"), "令一名其他角色摸一张牌", function (card, player, target) {
+ return target != player;
+ })
.set("ai", function (target) {
return get.attitude(player, target);
});
@@ -24375,11 +20967,7 @@ game.import("character", function () {
order: function (skill, player) {
if (
game.hasPlayer(function (current) {
- return (
- current.hp < current.maxHp &&
- current != player &&
- get.recoverEffect(current, player, player) > 0
- );
+ return current.hp < current.maxHp && current != player && get.recoverEffect(current, player, player) > 0;
})
) {
return 10;
@@ -24428,12 +21016,10 @@ game.import("character", function () {
},
content: function () {
"step 0";
- player
- .chooseCard(get.prompt2("tuifeng"), "he", [1, trigger.num])
- .set("ai", function (card) {
- if (card.name == "du") return 20;
- return 7 - get.useful(card);
- });
+ player.chooseCard(get.prompt2("tuifeng"), "he", [1, trigger.num]).set("ai", function (card) {
+ if (card.name == "du") return 20;
+ return 7 - get.useful(card);
+ });
"step 1";
if (result.bool) {
player.logSkill("tuifeng");
@@ -24513,10 +21099,10 @@ game.import("character", function () {
if (event.name == "gameStart") return true;
return (
event.player == zhu &&
- (event.addSkill.some((skill) => {
+ (event.addSkill.some(skill => {
return lib.skill[skill] && lib.skill[skill].zhuSkill;
}) ||
- event.addSkill.some((skill) => {
+ event.addSkill.some(skill => {
return lib.skill[skill] && lib.skill[skill].zhuSkill;
}))
);
@@ -24559,12 +21145,7 @@ game.import("character", function () {
filterTarget: function (card, player, target) {
if (target == player) return false;
if (ui.selected.targets.length) {
- return (
- ui.selected.targets[0] != target &&
- !ui.selected.targets[0].hasSkillTag("noCompareSource") &&
- target.countCards("h") &&
- !target.hasSkillTag("noCompareTarget")
- );
+ return ui.selected.targets[0] != target && !ui.selected.targets[0].hasSkillTag("noCompareSource") && target.countCards("h") && !target.hasSkillTag("noCompareTarget");
}
return true;
},
@@ -24635,10 +21216,7 @@ game.import("character", function () {
var att = get.attitude(player, target);
if (att <= 1) return 0;
var mode = get.mode();
- if (
- mode == "identity" ||
- (mode == "versus" && (_status.mode == "four" || _status.mode == "guandu"))
- ) {
+ if (mode == "identity" || (mode == "versus" && (_status.mode == "four" || _status.mode == "guandu"))) {
if (target.name && lib.character[target.name]) {
for (var i = 0; i < lib.character[target.name][3].length; i++) {
if (lib.skill[lib.character[target.name][3][i]].zhuSkill) {
@@ -24657,7 +21235,7 @@ game.import("character", function () {
player.awakenSkill("yongdi");
target.gainMaxHp();
target.recover();
- var skills = target.getStockSkills(true, true).filter((skill) => {
+ var skills = target.getStockSkills(true, true).filter(skill => {
if (target.hasSkill(skill)) return false;
var info = get.info(skill);
return info && info.zhuSkill;
@@ -24677,10 +21255,7 @@ game.import("character", function () {
},
selectTarget: [1, 3],
filter: function (event, player) {
- return (
- player.countMark("regushe") + player.countMark("regushe2") < 7 &&
- player.countCards("h") > 0
- );
+ return player.countMark("regushe") + player.countMark("regushe2") < 7 && player.countCards("h") > 0;
},
multitarget: true,
multiline: true,
@@ -24744,8 +21319,7 @@ game.import("character", function () {
if (player.countMark("regushe") + num <= 7) return -1;
break;
default:
- if (hs[i].number > 5 && player.countMark("regushe") + num <= 6)
- return -1;
+ if (hs[i].number > 5 && player.countMark("regushe") + num <= 6) return -1;
}
}
}
@@ -24838,15 +21412,7 @@ game.import("character", function () {
name: "饶舌",
content: "mark",
},
- chat: [
- "粗鄙之语",
- "天地不容",
- "谄谀之臣",
- "皓首匹夫,苍髯老贼",
- "二臣贼子",
- "断脊之犬",
- "我从未见过有如此厚颜无耻之人!",
- ],
+ chat: ["粗鄙之语", "天地不容", "谄谀之臣", "皓首匹夫,苍髯老贼", "二臣贼子", "断脊之犬", "我从未见过有如此厚颜无耻之人!"],
callback: function () {
"step 0";
if (event.num1 <= event.num2) {
@@ -24899,8 +21465,7 @@ game.import("character", function () {
if (player.countMark("gushe") + num <= 7) return -1;
break;
default:
- if (hs[i].number > 5 && player.countMark("gushe") + num <= 6)
- return -1;
+ if (hs[i].number > 5 && player.countMark("gushe") + num <= 6) return -1;
}
}
}
@@ -24913,11 +21478,7 @@ game.import("character", function () {
audio: 2,
trigger: { player: "compare" },
filter: function (event, player) {
- return (
- event.getParent().name == "gushe" &&
- !event.iwhile &&
- event.num1 <= player.countMark("gushe")
- );
+ return event.getParent().name == "gushe" && !event.iwhile && event.num1 <= player.countMark("gushe");
},
content: function () {
if (trigger.num1 < player.countMark("gushe")) {
@@ -24971,11 +21532,7 @@ game.import("character", function () {
if (hsx.length > 3 && hs2.length <= 1) {
return 0;
}
- if (
- hs1.length > hs2.length - 1 &&
- hs1.length > 0 &&
- (hs2.length <= 1 || hs1[0].number > hs2[0].number)
- ) {
+ if (hs1.length > hs2.length - 1 && hs1.length > 0 && (hs2.length <= 1 || hs1[0].number > hs2[0].number)) {
return 0;
}
return -1;
@@ -25039,8 +21596,7 @@ game.import("character", function () {
.chooseButton([get.prompt("shefu"), [list1.concat(list2).concat(list3), "vcard"]])
.set("filterButton", function (button) {
var player = _status.event.player;
- if (player.storage.shefu2 && player.storage.shefu2.includes(button.link[2]))
- return false;
+ if (player.storage.shefu2 && player.storage.shefu2.includes(button.link[2])) return false;
return true;
})
.set("ai", function (button) {
@@ -25066,17 +21622,7 @@ game.import("character", function () {
return rand[0];
}
})
- .set("rand", [
- Math.random(),
- Math.random(),
- Math.random(),
- Math.random(),
- Math.random(),
- Math.random(),
- Math.random(),
- Math.random(),
- Math.random(),
- ]);
+ .set("rand", [Math.random(), Math.random(), Math.random(), Math.random(), Math.random(), Math.random(), Math.random(), Math.random(), Math.random()]);
"step 1";
if (result.bool) {
event.cardname = result.links[0][2];
@@ -25215,21 +21761,14 @@ game.import("character", function () {
player
.chooseControl("cancel2")
.set("prompt", get.prompt("benyu", trigger.source))
- .set("choiceList", [
- "将手牌摸至" + get.cnNumber(Math.min(num2, 5)) + "张",
- "弃置至少" + get.cnNumber(num2 + 1) + "张牌并对其造成1点伤害",
- ]);
+ .set("choiceList", ["将手牌摸至" + get.cnNumber(Math.min(num2, 5)) + "张", "弃置至少" + get.cnNumber(num2 + 1) + "张牌并对其造成1点伤害"]);
} else if (bool2) event.goto(3);
"step 1";
if (event.chosen) {
if (result.control == "cancel2") event.finish();
else if (result.index == 1) event.goto(3);
else event._result = { bool: true };
- } else
- player.chooseBool(
- get.prompt("benyu", trigger.source),
- "将手牌摸至" + get.cnNumber(Math.min(trigger.source.countCards("h"), 5)) + "张"
- );
+ } else player.chooseBool(get.prompt("benyu", trigger.source), "将手牌摸至" + get.cnNumber(Math.min(trigger.source.countCards("h"), 5)) + "张");
"step 2";
if (result.bool) {
player.logSkill("benyu", trigger.source);
@@ -25254,10 +21793,7 @@ game.import("character", function () {
if (ui.selected.cards.length >= _status.event.num) {
return -1;
}
- if (
- get.damageEffect(trigger.source, player, player) > 0 &&
- (get.value(card, player) < 0 || _status.event.num <= 2)
- ) {
+ if (get.damageEffect(trigger.source, player, player) > 0 && (get.value(card, player) < 0 || _status.event.num <= 2)) {
return 8 - get.value(card);
}
return -1;
@@ -25301,26 +21837,13 @@ game.import("character", function () {
audio: 2,
mod: {
aiOrder: function (player, card, num) {
- if (
- num > 0 &&
- !player.hasSkill("zhidao2") &&
- !get.tag(card, "damage") &&
- (!lib.filter.targetEnabled(card, player, player) ||
- get.effect(player, card, player) <= 0)
- )
- return num + 10;
+ if (num > 0 && !player.hasSkill("zhidao2") && !get.tag(card, "damage") && (!lib.filter.targetEnabled(card, player, player) || get.effect(player, card, player) <= 0)) return num + 10;
},
},
trigger: { source: "damageSource" },
filter: function (event, player) {
if (event._notrigger.includes(event.player)) return false;
- return (
- _status.currentPhase == player &&
- event.player.isIn() &&
- event.player.countCards("hej") > 0 &&
- event.player != player &&
- !player.hasSkill("zhidao2")
- );
+ return _status.currentPhase == player && event.player.isIn() && event.player.countCards("hej") > 0 && event.player != player && !player.hasSkill("zhidao2");
},
forced: true,
content: function () {
@@ -25329,17 +21852,12 @@ game.import("character", function () {
if (trigger.player.countCards("e")) num++;
if (trigger.player.countCards("j")) num++;
if (num) {
- player
- .gainPlayerCard(trigger.player, num, "hej", true)
- .set("filterButton", function (button) {
- for (var i = 0; i < ui.selected.buttons.length; i++) {
- if (
- get.position(button.link) == get.position(ui.selected.buttons[i].link)
- )
- return false;
- }
- return true;
- });
+ player.gainPlayerCard(trigger.player, num, "hej", true).set("filterButton", function (button) {
+ for (var i = 0; i < ui.selected.buttons.length; i++) {
+ if (get.position(button.link) == get.position(ui.selected.buttons[i].link)) return false;
+ }
+ return true;
+ });
}
player.addTempSkill("zhidao2");
},
@@ -25407,10 +21925,7 @@ game.import("character", function () {
check = true;
if (info.selectTarget == -1) {
check = false;
- } else if (
- Array.isArray(info.selectTarget) &&
- info.selectTarget[1] == -1
- ) {
+ } else if (Array.isArray(info.selectTarget) && info.selectTarget[1] == -1) {
check = false;
}
}
@@ -25487,7 +22002,7 @@ game.import("character", function () {
"step 0";
player.draw(3);
"step 1";
- var list = lib.skill.zhengnan.derivation.filter((skill) => !player.hasSkill(skill));
+ var list = lib.skill.zhengnan.derivation.filter(skill => !player.hasSkill(skill));
if (list.length == 1) event._result = { control: list[0] };
else if (list.length > 0) {
player
@@ -25537,13 +22052,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("qizhi"),
- "弃置一名角色的一张牌,然后其摸一张牌",
- function (card, player, target) {
- return !_status.event.targets.includes(target) && target.countCards("he") > 0;
- }
- )
+ .chooseTarget(get.prompt("qizhi"), "弃置一名角色的一张牌,然后其摸一张牌", function (card, player, target) {
+ return !_status.event.targets.includes(target) && target.countCards("he") > 0;
+ })
.set("ai", function (target) {
var player = _status.event.player;
if (target == player) return 2;
@@ -25619,14 +22130,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseToDiscard(
- get.prompt2("jiqiao"),
- [1, player.countCards("he", { type: "equip" })],
- "he",
- function (card) {
- return get.type(card) == "equip";
- }
- )
+ .chooseToDiscard(get.prompt2("jiqiao"), [1, player.countCards("he", { type: "equip" })], "he", function (card) {
+ return get.type(card) == "equip";
+ })
.set("ai", function (card) {
if (card.name == "bagua") return 10;
return 7 - get.value(card);
@@ -25673,11 +22179,7 @@ game.import("character", function () {
},
canBeDiscarded: function (card, source, player) {
if (!player.hasEmptySlot(5)) return;
- if (
- get.position(card) == "e" &&
- get.subtypes(card).some((slot) => slot == "equip2" || slot == "equip5")
- )
- return false;
+ if (get.position(card) == "e" && get.subtypes(card).some(slot => slot == "equip2" || slot == "equip5")) return false;
},
/*cardDiscardable:function (card,player){
if(player.getEquip(5)) return;
@@ -25744,34 +22246,18 @@ game.import("character", function () {
var save = false;
if (get.attitude(player, trigger.target) > 2) {
if (trigger.card.name == "sha") {
- if (
- player.countCards("h", "shan") ||
- player.getEquip(2) ||
- trigger.target.hp == 1 ||
- player.hp > trigger.target.hp + 1
- ) {
- if (
- !trigger.target.countCards("h", "shan") ||
- trigger.target.countCards("h") < player.countCards("h")
- ) {
+ if (player.countCards("h", "shan") || player.getEquip(2) || trigger.target.hp == 1 || player.hp > trigger.target.hp + 1) {
+ if (!trigger.target.countCards("h", "shan") || trigger.target.countCards("h") < player.countCards("h")) {
save = true;
}
}
} else if (trigger.card.name == "juedou" && trigger.target.hp == 1) {
save = true;
- } else if (
- trigger.card.name == "shunshou" &&
- get.attitude(player, trigger.player) < 0 &&
- get.attitude(trigger.player, trigger.target) < 0
- ) {
+ } else if (trigger.card.name == "shunshou" && get.attitude(player, trigger.player) < 0 && get.attitude(trigger.player, trigger.target) < 0) {
save = true;
}
}
- var next = player.chooseToDiscard(
- "he",
- get.prompt(event.name, trigger.target),
- "弃置一张牌,将" + get.translation(trigger.card) + "转移给自己,或令此牌对其无效"
- );
+ var next = player.chooseToDiscard("he", get.prompt(event.name, trigger.target), "弃置一张牌,将" + get.translation(trigger.card) + "转移给自己,或令此牌对其无效");
next.logSkill = [event.name, trigger.target];
next.set("ai", function (card) {
if (_status.event.aisave) {
@@ -25956,9 +22442,7 @@ game.import("character", function () {
trigger: { player: "useCard" },
silent: true,
filter: function (event, player) {
- return (
- Array.isArray(player.storage.xingwu_color) && _status.currentPhase == player
- );
+ return Array.isArray(player.storage.xingwu_color) && _status.currentPhase == player;
},
content: function () {
player.storage.xingwu_color.remove(get.color(trigger.card));
@@ -25997,12 +22481,7 @@ game.import("character", function () {
if (player.storage.xingwu.length == 2) {
if (
!game.hasPlayer(function (current) {
- return (
- current != player &&
- current.hasSex("male") &&
- get.damageEffect(current, player, player) > 0 &&
- get.attitude(player, current) < 0
- );
+ return current != player && current.hasSex("male") && get.damageEffect(current, player, player) > 0 && get.attitude(player, current) < 0;
})
)
return 0;
@@ -26074,14 +22553,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseCard(
- [1, player.countCards("he") - player.countCards("he", { type: "basic" })],
- "he",
- get.prompt("yinbing"),
- function (card) {
- return get.type(card) != "basic";
- }
- )
+ .chooseCard([1, player.countCards("he") - player.countCards("he", { type: "basic" })], "he", get.prompt("yinbing"), function (card) {
+ return get.type(card) != "basic";
+ })
.set("ai", function (card) {
return 6 - get.value(card);
})
@@ -26119,11 +22593,7 @@ game.import("character", function () {
trigger: { player: "damageEnd" },
forced: true,
filter: function (event, player) {
- return (
- event.card &&
- player.getExpansions("yinbing").length > 0 &&
- (event.card.name == "sha" || event.card.name == "juedou")
- );
+ return event.card && player.getExpansions("yinbing").length > 0 && (event.card.name == "sha" || event.card.name == "juedou");
},
content: function () {
"step 0";
@@ -26213,12 +22683,7 @@ game.import("character", function () {
target.addTempSkill("meibu_viewas");
target.addTempSkill("meibu_range");
target.storage.meibu = player;
- target.markSkillCharacter(
- "meibu",
- player,
- "魅步",
- "锦囊牌均视为杀且" + get.translation(player) + "视为在攻击范围内"
- );
+ target.markSkillCharacter("meibu", player, "魅步", "锦囊牌均视为杀且" + get.translation(player) + "视为在攻击范围内");
},
ai: {
expose: 0.2,
@@ -26255,8 +22720,7 @@ game.import("character", function () {
player.removeSkill("meibu_viewas");
game.broadcastAll(function (player) {
if (player.marks.meibu && player.marks.meibu.info) {
- player.marks.meibu.info.content =
- player.marks.meibu.info.content.slice(8);
+ player.marks.meibu.info.content = player.marks.meibu.info.content.slice(8);
}
}, player);
},
@@ -26302,10 +22766,7 @@ game.import("character", function () {
enable: "phaseUse",
usable: 1,
filterCard: function (card, player, target) {
- return (
- card.name == "sha" ||
- (get.type(card, "trick") == "trick" && get.color(card) == "black")
- );
+ return card.name == "sha" || (get.type(card, "trick") == "trick" && get.color(card) == "black");
},
check: function (card) {
return 7 - get.value(card);
@@ -26379,15 +22840,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- "焚天:选择一名攻击范围内的角色,将其一张牌置于你的武将牌上",
- true,
- function (card, player, target) {
- return (
- player != target && player.inRange(target) && target.countCards("he") > 0
- );
- }
- )
+ .chooseTarget("焚天:选择一名攻击范围内的角色,将其一张牌置于你的武将牌上", true, function (card, player, target) {
+ return player != target && player.inRange(target) && target.countCards("he") > 0;
+ })
.set("ai", function (target) {
return -get.attitude(_status.event.player, target);
});
@@ -26443,12 +22898,7 @@ game.import("character", function () {
prompt: "移去两张“焚”并令一名角色失去1点体力",
content: function () {
"step 0";
- player.chooseCardButton(
- 2,
- "移去两张“焚”并令" + get.translation(target) + "失去1点体力",
- player.getExpansions("fentian"),
- true
- );
+ player.chooseCardButton(2, "移去两张“焚”并令" + get.translation(target) + "失去1点体力", player.getExpansions("fentian"), true);
"step 1";
if (result.bool) {
player.loseToDiscardpile(result.links);
@@ -26491,13 +22941,7 @@ game.import("character", function () {
maixie: true,
skillTagFilter: (player, tag, arg) => {
if (tag === "maixie") {
- if (
- player.hp < 2 ||
- player.storage.danji ||
- player.hasSkill("nuzhan") ||
- player.countCards("h") !== player.hp
- )
- return false;
+ if (player.hp < 2 || player.storage.danji || player.hasSkill("nuzhan") || player.countCards("h") !== player.hp) return false;
let zhu = get.zhu(player);
if (zhu && zhu.isZhu) {
let name = zhu.name;
@@ -26512,13 +22956,7 @@ game.import("character", function () {
effect: {
target: (card, player, target) => {
let hs = target.countCards("h");
- if (
- target.hp < 3 ||
- target.storage.danji ||
- target.hasSkill("nuzhan") ||
- hs > target.hp + 1
- )
- return;
+ if (target.hp < 3 || target.storage.danji || target.hasSkill("nuzhan") || hs > target.hp + 1) return;
let zhu = get.zhu(target);
if (zhu && zhu.isZhu) {
let name = zhu.name;
@@ -26530,12 +22968,7 @@ game.import("character", function () {
if (get.tag(card, "draw")) return 1.6;
if (get.tag(card, "lose") || get.tag(card, "discard")) return [1, -0.8];
if (hs === target.hp && get.tag(card, "damage")) return [1, target.hp / 3];
- if (
- hs > target.hp &&
- target.hp > 3 &&
- (card.name === "shan" || card.name === "wuxie")
- )
- return "zeroplayertarget";
+ if (hs > target.hp && target.hp > 3 && (card.name === "shan" || card.name === "wuxie")) return "zeroplayertarget";
},
},
},
@@ -26547,14 +22980,7 @@ game.import("character", function () {
firstDo: true,
trigger: { player: "useCard1" },
filter: function (event, player) {
- return (
- event.card &&
- event.card.name == "sha" &&
- event.addCount !== false &&
- event.cards &&
- event.cards.length == 1 &&
- get.type(event.cards[0], "trick") == "trick"
- );
+ return event.card && event.card.name == "sha" && event.addCount !== false && event.cards && event.cards.length == 1 && get.type(event.cards[0], "trick") == "trick";
},
forced: true,
content: function () {
@@ -26573,13 +22999,7 @@ game.import("character", function () {
silent: true,
firstDo: true,
filter: function (event, player) {
- return (
- event.card &&
- event.card.name == "sha" &&
- event.cards &&
- event.cards.length == 1 &&
- get.type(event.cards[0]) == "equip"
- );
+ return event.card && event.card.name == "sha" && event.cards && event.cards.length == 1 && get.type(event.cards[0]) == "equip";
},
content: function () {
trigger.baseDamage++;
@@ -26594,31 +23014,18 @@ game.import("character", function () {
direct: true,
filter: function (event, player) {
if (
- !player.countCards(
- player.hasSkill("fenxin_nei") ? "he" : "h",
- function (card) {
- if (
- player.hasSkill("fenxin_nei") ||
- (_status.connectMode && get.position(card) == "h")
- )
- return true;
- return get.color(card) == "black";
- }
- )
+ !player.countCards(player.hasSkill("fenxin_nei") ? "he" : "h", function (card) {
+ if (player.hasSkill("fenxin_nei") || (_status.connectMode && get.position(card) == "h")) return true;
+ return get.color(card) == "black";
+ })
)
return false;
- return (
- (event.player.hp >= player.hp || player.hasSkill("fenxin_fan")) &&
- player != event.player
- );
+ return (event.player.hp >= player.hp || player.hasSkill("fenxin_fan")) && player != event.player;
},
content: function () {
"step 0";
var goon = get.attitude(player, trigger.player) < 0;
- var next = player.chooseToDiscard(
- get.prompt("jieyuan", trigger.player),
- player.hasSkill("fenxin_nei") ? "he" : "h"
- );
+ var next = player.chooseToDiscard(get.prompt("jieyuan", trigger.player), player.hasSkill("fenxin_nei") ? "he" : "h");
if (!player.hasSkill("fenxin_nei")) {
next.set("filterCard", function (card) {
return get.color(card) == "black";
@@ -26646,32 +23053,18 @@ game.import("character", function () {
trigger: { player: "damageBegin2" },
filter: function (event, player) {
if (
- !player.countCards(
- player.hasSkill("fenxin_nei") ? "he" : "h",
- function (card) {
- if (
- player.hasSkill("fenxin_nei") ||
- (_status.connectMode && get.position(card) == "h")
- )
- return true;
- return get.color(card) == "red";
- }
- )
+ !player.countCards(player.hasSkill("fenxin_nei") ? "he" : "h", function (card) {
+ if (player.hasSkill("fenxin_nei") || (_status.connectMode && get.position(card) == "h")) return true;
+ return get.color(card) == "red";
+ })
)
return false;
- return (
- event.source &&
- (event.source.hp >= player.hp || player.hasSkill("fenxin_zhong")) &&
- player != event.source
- );
+ return event.source && (event.source.hp >= player.hp || player.hasSkill("fenxin_zhong")) && player != event.source;
},
direct: true,
content: function () {
"step 0";
- var next = player.chooseToDiscard(
- get.prompt("jieyuan"),
- player.hasSkill("fenxin_nei") ? "he" : "h"
- );
+ var next = player.chooseToDiscard(get.prompt("jieyuan"), player.hasSkill("fenxin_nei") ? "he" : "h");
if (!player.hasSkill("fenxin_nei")) {
next.set("filterCard", function (card) {
return get.color(card) == "red";
@@ -26712,18 +23105,8 @@ game.import("character", function () {
trigger: { global: ["dieAfter", "damageEnd"] },
filter: function (event, player) {
var list = ["fan", "zhong", "nei"];
- if (get.mode() == "identity")
- return (
- event.name == "die" &&
- list.includes(event.player.identity) &&
- !player.hasSkill("fenxin_" + event.player.identity)
- );
- return (
- event.name == "damage" &&
- event.player != player &&
- list.some((identity) => !player.hasSkill("fenxin_" + identity)) &&
- event.player.getHistory("damage").indexOf(event) == 0
- );
+ if (get.mode() == "identity") return event.name == "die" && list.includes(event.player.identity) && !player.hasSkill("fenxin_" + event.player.identity);
+ return event.name == "damage" && event.player != player && list.some(identity => !player.hasSkill("fenxin_" + identity)) && event.player.getHistory("damage").indexOf(event) == 0;
},
forced: true,
logTarget: "player",
@@ -26744,7 +23127,7 @@ game.import("character", function () {
["fenxin_fan", "发动〖竭缘〗增加伤害无体力值限制"],
["fenxin_zhong", "发动〖竭缘〗减少伤害无体力值限制"],
["fenxin_nei", "将〖竭缘〗中的黑色手牌和红色手牌改为一张牌"],
- ].filter((list) => !player.hasSkill(list[0])),
+ ].filter(list => !player.hasSkill(list[0])),
"textbutton",
],
],
@@ -26818,14 +23201,10 @@ game.import("character", function () {
"step 0";
var check = player.countCards("h") > 2;
player
- .chooseTarget(
- get.prompt("qingyi"),
- "跳过判定阶段和摸牌阶段,视为对一名其他角色使用一张【杀】",
- function (card, player, target) {
- if (player == target) return false;
- return player.canUse({ name: "sha" }, target, false);
- }
- )
+ .chooseTarget(get.prompt("qingyi"), "跳过判定阶段和摸牌阶段,视为对一名其他角色使用一张【杀】", function (card, player, target) {
+ if (player == target) return false;
+ return player.canUse({ name: "sha" }, target, false);
+ })
.set("check", check)
.set("ai", function (target) {
if (!_status.event.check) return 0;
@@ -26977,11 +23356,7 @@ game.import("character", function () {
if (!info.multitarget) {
if (
game.hasPlayer(function (current) {
- return (
- !event.targets.includes(current) &&
- lib.filter.targetEnabled2(event.card, player, current) &&
- lib.filter.targetInRange(event.card, player, current)
- );
+ return !event.targets.includes(current) && lib.filter.targetEnabled2(event.card, player, current) && lib.filter.targetInRange(event.card, player, current);
})
) {
return true;
@@ -26996,19 +23371,13 @@ game.import("character", function () {
.chooseTarget(get.prompt("qirang"), function (card, player, target) {
var player = _status.event.player;
if (_status.event.targets.includes(target)) return false;
- return (
- lib.filter.targetEnabled2(_status.event.card, player, target) &&
- lib.filter.targetInRange(_status.event.card, player, target)
- );
+ return lib.filter.targetEnabled2(_status.event.card, player, target) && lib.filter.targetInRange(_status.event.card, player, target);
})
.set("prompt2", prompt2)
.set("ai", function (target) {
var trigger = _status.event.getTrigger();
var player = _status.event.player;
- return (
- get.effect(target, trigger.card, player, player) *
- (_status.event.targets.includes(target) ? -1 : 1)
- );
+ return get.effect(target, trigger.card, player, player) * (_status.event.targets.includes(target) ? -1 : 1);
})
.set("targets", trigger.targets)
.set("card", trigger.card);
@@ -27180,17 +23549,7 @@ game.import("character", function () {
for (var i = 0; i < result.cards.length; i++) {
suits.add(get.suit(result.cards[i]));
}
- if (
- suits.length == 4 &&
- game.checkMod(
- { name: "tao", isCard: true },
- player,
- trigger.player,
- "unchanged",
- "cardSavable",
- player
- )
- ) {
+ if (suits.length == 4 && game.checkMod({ name: "tao", isCard: true }, player, trigger.player, "unchanged", "cardSavable", player)) {
event.target.useCard({ name: "tao", isCard: true }, trigger.player);
}
}
@@ -27237,10 +23596,7 @@ game.import("character", function () {
}, card);
}
next.logSkill = "mozhi";
- next.set(
- "openskilldialog",
- "默识:将一张手牌当" + get.translation(card) + "使用"
- );
+ next.set("openskilldialog", "默识:将一张手牌当" + get.translation(card) + "使用");
next.set("norestore", true);
next.set("_backupevent", "mozhix");
next.set("custom", {
@@ -27312,15 +23668,7 @@ game.import("character", function () {
hanyong: {
trigger: { player: "useCard" },
filter: function (event, player) {
- return (
- event.card &&
- (event.card.name == "nanman" ||
- event.card.name == "wanjian" ||
- (event.card.name == "sha" &&
- !game.hasNature(event.card) &&
- get.suit(event.card) == "spade")) &&
- player.isDamaged()
- );
+ return event.card && (event.card.name == "nanman" || event.card.name == "wanjian" || (event.card.name == "sha" && !game.hasNature(event.card) && get.suit(event.card) == "spade")) && player.isDamaged();
},
content: function () {
trigger.baseDamage++;
@@ -27367,19 +23715,12 @@ game.import("character", function () {
audio: "yishe",
trigger: {
player: ["loseAfter"],
- global: [
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
filter: function (event, player) {
if (player.isHealthy()) return false;
var evt = event.getl(player);
- if (!evt || !evt.xs || !evt.xs.length || player.getExpansions("yishe").length > 0)
- return false;
+ if (!evt || !evt.xs || !evt.xs.length || player.getExpansions("yishe").length > 0) return false;
if (event.name == "lose") {
for (var i in event.gaintag_map) {
if (event.gaintag_map[i].includes("yishe")) return true;
@@ -27438,28 +23779,15 @@ game.import("character", function () {
"step 0";
var list = player.getExpansions("yishe");
player
- .chooseButton(
- [
- get.translation(trigger.player) +
- "的" +
- (trigger.judgestr || "") +
- "判定为" +
- get.translation(trigger.player.judging[0]) +
- "," +
- get.prompt("midao"),
- list,
- "hidden",
- ],
- function (button) {
- var card = button.link;
- var trigger = _status.event.getTrigger();
- var player = _status.event.player;
- var judging = _status.event.judging;
- var result = trigger.judge(card) - trigger.judge(judging);
- var attitude = get.attitude(player, trigger.player);
- return result * attitude;
- }
- )
+ .chooseButton([get.translation(trigger.player) + "的" + (trigger.judgestr || "") + "判定为" + get.translation(trigger.player.judging[0]) + "," + get.prompt("midao"), list, "hidden"], function (button) {
+ var card = button.link;
+ var trigger = _status.event.getTrigger();
+ var player = _status.event.player;
+ var judging = _status.event.judging;
+ var result = trigger.judge(card) - trigger.judge(judging);
+ var attitude = get.attitude(player, trigger.player);
+ return result * attitude;
+ })
.set("judging", trigger.player.judging[0])
.set("filterButton", function (button) {
var player = _status.event.player;
@@ -27489,11 +23817,7 @@ game.import("character", function () {
card.clone.classList.remove("thrownhighlight");
}
}, trigger.player.judging[0]);
- game.addVideo(
- "deletenode",
- player,
- get.cardsInfo([trigger.player.judging[0].clone])
- );
+ game.addVideo("deletenode", player, get.cardsInfo([trigger.player.judging[0].clone]));
}
game.cardsDiscard(trigger.player.judging[0]);
trigger.player.judging[0] = result.cards[0];
@@ -27517,8 +23841,7 @@ game.import("character", function () {
player: "useCardToPlayered",
},
filter: function (event, player) {
- if (event.targets.length != 1 || !["sha", "juedou"].includes(event.card.name))
- return false;
+ if (event.targets.length != 1 || !["sha", "juedou"].includes(event.card.name)) return false;
var evtx = event.getParent();
return !player.hasHistory(
"useCard",
@@ -27536,16 +23859,7 @@ game.import("character", function () {
player
.chooseControl("摸X加1伤", "摸1加X伤", "cancel2")
.set("prompt", get.prompt("fengpo", trigger.target))
- .set(
- "prompt2",
- "你可以选择一项:1.摸X张牌,令" +
- str1 +
- "的伤害+1;2.摸一张牌,令" +
- str1 +
- "的伤害+X(X为" +
- str2 +
- "的♦牌的数量)。"
- );
+ .set("prompt2", "你可以选择一项:1.摸X张牌,令" + str1 + "的伤害+1;2.摸一张牌,令" + str1 + "的伤害+X(X为" + str2 + "的♦牌的数量)。");
"step 1";
if (result.control && result.control != "cancel2") {
player.logSkill("fengpo", trigger.target);
@@ -27566,11 +23880,7 @@ game.import("character", function () {
fengpo2: {
trigger: { source: "damageBegin1" },
filter: function (event) {
- return (
- event.card &&
- (event.card.name == "sha" || event.card.name == "juedou") &&
- event.notLink()
- );
+ return event.card && (event.card.name == "sha" || event.card.name == "juedou") && event.notLink();
},
forced: true,
audio: false,
@@ -27636,11 +23946,7 @@ game.import("character", function () {
audio: 2,
trigger: { global: "phaseJieshuBegin" },
filter: function (event, player) {
- return (
- event.player.isIn() &&
- event.player != player &&
- get.distance(event.player, player, "attack") > 1
- );
+ return event.player.isIn() && event.player != player && get.distance(event.player, player, "attack") > 1;
},
forced: true,
content: function () {
@@ -27717,11 +24023,7 @@ game.import("character", function () {
audio: "lixia",
trigger: { global: "phaseJieshuBegin" },
filter: function (event, player) {
- return (
- event.player.isIn() &&
- event.player != player &&
- get.distance(event.player, player, "attack") > 1
- );
+ return event.player.isIn() && event.player != player && get.distance(event.player, player, "attack") > 1;
},
forced: true,
content: function () {
@@ -27879,13 +24181,7 @@ game.import("character", function () {
];
result.links.sort();
for (var i = 0; i < result.links.length; i++) {
- game.log(
- player,
- "选择了",
- "#g【礼下】",
- "的",
- "#y选项" + get.cnNumber(result.links[i] + 1, true)
- );
+ game.log(player, "选择了", "#g【礼下】", "的", "#y选项" + get.cnNumber(result.links[i] + 1, true));
map[result.links[i]](trigger, player, event);
}
player.addSkill("rebiluan2");
@@ -27914,8 +24210,7 @@ game.import("character", function () {
},
prompt: function (event, player) {
var num = game.countPlayer(function (current) {
- if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player)
- return true;
+ if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player) return true;
return current.isDamaged();
});
return "残蚀:是否改为摸" + get.cnNumber(num) + "张牌?";
@@ -27926,8 +24221,7 @@ game.import("character", function () {
content: function () {
trigger.changeToZero();
var num = game.countPlayer(function (current) {
- if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player)
- return true;
+ if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player) return true;
return current.isDamaged();
});
if (num > 0) {
@@ -27990,8 +24284,7 @@ game.import("character", function () {
},
prompt: function (event, player) {
var num = game.countPlayer(function (current) {
- if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player)
- return true;
+ if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player) return true;
return current.isDamaged();
});
return "残蚀:是否多摸" + get.cnNumber(num) + "张牌?";
@@ -28000,16 +24293,14 @@ game.import("character", function () {
return (
!event.numFixed &&
game.hasPlayer(function (current) {
- if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player)
- return true;
+ if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player) return true;
return current.isDamaged();
})
);
},
content: function () {
var num = game.countPlayer(function (current) {
- if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player)
- return true;
+ if (player.hasZhuSkill("guiming") && current.group == "wu" && current != player) return true;
return current.isDamaged();
});
if (num > 0) {
@@ -28064,20 +24355,15 @@ game.import("character", function () {
direct: true,
content: function () {
"step 0";
- if (
- player.storage.kunfen ||
- (get.mode() == "guozhan" && player.hiddenSkills.includes("kunfen"))
- ) {
+ if (player.storage.kunfen || (get.mode() == "guozhan" && player.hiddenSkills.includes("kunfen"))) {
if (!player.storage.kunfen) event.skillHidden = true;
- player
- .chooseBool(get.prompt("kunfen"), "失去1点体力,然后摸两张牌")
- .set("ai", function () {
- var player = _status.event.player;
- if (player.hp > 3) return true;
- if (player.hp == 3 && player.countCards("h") < 3) return true;
- if (player.hp == 2 && player.countCards("h") == 0) return true;
- return false;
- });
+ player.chooseBool(get.prompt("kunfen"), "失去1点体力,然后摸两张牌").set("ai", function () {
+ var player = _status.event.player;
+ if (player.hp > 3) return true;
+ if (player.hp == 3 && player.countCards("h") < 3) return true;
+ if (player.hp == 2 && player.countCards("h") == 0) return true;
+ return false;
+ });
} else event._result = { bool: true };
"step 1";
if (result.bool) {
@@ -28153,14 +24439,7 @@ game.import("character", function () {
oldcihuai3: {
trigger: {
player: ["loseAfter"],
- global: [
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- "die",
- ],
+ global: ["equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter", "die"],
},
silent: true,
firstDo: true,
@@ -28294,18 +24573,10 @@ game.import("character", function () {
danlao: {
audio: 2,
filter: function (event, player) {
- return (
- (event.card.name == "sha" || get.type(event.card) == "trick") &&
- event.targets &&
- event.targets.length > 1
- );
+ return (event.card.name == "sha" || get.type(event.card) == "trick") && event.targets && event.targets.length > 1;
},
check: function (event, player) {
- return (
- event.getParent().excluded.includes(player) ||
- get.tag(event.card, "multineg") ||
- get.effect(player, event.card, event.player, player) <= 0
- );
+ return event.getParent().excluded.includes(player) || get.tag(event.card, "multineg") || get.effect(player, event.card, event.player, player) <= 0;
},
trigger: { target: "useCardToTargeted" },
content: function () {
@@ -28419,9 +24690,7 @@ game.import("character", function () {
count: function (group) {
var player = _status.event.player;
return game.countPlayer(function (current) {
- return (
- current != player && current.group == group && get.attitude(current, player) < 0
- );
+ return current != player && current.group == group && get.attitude(current, player) < 0;
});
},
},
@@ -28445,8 +24714,7 @@ game.import("character", function () {
if (!player.storage.xiemu2) return false;
if (get.color(event.card) != "black") return false;
if (!event.player) return false;
- if (event.player == player || !player.storage.xiemu2.includes(event.player.group))
- return false;
+ if (event.player == player || !player.storage.xiemu2.includes(event.player.group)) return false;
return true;
},
content: function () {
@@ -28495,11 +24763,7 @@ game.import("character", function () {
content: function () {
"step 0";
var att = get.attitude(player, trigger.target);
- player.choosePlayerCard(
- get.prompt("spmengjin", trigger.target),
- "he",
- trigger.target
- ).ai = function (button) {
+ player.choosePlayerCard(get.prompt("spmengjin", trigger.target), "he", trigger.target).ai = function (button) {
var val = get.buttonValue(button);
if (att > 0) return -val;
return val;
@@ -28529,10 +24793,7 @@ game.import("character", function () {
filterCard: lib.filter.cardDiscardable,
filterTarget: function (card, player, target) {
var trigger = _status.event.getTrigger();
- return (
- lib.filter.targetEnabled(trigger.card, player, target) &&
- target != trigger.targets[0]
- );
+ return lib.filter.targetEnabled(trigger.card, player, target) && target != trigger.targets[0];
},
ai1: function (card) {
return 6 - get.value(card);
@@ -28747,12 +25008,7 @@ game.import("character", function () {
trigger: { global: "useCard1" },
forced: true,
filter: function (event, player) {
- return (
- event.targets.includes(player) &&
- player != event.player &&
- event.card.name == "sha" &&
- player.hp < player.countCards("h")
- );
+ return event.targets.includes(player) && player != event.player && event.card.name == "sha" && player.hp < player.countCards("h");
},
content: function () {},
unique: true,
@@ -28766,11 +25022,7 @@ game.import("character", function () {
if (target.hasSkill("tongji")) return;
if (
game.hasPlayer(function (current) {
- return (
- current.hasSkill("tongji") &&
- current.hp < current.countCards("h") &&
- player.inRange(current)
- );
+ return current.hasSkill("tongji") && current.hp < current.countCards("h") && player.inRange(current);
})
) {
return false;
@@ -28827,11 +25079,7 @@ game.import("character", function () {
audio: 2,
trigger: { global: "useCardToTargeted" },
filter: function (event, player) {
- return (
- event.card.name == "sha" &&
- get.distance(player, event.target) <= 1 &&
- event.target.isIn()
- );
+ return event.card.name == "sha" && get.distance(player, event.target) <= 1 && event.target.isIn();
},
check: function (event, player) {
return get.attitude(player, event.target) >= 0;
@@ -28841,14 +25089,12 @@ game.import("character", function () {
"step 0";
player.draw();
if (trigger.target != player) {
- player
- .chooseCard(true, "he", "交给" + get.translation(trigger.target) + "一张牌")
- .set("ai", function (card) {
- if (get.position(card) == "e") return -1;
- if (card.name == "shan") return 1;
- if (get.type(card) == "equip") return 0.5;
- return 0;
- });
+ player.chooseCard(true, "he", "交给" + get.translation(trigger.target) + "一张牌").set("ai", function (card) {
+ if (get.position(card) == "e") return -1;
+ if (card.name == "shan") return 1;
+ if (get.type(card) == "equip") return 0.5;
+ return 0;
+ });
} else {
event.finish();
}
@@ -28936,11 +25182,7 @@ game.import("character", function () {
filter: function (event, player) {
if (player.storage.fanxiang) return false;
return game.hasPlayer(function (current) {
- return (
- current.storage.liangzhu &&
- current.storage.liangzhu.includes(player) &&
- current.isDamaged()
- );
+ return current.storage.liangzhu && current.storage.liangzhu.includes(player) && current.isDamaged();
});
},
forced: true,
@@ -28984,7 +25226,7 @@ game.import("character", function () {
global: "loseAsyncAfter",
},
filter: function (event, player) {
- if (!game.hasPlayer((current) => current != player)) return false;
+ if (!game.hasPlayer(current => current != player)) return false;
if (event.type != "discard" || event.getlx === false) return false;
var evt = event.getl(player);
if (!evt || !evt.cards2) return false;
@@ -29028,8 +25270,7 @@ game.import("character", function () {
player
.chooseButton(["礼让:是否分配本次弃置的牌?", event.cards], [1, event.cards.length])
.set("ai", function (button) {
- if (_status.event.goon && ui.selected.buttons.length == 0)
- return 1 + Math.abs(get.value(button.link));
+ if (_status.event.goon && ui.selected.buttons.length == 0) return 1 + Math.abs(get.value(button.link));
return 0;
})
.set("goon", goon)
@@ -29039,11 +25280,7 @@ game.import("character", function () {
event.cards.removeArray(result.links);
event.togive = result.links.slice(0);
player
- .chooseTarget(
- "选择一名其他角色获得" + get.translation(result.links),
- true,
- lib.filter.notMe
- )
+ .chooseTarget("选择一名其他角色获得" + get.translation(result.links), true, lib.filter.notMe)
.set("ai", function (target) {
var att = get.attitude(_status.event.player, target);
if (_status.event.enemy) {
@@ -29118,10 +25355,7 @@ game.import("character", function () {
.chooseControl(controls)
.set("ai", function () {
var trigger = _status.event.getTrigger();
- if (
- trigger.target.countCards("he") &&
- get.attitude(_status.event.player, trigger.target) < 0
- ) {
+ if (trigger.target.countCards("he") && get.attitude(_status.event.player, trigger.target) < 0) {
return "discard_card";
} else {
return "draw_card";
@@ -29133,10 +25367,7 @@ game.import("character", function () {
player.draw();
player.logSkill("moukui");
} else if (result.control == "discard_card" && trigger.target.countCards("he")) {
- player.discardPlayerCard(trigger.target, "he", true).logSkill = [
- "moukui",
- trigger.target,
- ];
+ player.discardPlayerCard(trigger.target, "he", true).logSkill = ["moukui", trigger.target];
} else event.finish();
"step 2";
player.addTempSkill("moukui2", "shaEnd");
@@ -29160,22 +25391,14 @@ game.import("character", function () {
audio: 2,
trigger: { global: ["loseAfter", "loseAsyncAfter"] },
filter: function (event, player) {
- if (event.type != "discard" || _status.currentPhase == player || event.getlx === false)
- return false;
+ if (event.type != "discard" || _status.currentPhase == player || event.getlx === false) return false;
if (event.name == "lose" && event.player == player) return false;
if (player.hasSkill("shenxian2")) return false;
var cards = event.cards.slice(0);
var evt = event.getl(player);
if (evt && evt.cards) cards.removeArray(evt.cards);
for (var i = 0; i < cards.length; i++) {
- if (
- get.type(
- cards[i],
- null,
- event.hs && event.hs.includes(cards[i]) ? event.player : false
- ) == "basic" &&
- cards[i].original != "j"
- ) {
+ if (get.type(cards[i], null, event.hs && event.hs.includes(cards[i]) ? event.player : false) == "basic" && cards[i].original != "j") {
return true;
}
}
@@ -29229,13 +25452,7 @@ game.import("character", function () {
},
trigger: { player: "useCard1" },
filter: function (event, player) {
- if (
- _status.currentPhase == player &&
- event.card.name == "sha" &&
- get.number(event.card) > player.storage.qiangwu &&
- event.addCount !== false
- )
- return true;
+ if (_status.currentPhase == player && event.card.name == "sha" && get.number(event.card) > player.storage.qiangwu && event.addCount !== false) return true;
return false;
},
forced: true,
@@ -29252,32 +25469,18 @@ game.import("character", function () {
audio: 2,
trigger: { global: "phaseUseBegin" },
filter: function (event, player) {
- return (
- /*(get.mode()!='guozhan'||event.player!=player)&&*/ event.player.isIn() &&
- player.countCards("h") > 0 &&
- event.player.hasUseTarget({ name: "jiu" }, null, true)
- );
+ return /*(get.mode()!='guozhan'||event.player!=player)&&*/ event.player.isIn() && player.countCards("h") > 0 && event.player.hasUseTarget({ name: "jiu" }, null, true);
},
direct: true,
preHidden: true,
content: function () {
"step 0";
var nono = Math.abs(get.attitude(player, trigger.player)) < 3;
- if (
- player == trigger.player ||
- get.damageEffect(trigger.player, player, player) <= 0 ||
- !trigger.player.hasUseTarget({ name: "jiu" }, null, true)
- ) {
+ if (player == trigger.player || get.damageEffect(trigger.player, player, player) <= 0 || !trigger.player.hasUseTarget({ name: "jiu" }, null, true)) {
nono = true;
} else if (trigger.player.hp > 2) {
nono = true;
- } else if (
- trigger.player.hp > 1 &&
- player.countCards("h") < 3 &&
- trigger.player.canUse("sha", player) &&
- !player.countCards("h", "shan") &&
- trigger.player.countCards("h") >= 3
- ) {
+ } else if (trigger.player.hp > 1 && player.countCards("h") < 3 && trigger.player.canUse("sha", player) && !player.countCards("h", "shan") && trigger.player.countCards("h") >= 3) {
nono = true;
}
var next = player.chooseToDiscard(get.prompt2("zhendu", trigger.player));
@@ -29376,11 +25579,9 @@ game.import("character", function () {
},
content: function () {
"step 0";
- player
- .chooseCardButton(target, target.getCards("h"))
- .set("filterButton", function (button) {
- return get.color(button.link) == "black";
- });
+ player.chooseCardButton(target, target.getCards("h")).set("filterButton", function (button) {
+ return get.color(button.link) == "black";
+ });
"step 1";
if (result.bool) {
target.discard(result.links[0]);
@@ -29413,14 +25614,7 @@ game.import("character", function () {
game.addGlobalSkill("shoucheng_draw", player);
},
trigger: {
- global: [
- "equipAfter",
- "addJudgeAfter",
- "loseAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["equipAfter", "addJudgeAfter", "loseAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
audio: 2,
direct: true,
@@ -29451,8 +25645,7 @@ game.import("character", function () {
"step 2";
if (result.bool) {
player.logSkill(event.name, target);
- if (player !== target && (get.mode() !== "identity" || player.identity !== "nei"))
- player.addExpose(0.15);
+ if (player !== target && (get.mode() !== "identity" || player.identity !== "nei")) player.addExpose(0.15);
target.draw();
}
"step 3";
@@ -29465,7 +25658,7 @@ game.import("character", function () {
draw: {
trigger: { player: "dieAfter" },
filter(event, player) {
- return !game.hasPlayer((current) => {
+ return !game.hasPlayer(current => {
return current.hasSkill("shoucheng");
}, true);
},
@@ -29475,9 +25668,8 @@ game.import("character", function () {
ai: {
noh: true,
skillTagFilter(player, tag, arg) {
- if (player === _status.currentPhase || player.countCards("h") !== 1)
- return false;
- return game.hasPlayer((current) => {
+ if (player === _status.currentPhase || player.countCards("h") !== 1) return false;
+ return game.hasPlayer(current => {
return current.hasSkill("shoucheng") && player.isFriendOf(current);
});
},
@@ -29494,18 +25686,10 @@ game.import("character", function () {
},
check: function (event, player) {
var num = game.countPlayer(function (current) {
- if (
- current.countCards("he") &&
- current != player &&
- get.attitude(player, current) <= 0
- ) {
+ if (current.countCards("he") && current != player && get.attitude(player, current) <= 0) {
return true;
}
- if (
- current.countCards("j") &&
- current != player &&
- get.attitude(player, current) > 0
- ) {
+ if (current.countCards("j") && current != player && get.attitude(player, current) > 0) {
return true;
}
});
@@ -29605,12 +25789,7 @@ game.import("character", function () {
"step 1";
target.addSkills("yongjue");
"step 2";
- target.markSkillCharacter(
- "yongjue",
- player,
- "存嗣",
- '【勇决】
每当其他角色于回合内使用一张杀,若目标不是你,你可以获得之,每回合限一次
'
- );
+ target.markSkillCharacter("yongjue", player, "存嗣", '【勇决】
每当其他角色于回合内使用一张杀,若目标不是你,你可以获得之,每回合限一次
');
player.turnOver();
},
intro: {
@@ -29737,8 +25916,7 @@ game.import("character", function () {
next.set(
"eff",
(function () {
- if (trigger.player.hasSkillTag("noe"))
- return get.attitude(_status.event.player, trigger.player);
+ if (trigger.player.hasSkillTag("noe")) return get.attitude(_status.event.player, trigger.player);
return get.damageEffect(trigger.player, player, _status.event.player);
})()
);
@@ -29746,11 +25924,7 @@ game.import("character", function () {
if (result.bool) {
if (get.mode() !== "identity" || player.identity !== "nei") player.addExpose(0.15);
trigger.player
- .chooseToDiscard(
- "he",
- "弃置一张装备牌并令" + get.translation(player) + "摸一张牌,或受到1点伤害",
- { type: "equip" }
- )
+ .chooseToDiscard("he", "弃置一张装备牌并令" + get.translation(player) + "摸一张牌,或受到1点伤害", { type: "equip" })
.set("ai", function (card) {
if (_status.event.damage > 0) return 0;
if (_status.event.noe) return 12 - get.value(card);
@@ -29779,12 +25953,7 @@ game.import("character", function () {
return false;
},
filter: function (event, player) {
- return (
- event.player != player &&
- event.parent.name == "damage" &&
- event.parent.source &&
- event.parent.source != event.player
- );
+ return event.player != player && event.parent.name == "damage" && event.parent.source && event.parent.source != event.player;
},
content: function () {
"step 0";
@@ -29817,12 +25986,7 @@ game.import("character", function () {
return false;
},
filter: function (event, player) {
- return (
- event.player != player &&
- event.source &&
- event.source != player &&
- event.source != event.player
- );
+ return event.player != player && event.source && event.source != player && event.source != event.player;
},
content: function () {
"step 0";
@@ -29849,13 +26013,7 @@ game.import("character", function () {
sijian: {
trigger: {
player: "loseAfter",
- global: [
- "equipAfter",
- "addJudgeAfter",
- "gainAfter",
- "loseAsyncAfter",
- "addToExpansionAfter",
- ],
+ global: ["equipAfter", "addJudgeAfter", "gainAfter", "loseAsyncAfter", "addToExpansionAfter"],
},
direct: true,
audio: 2,
@@ -29869,13 +26027,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("sijian"),
- "弃置一名其他角色的一张牌",
- function (card, player, target) {
- return player != target && target.countCards("he") > 0;
- }
- )
+ .chooseTarget(get.prompt("sijian"), "弃置一名其他角色的一张牌", function (card, player, target) {
+ return player != target && target.countCards("he") > 0;
+ })
.set("ai", function (target) {
return -get.attitude(_status.event.player, target);
})
@@ -29941,10 +26095,7 @@ game.import("character", function () {
audio: 2,
trigger: { global: "phaseJieshuBegin" },
filter: function (event, player) {
- return (
- event.player.countCards("h") <= 1 &&
- (player == event.player || player.hasSkill("junbing"))
- );
+ return event.player.countCards("h") <= 1 && (player == event.player || player.hasSkill("junbing"));
},
direct: true,
checkx: function (target, player) {
@@ -29964,17 +26115,8 @@ game.import("character", function () {
event.player = trigger.player;
var prompt;
if (player == event.player) prompt = "是否发动【郡兵】摸一张牌?";
- else
- prompt =
- "###是否对" +
- get.translation(event.target) +
- "发动【郡兵】?###" +
- (event.player == event.target
- ? "摸一张牌"
- : "摸一张牌,将所有手牌交给该角色,然后该角色交给你等量的手牌");
- event.player
- .chooseBool(prompt)
- .set("choice", lib.skill.junbing.checkx(event.target, event.player));
+ else prompt = "###是否对" + get.translation(event.target) + "发动【郡兵】?###" + (event.player == event.target ? "摸一张牌" : "摸一张牌,将所有手牌交给该角色,然后该角色交给你等量的手牌");
+ event.player.chooseBool(prompt).set("choice", lib.skill.junbing.checkx(event.target, event.player));
"step 1";
if (!result.bool) {
event.finish();
@@ -29991,13 +26133,7 @@ game.import("character", function () {
var he = target.getCards("he");
if (!he.length) event.finish();
else if (he.length <= num) event._result = { cards: he };
- else
- target.chooseCard(
- "选择还给" + get.translation(player) + "的牌",
- true,
- event.num,
- "he"
- );
+ else target.chooseCard("选择还给" + get.translation(player) + "的牌", true, event.num, "he");
"step 4";
target.give(result.cards, player);
},
@@ -30101,13 +26237,9 @@ game.import("character", function () {
event.count = trigger.num;
"step 1";
player
- .chooseTarget(
- get.prompt("shushen"),
- "令一名其他角色选择摸两张牌或回复1点体力",
- function (card, player, target) {
- return target != player;
- }
- )
+ .chooseTarget(get.prompt("shushen"), "令一名其他角色选择摸两张牌或回复1点体力", function (card, player, target) {
+ return target != player;
+ })
.set("ai", function (target) {
return get.attitude(_status.event.player, target);
});
@@ -30346,21 +26478,12 @@ game.import("character", function () {
audioname: ["gz_zhugeke"],
enable: ["chooseToUse", "chooseToRespond"],
hiddenCard: function (player, name) {
- if (
- player != _status.currentPhase &&
- get.type(name) == "basic" &&
- lib.inpile.includes(name)
- )
- return true;
+ if (player != _status.currentPhase && get.type(name) == "basic" && lib.inpile.includes(name)) return true;
},
filter: function (event, player) {
if (event.responded || player == _status.currentPhase || event.aocai) return false;
for (var i of lib.inpile) {
- if (
- get.type(i) == "basic" &&
- event.filterCard(get.autoViewAs({ name: i }, "unsure"), player, event)
- )
- return true;
+ if (get.type(i) == "basic" && event.filterCard(get.autoViewAs({ name: i }, "unsure"), player, event)) return true;
}
return false;
},
@@ -30375,10 +26498,7 @@ game.import("character", function () {
}
var aozhan = player.hasSkill("aozhan");
player
- .chooseButton([
- "傲才:选择要" + (evt.name == "chooseToUse" ? "使用" : "打出") + "的牌",
- cards,
- ])
+ .chooseButton(["傲才:选择要" + (evt.name == "chooseToUse" ? "使用" : "打出") + "的牌", cards])
.set("filterButton", function (button) {
return _status.event.cards.includes(button.link);
})
@@ -30575,13 +26695,7 @@ game.import("character", function () {
for (var i = 0; i < cards.length; i++) {
var judge2 = event.judge(cards[i]);
if (judge2 > judge) return true;
- if (
- _status.currentPhase != player &&
- judge2 == judge &&
- get.color(cards[i]) == "red" &&
- get.useful(cards[i]) < 5
- )
- return true;
+ if (_status.currentPhase != player && judge2 == judge && get.color(cards[i]) == "red" && get.useful(cards[i]) < 5) return true;
}
return false;
},
@@ -30642,11 +26756,7 @@ game.import("character", function () {
card.clone.classList.remove("thrownhighlight");
}
}, trigger.player.judging[0]);
- game.addVideo(
- "deletenode",
- player,
- get.cardsInfo([trigger.player.judging[0].clone])
- );
+ game.addVideo("deletenode", player, get.cardsInfo([trigger.player.judging[0].clone]));
}
game.cardsDiscard(trigger.player.judging[0]);
trigger.player.judging[0] = event.card;
@@ -30716,11 +26826,7 @@ game.import("character", function () {
return (
player.hasSkill("duwu2") == false &&
game.hasPlayer(function (current) {
- return (
- current.hp > 0 &&
- current.hp <= player.countCards("he") &&
- player.inRange(current)
- );
+ return current.hp > 0 && current.hp <= player.countCards("he") && player.inRange(current);
})
);
},
@@ -30733,24 +26839,13 @@ game.import("character", function () {
complexSelect: true,
complexCard: true,
filterTarget: function (card, player, target) {
- return (
- target != player &&
- target.hp > 0 &&
- player.inRange(target) &&
- ui.selected.cards.length == target.hp
- );
+ return target != player && target.hp > 0 && player.inRange(target) && ui.selected.cards.length == target.hp;
},
check: function (card) {
var player = _status.event.player;
if (
game.hasPlayer(function (current) {
- return (
- current != player &&
- current.hp > 0 &&
- player.inRange(current) &&
- ui.selected.cards.length == current.hp &&
- get.damageEffect(current, player, player) > 0
- );
+ return current != player && current.hp > 0 && player.inRange(current) && ui.selected.cards.length == current.hp && get.damageEffect(current, player, player) > 0;
})
)
return 0;
@@ -30876,8 +26971,7 @@ game.import("character", function () {
player.logSkill("bifa", result.targets[0]);
event.card = result.cards[0];
target.storage.bifa2 = [result.cards[0], player];
- if (!_status.connectMode && player.isUnderControl(true))
- player.$giveAuto(result.cards[0], target, false);
+ if (!_status.connectMode && player.isUnderControl(true)) player.$giveAuto(result.cards[0], target, false);
else player.$give(1, target, false);
target.addToExpansion(result.cards[0]).gaintag.add("bifa2");
} else event.finish();
@@ -30897,29 +26991,20 @@ game.import("character", function () {
charlotte: true,
audio: false,
filter: function (event, player) {
- return (
- player.storage.bifa2 &&
- player.getExpansions("bifa2").includes(player.storage.bifa2[0])
- );
+ return player.storage.bifa2 && player.getExpansions("bifa2").includes(player.storage.bifa2[0]);
},
content: function () {
"step 0";
if (player.storage.bifa2[1].isIn() && player.countCards("h")) {
player
- .chooseCard(
- get.translation(player.storage.bifa2[1]) + "的笔伐牌为:",
- function (card) {
- return get.type(card, "trick") == _status.event.type;
- }
- )
+ .chooseCard(get.translation(player.storage.bifa2[1]) + "的笔伐牌为:", function (card) {
+ return get.type(card, "trick") == _status.event.type;
+ })
.set("ai", function (card) {
return 8 - get.value(card);
})
.set("type", get.type(player.storage.bifa2[0], "trick"))
- .set("promptx", [
- [player.storage.bifa2[0]],
- "请交给其一张与此牌类别相同的手牌,否则失去1点体力",
- ]);
+ .set("promptx", [[player.storage.bifa2[0]], "请交给其一张与此牌类别相同的手牌,否则失去1点体力"]);
} else {
event.directfalse = true;
}
@@ -31032,8 +27117,7 @@ game.import("character", function () {
player.removeAdditionalSkill("baobian");
var list = [];
if (player.hp <= 3) {
- if (trigger.num != undefined && trigger.num < 0 && player.hp - trigger.num > 1)
- player.logSkill("baobian");
+ if (trigger.num != undefined && trigger.num < 0 && player.hp - trigger.num > 1) player.logSkill("baobian");
list.push("oltiaoxin");
}
if (player.hp <= 2) {
@@ -31064,8 +27148,7 @@ game.import("character", function () {
trigger: { player: ["useCard", "respond"] },
filter: function (event, player) {
if (event.card.name != "sha" && event.card.name != "shan") return false;
- if (!event.skill || event.skill.indexOf("fanghun") + event.skill.indexOf("longdan") == -2)
- return false;
+ if (!event.skill || event.skill.indexOf("fanghun") + event.skill.indexOf("longdan") == -2) return false;
var target = lib.skill.chongzhen.logTarget(event, player);
return target && target.countGainableCards(player, "h") > 0;
},
@@ -31147,22 +27230,11 @@ game.import("character", function () {
"step 0";
var cards = player.getCards("he");
player.removeSkill("lihun2");
- if (
- player.storage.lihun.classList.contains("dead") ||
- player.storage.lihun.hp <= 0 ||
- cards.length == 0
- ) {
+ if (player.storage.lihun.classList.contains("dead") || player.storage.lihun.hp <= 0 || cards.length == 0) {
event.finish();
} else {
- if (cards.length < player.storage.lihun.hp)
- event._result = { bool: true, cards: cards };
- else
- player.chooseCard(
- "he",
- true,
- player.storage.lihun.hp,
- "离魂:选择要交给" + get.translation(player.storage.lihun) + "的牌"
- );
+ if (cards.length < player.storage.lihun.hp) event._result = { bool: true, cards: cards };
+ else player.chooseCard("he", true, player.storage.lihun.hp, "离魂:选择要交给" + get.translation(player.storage.lihun) + "的牌");
}
"step 1";
player.give(result.cards, player.storage.lihun);
@@ -31216,10 +27288,7 @@ game.import("character", function () {
game.delay();
player
.chooseTarget(true, function (card, player, target) {
- return (
- get.distance(_status.event.thisTarget, target) <= 1 &&
- target.countCards("hej")
- );
+ return get.distance(_status.event.thisTarget, target) <= 1 && target.countCards("hej");
})
.set("ai", function (target) {
var attitude = get.attitude(_status.event.player, target);
@@ -31324,12 +27393,7 @@ game.import("character", function () {
}
var players = game.filterPlayer();
for (var i = 0; i < players.length; i++) {
- if (
- players[i].countCards("h") &&
- players[i] != target &&
- players[i] != player &&
- get.attitude(player, players[i]) < 0
- ) {
+ if (players[i].countCards("h") && players[i] != target && players[i] != player && get.attitude(player, players[i]) < 0) {
break;
}
}
@@ -31351,11 +27415,7 @@ game.import("character", function () {
}
var players = game.filterPlayer();
for (var i = 0; i < players.length; i++) {
- if (
- players[i] != event.target1 &&
- players[i] != player &&
- event.target1.canCompare(players[i])
- ) {
+ if (players[i] != event.target1 && players[i] != player && event.target1.canCompare(players[i])) {
break;
}
}
@@ -31389,11 +27449,8 @@ game.import("character", function () {
"step 4";
if (!result.tie) {
if (result.bool) {
- if (event.target1.canUse({ name: "sha", isCard: true }, event.target2, false))
- event.target1.useCard({ name: "sha", isCard: true }, event.target2);
- } else if (
- event.target2.canUse({ name: "sha", isCard: true }, event.target1, false)
- ) {
+ if (event.target1.canUse({ name: "sha", isCard: true }, event.target2, false)) event.target1.useCard({ name: "sha", isCard: true }, event.target2);
+ } else if (event.target2.canUse({ name: "sha", isCard: true }, event.target1, false)) {
event.target2.useCard({ name: "sha", isCard: true }, event.target1);
}
}
@@ -31465,9 +27522,7 @@ game.import("character", function () {
if (result.bool) {
event.card = result.links[0];
if (player.canEquip(event.card)) {
- player.chooseBool(
- "是否将" + get.translation(event.card) + "置入自己的装备区?"
- ).ai = function () {
+ player.chooseBool("是否将" + get.translation(event.card) + "置入自己的装备区?").ai = function () {
return true;
};
} else event._result = { bool: false };
@@ -31496,13 +27551,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("xinfu_lingren"),
- "选择一名目标角色并猜测其手牌构成",
- function (card, player, target) {
- return _status.event.targets.includes(target);
- }
- )
+ .chooseTarget(get.prompt("xinfu_lingren"), "选择一名目标角色并猜测其手牌构成", function (card, player, target) {
+ return _status.event.targets.includes(target);
+ })
.set("ai", function (target) {
return 2 - get.attitude(_status.event.player, target);
})
@@ -31517,42 +27568,36 @@ game.import("character", function () {
trick: false,
equip: false,
};
- player
- .chooseButton(
- ["凌人:猜测其有哪些类别的手牌", [["basic", "trick", "equip"], "vcard"]],
- [0, 3],
- true
- )
- .set("ai", function (button) {
- switch (button.link[2]) {
- case "basic":
- var rand = 0.95;
- if (!target.countCards("h", { type: ["basic"] })) rand = 0.05;
- if (!target.countCards("h")) rand = 0;
- return Math.random() < rand ? true : false;
- case "trick":
- var rand = 0.9;
- if (!target.countCards("h", { type: ["trick", "delay"] })) rand = 0.1;
- if (!target.countCards("h")) rand = 0;
- return Math.random() < rand ? true : false;
- case "equip":
- var rand = 0.75;
- if (!target.countCards("h", { type: ["equip"] })) rand = 0.25;
- if (!target.countCards("h")) rand = 0;
- return Math.random() < rand ? true : false;
- }
- });
+ player.chooseButton(["凌人:猜测其有哪些类别的手牌", [["basic", "trick", "equip"], "vcard"]], [0, 3], true).set("ai", function (button) {
+ switch (button.link[2]) {
+ case "basic":
+ var rand = 0.95;
+ if (!target.countCards("h", { type: ["basic"] })) rand = 0.05;
+ if (!target.countCards("h")) rand = 0;
+ return Math.random() < rand ? true : false;
+ case "trick":
+ var rand = 0.9;
+ if (!target.countCards("h", { type: ["trick", "delay"] })) rand = 0.1;
+ if (!target.countCards("h")) rand = 0;
+ return Math.random() < rand ? true : false;
+ case "equip":
+ var rand = 0.75;
+ if (!target.countCards("h", { type: ["equip"] })) rand = 0.25;
+ if (!target.countCards("h")) rand = 0;
+ return Math.random() < rand ? true : false;
+ }
+ });
} else {
player.storage.counttrigger.xinfu_lingren--;
event.finish();
}
"step 2";
if (result.bool) {
- var choices = result.links.map((i) => i[2]);
+ var choices = result.links.map(i => i[2]);
if (!event.isMine() && !event.isOnline()) game.delayx();
var list = [];
event.num = 0;
- ["basic", "trick", "equip"].forEach((type) => {
+ ["basic", "trick", "equip"].forEach(type => {
if (choices.includes(type) == target.hasCard({ type: type }, "h")) event.num++;
});
}
@@ -31603,10 +27648,7 @@ game.import("character", function () {
},
content: function () {
"step 0";
- if (
- get.itemtype(trigger.cards) == "cards" &&
- get.position(trigger.cards[0], true) == "o"
- ) {
+ if (get.itemtype(trigger.cards) == "cards" && get.position(trigger.cards[0], true) == "o") {
player.gain(trigger.cards, "gain2");
}
player.draw("nodelay");
@@ -31659,14 +27701,12 @@ game.import("character", function () {
audio: "xinfu_fujian",
trigger: { player: ["phaseZhunbeiBegin", "phaseJieshuBegin"] },
filter(event, player) {
- return game.hasPlayer(
- (target) => target != player && target.countCards("h") && !target.isMaxHandcard()
- );
+ return game.hasPlayer(target => target != player && target.countCards("h") && !target.isMaxHandcard());
},
forced: true,
async content(event, trigger, player) {
const target = game
- .filterPlayer((target) => {
+ .filterPlayer(target => {
return target != player && target.countCards("h") && !target.isMaxHandcard();
})
.randomGet();
@@ -31695,11 +27735,7 @@ game.import("character", function () {
if (
(player.countMark("xinfu_xionghuo") >= 2 ||
!game.hasPlayer(function (current) {
- return (
- current != player &&
- get.attitude(player, current) < 0 &&
- current.hasMark("xinfu_xionghuo")
- );
+ return current != player && get.attitude(player, current) < 0 && current.hasMark("xinfu_xionghuo");
})) &&
player.countCards("h", function (card) {
return (
@@ -31792,10 +27828,7 @@ game.import("character", function () {
logTarget: "player",
content: function () {
"step 0";
- trigger.player.removeMark(
- "xinfu_xionghuo",
- trigger.player.countMark("xinfu_xionghuo")
- );
+ trigger.player.removeMark("xinfu_xionghuo", trigger.player.countMark("xinfu_xionghuo"));
"step 1";
var num = get.rand(0, 2);
switch (num) {
@@ -31822,13 +27855,7 @@ game.import("character", function () {
if(list.length) player.gain(list,trigger.player,'giveAuto','bySelf');
*/
const cards = trigger.player.getGainableCards(player, "he");
- if (cards.length)
- player.gain(
- cards.randomGets(2),
- trigger.player,
- "giveAuto",
- "bySelf"
- );
+ if (cards.length) player.gain(cards.randomGets(2), trigger.player, "giveAuto", "bySelf");
break;
}
"step 2";
@@ -31838,11 +27865,7 @@ game.import("character", function () {
disable: {
mod: {
playerEnabled: function (card, player, target) {
- if (
- card.name == "sha" &&
- player.getStorage("xinfu_xionghuo_disable").includes(target)
- )
- return false;
+ if (card.name == "sha" && player.getStorage("xinfu_xionghuo_disable").includes(target)) return false;
},
},
charlotte: true,
@@ -31870,25 +27893,16 @@ game.import("character", function () {
trigger: { global: "dying" },
filter: function (event, player) {
if (event.player == player) return false;
- const bool1 =
- !player.hasSkill("xinfu_xionghuo") || player.countMark("xinfu_xionghuo") < 3;
- const bool2 =
- event.player.hp < 0 &&
- get.itemtype(event.parent.cards) == "cards" &&
- event.parent.cards.some((card) => get.position(card, true) == "o");
+ const bool1 = !player.hasSkill("xinfu_xionghuo") || player.countMark("xinfu_xionghuo") < 3;
+ const bool2 = event.player.hp < 0 && get.itemtype(event.parent.cards) == "cards" && event.parent.cards.some(card => get.position(card, true) == "o");
return bool1 || bool2;
},
forced: true,
content: function () {
- if (!player.hasSkill("xinfu_xionghuo") || player.countMark("xinfu_xionghuo") < 3)
- player.addMark("xinfu_xionghuo", 1);
- if (
- trigger.player.hp < 0 &&
- get.itemtype(trigger.parent.cards) == "cards" &&
- trigger.parent.cards.some((card) => get.position(card, true) == "o")
- ) {
+ if (!player.hasSkill("xinfu_xionghuo") || player.countMark("xinfu_xionghuo") < 3) player.addMark("xinfu_xionghuo", 1);
+ if (trigger.player.hp < 0 && get.itemtype(trigger.parent.cards) == "cards" && trigger.parent.cards.some(card => get.position(card, true) == "o")) {
player.gain(
- trigger.parent.cards.filter((card) => get.position(card, true) == "o"),
+ trigger.parent.cards.filter(card => get.position(card, true) == "o"),
"gain2"
);
}
@@ -31905,15 +27919,13 @@ game.import("character", function () {
forced: true,
locked: false,
filter: function (event, player) {
- return player.phaseNumber <= 1 && game.hasPlayer((current) => current != player);
+ return player.phaseNumber <= 1 && game.hasPlayer(current => current != player);
},
content: function () {
"step 0";
- player
- .chooseTarget("荐杰:选择一名其他角色获得“龙印”", lib.filter.notMe, true)
- .set("ai", (target) => {
- return get.attitude(get.player(), target);
- });
+ player.chooseTarget("荐杰:选择一名其他角色获得“龙印”", lib.filter.notMe, true).set("ai", target => {
+ return get.attitude(get.player(), target);
+ });
"step 1";
if (result.bool) {
var target = result.targets[0];
@@ -31924,7 +27936,7 @@ game.import("character", function () {
} else event.finish();
"step 2";
if (
- game.hasPlayer((current) => {
+ game.hasPlayer(current => {
return current != player && current != target;
})
) {
@@ -31936,7 +27948,7 @@ game.import("character", function () {
},
true
)
- .set("ai", (target) => {
+ .set("ai", target => {
return get.attitude(get.player(), target);
});
} else event.finish();
@@ -31959,35 +27971,15 @@ game.import("character", function () {
mark = "jianjie_" + mark;
target.addAdditionalSkill(`${mark}_${player.playerid}`, mark);
target.markAuto(mark, [player]);
- game.log(
- player,
- "令",
- target,
- "获得了",
- `#g“${mark == "jianjie_huoji" ? "龙印" : "凤印"}”`
- );
+ game.log(player, "令", target, "获得了", `#g“${mark == "jianjie_huoji" ? "龙印" : "凤印"}”`);
},
removeMark: (mark, player, target, log) => {
if (lib.skill.jianjie.hasMark(mark, player, target, log)) {
mark = "jianjie_" + mark;
target.removeAdditionalSkill(`${mark}_${player.playerid}`);
target.unmarkAuto(mark, [player]);
- if (log)
- game.log(
- target,
- "移去了",
- player,
- "给予的",
- `#g“${mark == "jianjie_huoji" ? "龙印" : "凤印"}”`
- );
- else
- game.log(
- player,
- "移去了",
- target,
- "的",
- `#g“${mark == "jianjie_huoji" ? "龙印" : "凤印"}”`
- );
+ if (log) game.log(target, "移去了", player, "给予的", `#g“${mark == "jianjie_huoji" ? "龙印" : "凤印"}”`);
+ else game.log(player, "移去了", target, "的", `#g“${mark == "jianjie_huoji" ? "龙印" : "凤印"}”`);
}
},
subSkill: {
@@ -31999,19 +27991,13 @@ game.import("character", function () {
if (player.phaseNumber <= 1) return false;
const skill = lib.skill.jianjie;
return game.hasPlayer(function (current) {
- return (
- skill.hasMark("huoji", player, current) ||
- skill.hasMark("lianhuan", player, current)
- );
+ return skill.hasMark("huoji", player, current) || skill.hasMark("lianhuan", player, current);
});
},
filterTarget: function (card, player, target) {
if (ui.selected.targets.length == 0) {
const skill = lib.skill.jianjie;
- return (
- skill.hasMark("huoji", player, target) ||
- skill.hasMark("lianhuan", player, target)
- );
+ return skill.hasMark("huoji", player, target) || skill.hasMark("lianhuan", player, target);
}
return true;
},
@@ -32057,21 +28043,16 @@ game.import("character", function () {
trigger: { global: "die" },
filter: function (event, player) {
const skill = lib.skill.jianjie;
- return (
- skill.hasMark("huoji", player, event.player) ||
- skill.hasMark("lianhuan", player, event.player)
- );
+ return skill.hasMark("huoji", player, event.player) || skill.hasMark("lianhuan", player, event.player);
},
forced: true,
logTarget: "player",
content: function () {
"step 0";
if (lib.skill.jianjie.hasMark("huoji", player, trigger.player)) {
- player
- .chooseTarget("荐杰:选择一名角色获得“龙印”", true)
- .set("ai", (target) => {
- return get.attitude(get.player(), target);
- });
+ player.chooseTarget("荐杰:选择一名角色获得“龙印”", true).set("ai", target => {
+ return get.attitude(get.player(), target);
+ });
} else event.goto(2);
"step 1";
if (result.bool) {
@@ -32083,11 +28064,9 @@ game.import("character", function () {
} else event.finish();
"step 2";
if (lib.skill.jianjie.hasMark("lianhuan", player, trigger.player)) {
- player
- .chooseTarget("荐杰:选择一名角色获得“凤印”", true)
- .set("ai", (target) => {
- return get.attitude(get.player(), target);
- });
+ player.chooseTarget("荐杰:选择一名角色获得“凤印”", true).set("ai", target => {
+ return get.attitude(get.player(), target);
+ });
} else event.finish();
"step 3";
if (result.bool) {
@@ -32102,8 +28081,7 @@ game.import("character", function () {
marktext: "龙",
intro: {
name: "龙印",
- content:
- "出牌阶段限三次。你可以将一张红色牌当作【火攻】使用,且你以此法使用【火攻】的作用效果改为“目标角色随机展示一张手牌A,然后你可以弃置一张与A颜色相同的牌,对目标造成1点火属性伤害”。
若你同时拥有“凤印”,则你视为拥有技能〖业炎〗。(发动〖业炎〗时,弃置所有“龙印”和“凤印”)",
+ content: "出牌阶段限三次。你可以将一张红色牌当作【火攻】使用,且你以此法使用【火攻】的作用效果改为“目标角色随机展示一张手牌A,然后你可以弃置一张与A颜色相同的牌,对目标造成1点火属性伤害”。
若你同时拥有“凤印”,则你视为拥有技能〖业炎〗。(发动〖业炎〗时,弃置所有“龙印”和“凤印”)",
},
inherit: "rehuoji",
usable: 3,
@@ -32111,12 +28089,12 @@ game.import("character", function () {
viewAsFilter: function (player) {
const storage = player.getStorage("jianjie_huoji");
if (
- !storage.some((source) => {
+ !storage.some(source => {
return source.isIn() && source.hasSkill("jianjie");
})
)
return false;
- return player.hasCard((card) => get.color(card) == "red", "she");
+ return player.hasCard(card => get.color(card) == "red", "she");
},
group: ["jianjie_yeyan", "jianjie_huoji_effect"],
},
@@ -32136,23 +28114,20 @@ game.import("character", function () {
marktext: "凤",
intro: {
name: "凤印",
- content:
- "出牌阶段限三次。你可以将一张♣牌当作【铁索连环】使用或重铸,且你以此法使用【铁索连环】的目标数上限+1。
若你同时拥有“龙印”,则你视为拥有技能〖业炎〗。(发动〖业炎〗时,弃置所有“龙印”和“凤印”)",
+ content: "出牌阶段限三次。你可以将一张♣牌当作【铁索连环】使用或重铸,且你以此法使用【铁索连环】的目标数上限+1。
若你同时拥有“龙印”,则你视为拥有技能〖业炎〗。(发动〖业炎〗时,弃置所有“龙印”和“凤印”)",
},
charlotte: true,
usable: 3,
filter: function (event, player) {
const storage = player.getStorage("jianjie_lianhuan");
if (
- !storage.some((source) => {
+ !storage.some(source => {
return source.isIn() && source.hasSkill("jianjie");
})
)
return false;
- if (!player.hasCard((card) => get.suit(card) == "club", "she")) return false;
- return (
- event.type == "phase" || event.filterCard({ name: "tiesuo" }, player, event)
- );
+ if (!player.hasCard(card => get.suit(card) == "club", "she")) return false;
+ return event.type == "phase" || event.filterCard({ name: "tiesuo" }, player, event);
},
inherit: "ollianhuan",
group: ["jianjie_yeyan", "jianjie_lianhuan_effect"],
@@ -32165,11 +28140,8 @@ game.import("character", function () {
if (info.allowMultiple == false) return false;
if (event.targets && !info.multitarget) {
if (
- game.hasPlayer((current) => {
- return (
- !event.targets.includes(current) &&
- lib.filter.targetEnabled2(event.card, player, current)
- );
+ game.hasPlayer(current => {
+ return !event.targets.includes(current) && lib.filter.targetEnabled2(event.card, player, current);
})
)
return true;
@@ -32182,15 +28154,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- "是否为" + get.translation(trigger.card) + "额外指定一个目标?",
- (card, player, target) => {
- return (
- !_status.event.sourcex.includes(target) &&
- lib.filter.targetEnabled2(_status.event.card, player, target)
- );
- }
- )
+ .chooseTarget("是否为" + get.translation(trigger.card) + "额外指定一个目标?", (card, player, target) => {
+ return !_status.event.sourcex.includes(target) && lib.filter.targetEnabled2(_status.event.card, player, target);
+ })
.set("sourcex", trigger.targets)
.set("ai", function (target) {
var player = _status.event.player;
@@ -32217,10 +28183,8 @@ game.import("character", function () {
lianhuan = player.getStorage("jianjie_lianhuan");
return (
huoji.length > 0 &&
- lianhuan.some((source) => {
- return (
- huoji.includes(source) && source.isIn() && source.hasSkill("jianjie")
- );
+ lianhuan.some(source => {
+ return huoji.includes(source) && source.isIn() && source.hasSkill("jianjie");
})
);
},
@@ -32229,10 +28193,10 @@ game.import("character", function () {
var skill = lib.skill.jianjie;
var huoji = player.getStorage("jianjie_huoji").slice(0),
lianhuan = player.getStorage("jianjie_lianhuan").slice(0);
- huoji.forEach((source) => {
+ huoji.forEach(source => {
skill.removeMark("huoji", source, player, true);
});
- lianhuan.forEach((source) => {
+ lianhuan.forEach(source => {
skill.removeMark("lianhuan", source, player, true);
});
},
@@ -32260,8 +28224,7 @@ game.import("character", function () {
effect: {
target: function (card, player, target, current) {
const skill = lib.skill.jianjie;
- if (skill.hasMark("huoji", target) || skill.hasMark("lianhuan", target))
- return false;
+ if (skill.hasMark("huoji", target) || skill.hasMark("lianhuan", target)) return false;
if (player == target && get.subtype(card) == "equip2") {
if (get.equipValue(card) <= 8) return 0;
}
@@ -32299,15 +28262,10 @@ game.import("character", function () {
event.given_map = {};
"step 1";
if (event.cards.length > 1) {
- player
- .chooseCardButton("称好:请选择要分配的牌", true, event.cards, [
- 1,
- event.cards.length,
- ])
- .set("ai", function (button) {
- if (ui.selected.buttons.length == 0) return 1;
- return 0;
- });
+ player.chooseCardButton("称好:请选择要分配的牌", true, event.cards, [1, event.cards.length]).set("ai", function (button) {
+ if (ui.selected.buttons.length == 0) return 1;
+ return 0;
+ });
} else if (event.cards.length == 1) {
event._result = { links: event.cards.slice(0), bool: true };
} else {
@@ -32371,14 +28329,10 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("xinfu_wuniang"),
- "获得一名其他角色的一张牌,然后其和场上所有的“关索”摸一张牌。",
- function (card, player, target) {
- if (player == target) return false;
- return target.countGainableCards(player, "he") > 0;
- }
- )
+ .chooseTarget(get.prompt("xinfu_wuniang"), "获得一名其他角色的一张牌,然后其和场上所有的“关索”摸一张牌。", function (card, player, target) {
+ if (player == target) return false;
+ return target.countGainableCards(player, "he") > 0;
+ })
.set("ai", function (target) {
return 10 - get.attitude(_status.event.player, target);
});
@@ -32445,19 +28399,15 @@ game.import("character", function () {
animationColor: "fire",
content: function () {
"step 0";
- trigger.source
- .chooseBool("【许身】:是否将自己的一张武将牌替换为“关索”?")
- .set("ai", function () {
- return false;
- });
+ trigger.source.chooseBool("【许身】:是否将自己的一张武将牌替换为“关索”?").set("ai", function () {
+ return false;
+ });
"step 1";
if (result.bool) {
player.awakenSkill("xinfu_xushen");
player.logSkill("xinfu_xushen", trigger.source);
if (trigger.source.name2 != undefined) {
- trigger.source
- .chooseControl(trigger.source.name1, trigger.source.name2)
- .set("prompt", "请选择要更换的武将牌");
+ trigger.source.chooseControl(trigger.source.name1, trigger.source.name2).set("prompt", "请选择要更换的武将牌");
} else event._result = { control: trigger.source.name1 };
} else event.finish();
"step 2";
@@ -32508,8 +28458,7 @@ game.import("character", function () {
global: ["loseAsyncAfter", "phaseBefore"],
},
filter: function (event, player) {
- if (event.name.indexOf("lose") != 0)
- return event.name != "phase" || game.phaseNumber == 0;
+ if (event.name.indexOf("lose") != 0) return event.name != "phase" || game.phaseNumber == 0;
if (event.type != "discard" || event.getlx === false) return false;
var evt = event.getl(player);
for (var i = 0; i < evt.cards2.length; i++) {
@@ -32520,8 +28469,7 @@ game.import("character", function () {
content: function () {
if (trigger.name.indexOf("lose") !== 0) {
for (var i = 0; i < lib.suit.length; i++) {
- if (!player.hasMark("xinfu_falu_" + lib.suit[i]))
- player.addMark("xinfu_falu_" + lib.suit[i]);
+ if (!player.hasMark("xinfu_falu_" + lib.suit[i])) player.addMark("xinfu_falu_" + lib.suit[i]);
}
return;
}
@@ -32648,7 +28596,7 @@ game.import("character", function () {
}
},
ai: {
- combo: "xinfu_falu"
+ combo: "xinfu_falu",
},
},
zhenyi_spade: {
@@ -32661,13 +28609,7 @@ game.import("character", function () {
},
content: function () {
"step 0";
- var str =
- get.translation(trigger.player) +
- "的" +
- (trigger.judgestr || "") +
- "判定为" +
- get.translation(trigger.player.judging[0]) +
- ",是否发动【真仪】,弃置「紫薇♠」标记并修改判定结果?";
+ var str = get.translation(trigger.player) + "的" + (trigger.judgestr || "") + "判定为" + get.translation(trigger.player.judging[0]) + ",是否发动【真仪】,弃置「紫薇♠」标记并修改判定结果?";
player
.chooseControl("spade", "heart", "diamond", "club", "cancel2")
.set("prompt", str)
@@ -32778,13 +28720,9 @@ game.import("character", function () {
content: function () {
"step 0";
player
- .chooseTarget(
- get.prompt("xinfu_zhennan"),
- "对一名其他角色造成1-3点随机伤害",
- function (card, player, target) {
- return target != player;
- }
- )
+ .chooseTarget(get.prompt("xinfu_zhennan"), "对一名其他角色造成1-3点随机伤害", function (card, player, target) {
+ return target != player;
+ })
.set("ai", function (target) {
var player = _status.event.player;
return get.damageEffect(target, player, player);
@@ -32806,12 +28744,7 @@ game.import("character", function () {
},
dynamicTranslate: {
shanduan: function (player) {
- if (player.storage.shanduan)
- return (
- "锁定技。①摸牌/出牌/弃牌阶段开始时,你为本回合摸牌阶段摸牌数/攻击范围和使用【杀】的限制次数/手牌上限的默认值从数组R=[" +
- get.translation(player.storage.shanduan) +
- "]中分配数值。②当你于回合外受到伤害后,你令下回合〖善断①〗以此法分配的数值集合R中的最小值+1。"
- );
+ if (player.storage.shanduan) return "锁定技。①摸牌/出牌/弃牌阶段开始时,你为本回合摸牌阶段摸牌数/攻击范围和使用【杀】的限制次数/手牌上限的默认值从数组R=[" + get.translation(player.storage.shanduan) + "]中分配数值。②当你于回合外受到伤害后,你令下回合〖善断①〗以此法分配的数值集合R中的最小值+1。";
return "锁定技。①摸牌/出牌/弃牌阶段开始时,你为本回合摸牌阶段摸牌数/攻击范围和使用【杀】的限制次数/手牌上限的默认值从数组R=[1,2,3,4]中分配数值。②当你于回合外受到伤害后,你令下回合〖善断①〗以此法分配的数值集合R中的最小值+1。";
},
kunfen: function (player) {
@@ -32831,24 +28764,16 @@ game.import("character", function () {
return str;
},
youlong: function (player) {
- if (player.storage.youlong)
- return '转换技,阴,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌;阳,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。';
+ if (player.storage.youlong) return '转换技,阴,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌;阳,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。';
return '转换技,阴,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌;阳,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。';
},
luochong: function (player) {
var storage = player.getStorage("luochong");
- var str =
- "准备阶段开始时/当你于一回合首次受到伤害后,你可选择本轮内未选择过的一项(每名角色每轮限选一次):";
- var choiceList = [
- "⒈令一名角色回复1点体力。",
- "⒉令一名角色失去1点体力。",
- "⒊令一名角色弃置两张牌。",
- "⒋令一名角色摸两张牌。",
- ];
+ var str = "准备阶段开始时/当你于一回合首次受到伤害后,你可选择本轮内未选择过的一项(每名角色每轮限选一次):";
+ var choiceList = ["⒈令一名角色回复1点体力。", "⒉令一名角色失去1点体力。", "⒊令一名角色弃置两张牌。", "⒋令一名角色摸两张牌。"];
for (var i = 0; i < 4; i++) {
if (storage.includes(i)) {
- choiceList[i] =
- '' + choiceList[i] + "";
+ choiceList[i] = '' + choiceList[i] + "";
}
str += choiceList[i];
}
@@ -32873,32 +28798,24 @@ game.import("character", function () {
return "你可以声明一种牌的类型(每种类型限[3]次),并选择一种你本轮未使用过且有合法目标的的基本牌。你摸[1]张牌,然后若你有此类型的手牌,你将所有此类型的手牌当此基本牌使用。";
},
olfeibai: function (player) {
- if (player.storage.olfeibai)
- return '转换技,锁定技。阴:当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1;阳:当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。';
+ if (player.storage.olfeibai) return '转换技,锁定技。阴:当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1;阳:当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。';
return '转换技,锁定技。阴:当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1;阳:当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。';
},
olmiuyan: function (player) {
- if (player.storage.olmiuyan)
- return '转换技。你可以将一张黑色牌当做【火攻】使用。然后若此技能:处于阳状态且此牌造成了伤害,则你获得此阶段内所有被展示过的牌;处于阴状态且未造成伤害,则你令此技能失效直到本轮结束。';
+ if (player.storage.olmiuyan) return '转换技。你可以将一张黑色牌当做【火攻】使用。然后若此技能:处于阳状态且此牌造成了伤害,则你获得此阶段内所有被展示过的牌;处于阴状态且未造成伤害,则你令此技能失效直到本轮结束。';
return '转换技。你可以将一张黑色牌当做【火攻】使用。然后若此技能:处于阳状态且此牌造成了伤害,则你获得此阶段内所有被展示过的牌;处于阴状态且未造成伤害,则你令此技能失效直到本轮结束。';
},
olsaogu: function (player) {
- if (player.storage.olsaogu)
- return '转换技。①出牌阶段,你可以。阴:弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】;阳:摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色执行你当前〖扫谷①〗的分支。';
+ if (player.storage.olsaogu) return '转换技。①出牌阶段,你可以。阴:弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】;阳:摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色执行你当前〖扫谷①〗的分支。';
return '转换技。①出牌阶段,你可以。阴:弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】;阳:摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色执行你当前〖扫谷①〗的分支。';
},
oldongdao: function (player) {
- if (player.storage.oldongdao)
- return '农民的回合结束时:阴,你可以令地主进行一个额外回合;阳,其可以进行一个额外回合。';
+ if (player.storage.oldongdao) return '农民的回合结束时:阴,你可以令地主进行一个额外回合;阳,其可以进行一个额外回合。';
return '农民的回合结束时:阴,你可以令地主进行一个额外回合;阳,其可以进行一个额外回合。';
},
ollangdao: function (player) {
var str = "当你使用【杀】指定唯一目标时,你可以与该目标角色同时选择一项:";
- var list = [
- "1.令此【杀】伤害基数+1;",
- "2.令你可以为此【杀】多选择一个目标;",
- "3.令此【杀】不可被响应。",
- ];
+ var list = ["1.令此【杀】伤害基数+1;", "2.令你可以为此【杀】多选择一个目标;", "3.令此【杀】不可被响应。"];
var storage = player.getStorage("ollangdao");
list.forEach((item, index) => {
if (storage.includes(index)) {
@@ -32909,8 +28826,7 @@ game.import("character", function () {
return str;
},
olxuanzhu(player) {
- if (player.storage.olxuanzhu)
- return '转换技,每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用:阴,任意基本牌;阳,任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。';
+ if (player.storage.olxuanzhu) return '转换技,每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用:阴,任意基本牌;阳,任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。';
return '转换技,每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用:阴,任意基本牌;阳,任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。';
},
},
@@ -32929,15 +28845,7 @@ game.import("character", function () {
sunluyu: ["sunluyu", "re_sunluyu", "mb_sunluyu"],
jin_simazhao: ["jin_simazhao", "simazhao", "sp_simazhao"],
jin_wangyuanji: ["jin_wangyuanji", "wangyuanji", "sp_wangyuanji"],
- wangyun: [
- "clan_wangyun",
- "wangyun",
- "dc_wangyun",
- "re_wangyun",
- "jsrg_wangyun",
- "old_wangyun",
- "pe_wangyun",
- ],
+ wangyun: ["clan_wangyun", "wangyun", "dc_wangyun", "re_wangyun", "jsrg_wangyun", "old_wangyun", "pe_wangyun"],
zhangliang: ["xin_zhangliang", "re_zhangliang", "zhangliang"],
lingju: ["lingju", "old_lingju"],
guansuo: ["guansuo", "dc_guansuo"],
@@ -32989,8 +28897,7 @@ game.import("character", function () {
},
translate: {
xinfu_lingren: "凌人",
- xinfu_lingren_info:
- "每回合限一次。当你使用带有「伤害」标签的基本牌或普通锦囊牌指定目标后,你可以猜测其中的一个目标的手牌中是否有基本牌,锦囊牌或装备牌。若你猜中的项目数:≥1,此牌对该角色的伤害+1;≥2,你摸两张牌;≥3,你获得技能〖奸雄〗和〖行殇〗直到你的下回合开始。",
+ xinfu_lingren_info: "每回合限一次。当你使用带有「伤害」标签的基本牌或普通锦囊牌指定目标后,你可以猜测其中的一个目标的手牌中是否有基本牌,锦囊牌或装备牌。若你猜中的项目数:≥1,此牌对该角色的伤害+1;≥2,你摸两张牌;≥3,你获得技能〖奸雄〗和〖行殇〗直到你的下回合开始。",
lingren_adddamage: "凌人",
lingren_adddamage_info: "",
lingren_jianxiong: "奸雄",
@@ -32998,57 +28905,42 @@ game.import("character", function () {
lingren_xingshang: "行殇",
lingren_xingshang_info: "当有角色死亡后,你可以选择一项:1.回复1点体力。2.获得该角色的所有牌。",
xinfu_fujian: "伏间",
- xinfu_fujian_info:
- "锁定技,结束阶段,你观看一名随机的其他角色的随机X张手牌。(X为场上手牌最少的角色的手牌数)",
+ xinfu_fujian_info: "锁定技,结束阶段,你观看一名随机的其他角色的随机X张手牌。(X为场上手牌最少的角色的手牌数)",
fujian: "伏间",
fujian_info: "锁定技,准备阶段和结束阶段,你随机观看一名手牌数不为全场最多的其他角色的手牌。",
xinfu_xionghuo: "凶镬",
- xinfu_xionghuo_info:
- "游戏开始时,你获得3个“暴戾”标记(标记上限为3)。出牌阶段,你可以交给一名其他角色一个“暴戾”标记。当你对有“暴戾”标记的其他角色造成伤害时,此伤害+1。有“暴戾”标记的其他角色的出牌阶段开始时,其移去所有“暴戾”标记并随机执行一项:1.受到1点火焰伤害且本回合不能对你使用【杀】;2.失去1点体力且本回合手牌上限-1;3.你随机获得其两张牌。",
+ xinfu_xionghuo_info: "游戏开始时,你获得3个“暴戾”标记(标记上限为3)。出牌阶段,你可以交给一名其他角色一个“暴戾”标记。当你对有“暴戾”标记的其他角色造成伤害时,此伤害+1。有“暴戾”标记的其他角色的出牌阶段开始时,其移去所有“暴戾”标记并随机执行一项:1.受到1点火焰伤害且本回合不能对你使用【杀】;2.失去1点体力且本回合手牌上限-1;3.你随机获得其两张牌。",
xinfu_shajue: "杀绝",
- xinfu_shajue_info:
- "锁定技,其他角色进入濒死状态时,你获得一个“暴戾”标记。然后若其体力值小于0,你获得使其进入濒死状态的牌。",
+ xinfu_shajue_info: "锁定技,其他角色进入濒死状态时,你获得一个“暴戾”标记。然后若其体力值小于0,你获得使其进入濒死状态的牌。",
xinfu_jianjie: "荐杰",
jianjie: "荐杰",
- jianjie_info:
- "①你的第一个准备阶段开始时,你令一名其他角色获得“龙印”,然后令另一名其他角色获得“凤印”。②出牌阶段限一次。若当前回合不是你的第一个回合,则你可以移动场上的“龙印”或“凤印”。③拥有“龙印”或“凤印”的其他角色死亡时,你转移该角色的“龙印”和“凤印”。④拥有“龙印”/“凤印”的角色视为拥有〖火计〗/〖连环〗,且同时拥有这两种标记的角色视为拥有〖业炎〗。",
+ jianjie_info: "①你的第一个准备阶段开始时,你令一名其他角色获得“龙印”,然后令另一名其他角色获得“凤印”。②出牌阶段限一次。若当前回合不是你的第一个回合,则你可以移动场上的“龙印”或“凤印”。③拥有“龙印”或“凤印”的其他角色死亡时,你转移该角色的“龙印”和“凤印”。④拥有“龙印”/“凤印”的角色视为拥有〖火计〗/〖连环〗,且同时拥有这两种标记的角色视为拥有〖业炎〗。",
jianjie_huoji: "火计",
jianjie_huoji_effect: "火计",
- jianjie_huoji_info:
- "出牌阶段限三次。你可以将一张红色牌当作【火攻】使用,且你以此法使用【火攻】的作用效果改为“目标角色随机展示一张手牌A,然后你可以弃置一张与A颜色相同的牌,对目标造成1点火属性伤害”。",
+ jianjie_huoji_info: "出牌阶段限三次。你可以将一张红色牌当作【火攻】使用,且你以此法使用【火攻】的作用效果改为“目标角色随机展示一张手牌A,然后你可以弃置一张与A颜色相同的牌,对目标造成1点火属性伤害”。",
jianjie_lianhuan: "连环",
jianjie_lianhuan_effect: "连环",
- jianjie_lianhuan_info:
- "出牌阶段限三次。你可以将一张♣牌当作【铁索连环】使用或重铸,且你以此法使用【铁索连环】的目标数上限+1。",
+ jianjie_lianhuan_info: "出牌阶段限三次。你可以将一张♣牌当作【铁索连环】使用或重铸,且你以此法使用【铁索连环】的目标数上限+1。",
jianjie_yeyan: "业炎",
- jianjie_yeyan_info:
- "限定技。出牌阶段,你可以移去你所有的“龙印”和“凤印”,对一至三名角色造成至多共3点火焰伤害(你可以任意分配每名目标角色受到的伤害点数),若你将对一名角色分配2点或更多的火焰伤害,你须先弃置四张不同花色的手牌再失去3点体力。",
+ jianjie_yeyan_info: "限定技。出牌阶段,你可以移去你所有的“龙印”和“凤印”,对一至三名角色造成至多共3点火焰伤害(你可以任意分配每名目标角色受到的伤害点数),若你将对一名角色分配2点或更多的火焰伤害,你须先弃置四张不同花色的手牌再失去3点体力。",
xinfu_yinshi: "隐士",
- xinfu_yinshi_info:
- "锁定技,若你没有“龙印”和“凤印”且防具栏为空,则当你受到属性伤害或锦囊牌造成的伤害时,防止此伤害。",
+ xinfu_yinshi_info: "锁定技,若你没有“龙印”和“凤印”且防具栏为空,则当你受到属性伤害或锦囊牌造成的伤害时,防止此伤害。",
xinfu_chenghao: "称好",
- xinfu_chenghao_info:
- "当一名角色受到属性伤害后,若其存活且其武将牌横置且是伤害传导的起点,则你可以观看牌堆顶的X张牌并分配给任意角色。(X为横置的角色数量且包含该角色)",
+ xinfu_chenghao_info: "当一名角色受到属性伤害后,若其存活且其武将牌横置且是伤害传导的起点,则你可以观看牌堆顶的X张牌并分配给任意角色。(X为横置的角色数量且包含该角色)",
jianjie_faq: "关于龙凤印",
- jianjie_faq_info:
- "龙印效果:视为拥有〖火计〗。凤印效果:视为拥有〖连环〗。(均一回合限使用三次) 龙凤印齐全:视为拥有〖业炎〗,〖业炎〗发动后移除龙凤印。",
+ jianjie_faq_info: "龙印效果:视为拥有〖火计〗。凤印效果:视为拥有〖连环〗。(均一回合限使用三次) 龙凤印齐全:视为拥有〖业炎〗,〖业炎〗发动后移除龙凤印。",
xinfu_wuniang: "武娘",
- xinfu_wuniang_info:
- "当你使用或打出【杀】时,你可以获得一名其他角色的一张牌。若如此做,该角色和场上所有的“关索”各摸一张牌。",
+ xinfu_wuniang_info: "当你使用或打出【杀】时,你可以获得一名其他角色的一张牌。若如此做,该角色和场上所有的“关索”各摸一张牌。",
xinfu_xushen: "许身",
- xinfu_xushen_info:
- "限定技,当一名男性角色使用【桃】令你脱离濒死状态时,若场上没有“关索”,则其可以将自己的一张武将牌变更为“关索”。然后你回复1点体力,并获得技能〖镇南〗。",
+ xinfu_xushen_info: "限定技,当一名男性角色使用【桃】令你脱离濒死状态时,若场上没有“关索”,则其可以将自己的一张武将牌变更为“关索”。然后你回复1点体力,并获得技能〖镇南〗。",
xinfu_zhennan: "镇南",
xinfu_zhennan_info: "当你成为【南蛮入侵】的目标时,你可以对一名其他角色造成1-3点随机伤害。",
xinfu_falu: "法箓",
- xinfu_falu_info:
- "锁定技,游戏开始时,你获得「紫薇」「后土」「玉清」「勾陈」标记各一个。当你的牌因弃置而进入弃牌堆后,根据这些牌的花色,你获得对应的标记:黑桃,你获得1枚「紫薇」;梅花,你获得1枚「后土」;红桃,你获得1枚「玉清」;方块,你获得1枚「勾陈」。(每种标记限拥有1个)",
+ xinfu_falu_info: "锁定技,游戏开始时,你获得「紫薇」「后土」「玉清」「勾陈」标记各一个。当你的牌因弃置而进入弃牌堆后,根据这些牌的花色,你获得对应的标记:黑桃,你获得1枚「紫薇」;梅花,你获得1枚「后土」;红桃,你获得1枚「玉清」;方块,你获得1枚「勾陈」。(每种标记限拥有1个)",
xinfu_dianhua: "点化",
- xinfu_dianhua_info:
- "准备阶段或结束阶段,你可以观看牌堆顶的X张牌(X为你的「紫薇」「后土」「玉清」「勾陈」标记数的总和)。若如此做,你将这些牌以任意顺序放回牌堆顶或牌堆底。",
+ xinfu_dianhua_info: "准备阶段或结束阶段,你可以观看牌堆顶的X张牌(X为你的「紫薇」「后土」「玉清」「勾陈」标记数的总和)。若如此做,你将这些牌以任意顺序放回牌堆顶或牌堆底。",
xinfu_zhenyi: "真仪",
- xinfu_zhenyi_info:
- "你可以在以下时机弃置相应的标记来发动以下效果:一名角色的判定牌生效前,你可以弃置一枚「紫薇」,然后将判定结果改为任意花色且点数为5;你的回合外,你可以弃置一枚「后土」,然后将你的一张手牌当【桃】使用;当你造成伤害时,你可以弃置一枚「玉清」,然后令此伤害+1;当你受到伤害后,你可以弃置一张「勾陈」,然后你从牌堆中随机获得三种类型的牌各一张。",
+ xinfu_zhenyi_info: "你可以在以下时机弃置相应的标记来发动以下效果:一名角色的判定牌生效前,你可以弃置一枚「紫薇」,然后将判定结果改为任意花色且点数为5;你的回合外,你可以弃置一枚「后土」,然后将你的一张手牌当【桃】使用;当你造成伤害时,你可以弃置一枚「玉清」,然后令此伤害+1;当你受到伤害后,你可以弃置一张「勾陈」,然后你从牌堆中随机获得三种类型的牌各一张。",
zhenyi_spade: "真仪",
zhenyi_spade_info: "",
zhenyi_club: "真仪",
@@ -33174,59 +29066,44 @@ game.import("character", function () {
yuantanyuanshang: "袁谭袁尚",
xinfenyue: "奋钺",
- xinfenyue_info:
- "出牌阶段限X次(X为与你不同阵营的存活角色数),你可以与一名其他角色拼点,若你赢,根据你拼点牌的点数依次执行以下效果:不大于5,你获得其一张牌;不大于9,你获得牌堆里的一张【杀】; 不大于K,视为你对其使用一张雷【杀】。",
+ xinfenyue_info: "出牌阶段限X次(X为与你不同阵营的存活角色数),你可以与一名其他角色拼点,若你赢,根据你拼点牌的点数依次执行以下效果:不大于5,你获得其一张牌;不大于9,你获得牌堆里的一张【杀】; 不大于K,视为你对其使用一张雷【杀】。",
neifa: "内伐",
- neifa_info:
- "出牌阶段开始时,你可以摸两张牌或获得场上的一张牌,然后弃置一张牌。若弃置的牌是基本牌,本回合你不能使用锦囊和装备牌,且【杀】的使用次数+X且目标+1;若弃置的不是基本牌,本回合你不能使用基本牌,且使用普通锦囊牌选择目标时可以增加或减少一个目标,前两次使用装备牌时摸X张牌(X为你发动〖内伐〗弃牌后手牌中因〖内伐〗而不能使用的牌的数量且最多为5)。",
+ neifa_info: "出牌阶段开始时,你可以摸两张牌或获得场上的一张牌,然后弃置一张牌。若弃置的牌是基本牌,本回合你不能使用锦囊和装备牌,且【杀】的使用次数+X且目标+1;若弃置的不是基本牌,本回合你不能使用基本牌,且使用普通锦囊牌选择目标时可以增加或减少一个目标,前两次使用装备牌时摸X张牌(X为你发动〖内伐〗弃牌后手牌中因〖内伐〗而不能使用的牌的数量且最多为5)。",
neifa_use: "内伐",
yuxu: "誉虚",
- yuxu_info:
- "当你于出牌阶段内使用的牌结算结束后,若你此前于此阶段发动过〖誉虚〗的次数为:偶数,你可以摸一张牌;奇数,你弃置一张牌。",
+ yuxu_info: "当你于出牌阶段内使用的牌结算结束后,若你此前于此阶段发动过〖誉虚〗的次数为:偶数,你可以摸一张牌;奇数,你弃置一张牌。",
yuxu2: "誉虚(弃牌)",
xjshijian: "实荐",
- xjshijian_info:
- "一名其他角色于其回合内使用的第二张牌结算完成后,你可弃置一张牌并令其获得技能〖誉虚〗直到回合结束。",
+ xjshijian_info: "一名其他角色于其回合内使用的第二张牌结算完成后,你可弃置一张牌并令其获得技能〖誉虚〗直到回合结束。",
mouzhu: "谋诛",
- mouzhu_info:
- "出牌阶段限一次,你可以令一名有手牌的其他角色交给你一张手牌。然后若你的手牌数大于其,其选择视为对你使用一张【杀】或【决斗】。",
+ mouzhu_info: "出牌阶段限一次,你可以令一名有手牌的其他角色交给你一张手牌。然后若你的手牌数大于其,其选择视为对你使用一张【杀】或【决斗】。",
yanhuo: "延祸",
yanhuo_info: "当你死亡时,你可以依次弃置一名其他角色的X张牌。(X为你的牌数)",
niluan: "逆乱",
- niluan_info:
- "其他角色的结束阶段开始时,若其本回合内使用过【杀】或其体力值大于你,则你可以将一张黑色牌当做【杀】使用。",
+ niluan_info: "其他角色的结束阶段开始时,若其本回合内使用过【杀】或其体力值大于你,则你可以将一张黑色牌当做【杀】使用。",
cuorui: "挫锐",
- cuorui_info:
- "锁定技,游戏开始时,你摸X张牌(X为你的体力上限)。锁定技,限定技,判定阶段开始前,若你的判定区有牌,你跳过此阶段。",
- cuorui_info_single:
- "锁定技,你的起始手牌数改为X+2(X为你剩余的备选武将数)。你跳过登场后的第一个判定阶段。",
+ cuorui_info: "锁定技,游戏开始时,你摸X张牌(X为你的体力上限)。锁定技,限定技,判定阶段开始前,若你的判定区有牌,你跳过此阶段。",
+ cuorui_info_single: "锁定技,你的起始手牌数改为X+2(X为你剩余的备选武将数)。你跳过登场后的第一个判定阶段。",
liewei: "裂围",
liewei_info: "当你杀死一名角色后,你可以摸三张牌。",
weicheng: "伪诚",
- weicheng_info:
- "当牌从你的手牌区移动至其他角色的手牌区后,若你的手牌数小于体力值,你可以摸一张牌。",
+ weicheng_info: "当牌从你的手牌区移动至其他角色的手牌区后,若你的手牌数小于体力值,你可以摸一张牌。",
daoshu: "盗书",
- daoshu_info:
- "出牌阶段限一次。你可以选择一个花色并获得一名其他角色的一张手牌。若此牌花色与你选择的相同,则你对其造成1点伤害且你〖盗书〗于此阶段内可使用的次数上限+1。否则你须交给其一张与此牌花色不同的手牌(没有则展示手牌)。",
+ daoshu_info: "出牌阶段限一次。你可以选择一个花色并获得一名其他角色的一张手牌。若此牌花色与你选择的相同,则你对其造成1点伤害且你〖盗书〗于此阶段内可使用的次数上限+1。否则你须交给其一张与此牌花色不同的手牌(没有则展示手牌)。",
xinshanjia: "缮甲",
- xinshanjia_info:
- "出牌阶段开始时,你可以摸三张牌,然后弃置3-X张牌(X为你本局游戏内不因使用而失去过的装备牌的数目且至多为3)。若你没有以此法弃置:基本牌,此阶段你使用【杀】的次数上限+1;锦囊牌,此阶段你使用牌无距离限制;基本牌或锦囊牌,你可以视为使用一张【杀】。",
+ xinshanjia_info: "出牌阶段开始时,你可以摸三张牌,然后弃置3-X张牌(X为你本局游戏内不因使用而失去过的装备牌的数目且至多为3)。若你没有以此法弃置:基本牌,此阶段你使用【杀】的次数上限+1;锦囊牌,此阶段你使用牌无距离限制;基本牌或锦囊牌,你可以视为使用一张【杀】。",
new_meibu: "魅步",
- new_meibu_info:
- "其他角色的出牌阶段开始时,若你在其攻击范围内,你可以弃置一张牌,令该角色于本回合内获得技能〖止息〗。若你以此法弃置的牌不是【杀】或黑色锦囊牌,则本回合其与你的距离视为1。",
+ new_meibu_info: "其他角色的出牌阶段开始时,若你在其攻击范围内,你可以弃置一张牌,令该角色于本回合内获得技能〖止息〗。若你以此法弃置的牌不是【杀】或黑色锦囊牌,则本回合其与你的距离视为1。",
new_mumu: "穆穆",
- new_mumu_info:
- "出牌阶段开始时,你可以选择一项:1.弃置一名其他角色装备区里的一张牌;2.获得一名角色装备区里的一张防具牌,若如此做,你本回合不能使用【杀】。",
+ new_mumu_info: "出牌阶段开始时,你可以选择一项:1.弃置一名其他角色装备区里的一张牌;2.获得一名角色装备区里的一张防具牌,若如此做,你本回合不能使用【杀】。",
new_zhixi: "止息",
- new_zhixi_info:
- "锁定技。出牌阶段内,若你使用过锦囊牌或使用过的牌数不小于X,则你不能使用牌(X为你的体力值)。",
+ new_zhixi_info: "锁定技。出牌阶段内,若你使用过锦囊牌或使用过的牌数不小于X,则你不能使用牌(X为你的体力值)。",
new_mumu2: "穆穆",
new_mumu2_info: "锁定技,你不能使用【杀】。",
new_xingwu: "星舞",
- new_xingwu_info:
- "弃牌阶段开始时,你可以将一张牌置于武将牌上,称为“舞”。然后你可以选择一项:①将三张“舞”置入弃牌堆;②弃置两张手牌并将武将牌翻面。若如此做,你选择一名角色,该角色弃置其装备区的所有牌并受到2点伤害(若为女性,则改为1点)。",
+ new_xingwu_info: "弃牌阶段开始时,你可以将一张牌置于武将牌上,称为“舞”。然后你可以选择一项:①将三张“舞”置入弃牌堆;②弃置两张手牌并将武将牌翻面。若如此做,你选择一名角色,该角色弃置其装备区的所有牌并受到2点伤害(若为女性,则改为1点)。",
new_luoyan: "落雁",
new_luoyan_info: "锁定技。若你的武将牌上有“舞”,则你视为拥有技能〖天香〗和〖流离〗。",
new_luoyan_tianxiang: "天香",
@@ -33234,11 +29111,9 @@ game.import("character", function () {
new_luoyan_liuli: "流离",
new_luoyan_liuli_info: "",
ol_shichou: "誓仇",
- ol_shichou_info:
- "当你使用【杀】时,你可以令至多X+1名角色也成为此【杀】的目标(X为你已损失的体力值)。",
+ ol_shichou_info: "当你使用【杀】时,你可以令至多X+1名角色也成为此【杀】的目标(X为你已损失的体力值)。",
dc_olshichou: "誓仇",
- dc_olshichou_info:
- "当你使用【杀】时,你可以令至多X名角色也成为此【杀】的目标。此牌结算结束后,若你未因【杀】造成过伤害,则你获得此【杀】(X为你已损失的体力值)。",
+ dc_olshichou_info: "当你使用【杀】时,你可以令至多X名角色也成为此【杀】的目标。此牌结算结束后,若你未因【杀】造成过伤害,则你获得此【杀】(X为你已损失的体力值)。",
zhenwei_three: "镇卫",
zhenwei_three_info: "锁定技,敌方角色至己方其他角色的距离+1。",
huanshi_three: "缓释",
@@ -33259,16 +29134,13 @@ game.import("character", function () {
yizan6: "翊赞",
yizan6_info: "你可以将一张基本牌当【杀】打出。",
longyuan: "龙渊",
- longyuan_info:
- "觉醒技 当你使用或打出基本牌时,若你已经已累计发动过3次〖翊赞〗,你将〖翊赞〗改为“你可以将一张基本牌当任意基本牌牌使用或打出”。",
+ longyuan_info: "觉醒技 当你使用或打出基本牌时,若你已经已累计发动过3次〖翊赞〗,你将〖翊赞〗改为“你可以将一张基本牌当任意基本牌牌使用或打出”。",
wuniang: "武娘",
- wuniang_info:
- "你使用或打出【杀】时,你可以获得一名其他角色的一张牌,然后该角色摸一张牌;若“关索”在场,你可令“关索”也摸一张牌。",
+ wuniang_info: "你使用或打出【杀】时,你可以获得一名其他角色的一张牌,然后该角色摸一张牌;若“关索”在场,你可令“关索”也摸一张牌。",
zhennan: "镇南",
zhennan_info: "当你成为【南蛮入侵】的目标时,你可令一名其他角色随机受到1至3点伤害。",
xushen: "许身",
- xushen_info:
- "当其他男性角色令你脱离濒死状态时,若“关索”不在场,其可以选择是否用“关索”替换其武将牌,然后你回复1点体力并获得技能〖镇南〗。",
+ xushen_info: "当其他男性角色令你脱离濒死状态时,若“关索”不在场,其可以选择是否用“关索”替换其武将牌,然后你回复1点体力并获得技能〖镇南〗。",
wanwei: "挽危",
wanwei_info: "当你因被其他角色获得或弃置而失去牌时,你可以改为自己选择失去的牌。",
@@ -33276,288 +29148,212 @@ game.import("character", function () {
gzjili_info: "当你于一回合内使用或打出第X张牌时,你可以摸X张牌(X为你的攻击范围)。",
qingzhong: "清忠",
- qingzhong_info:
- "出牌阶段开始时,你可以摸两张牌,若如此做,此阶段结束时,你与手牌数最少的角色交换手牌。",
+ qingzhong_info: "出牌阶段开始时,你可以摸两张牌,若如此做,此阶段结束时,你与手牌数最少的角色交换手牌。",
weijing: "卫境",
weijing_info: "每轮限一次,当你需要使用【杀】或【闪】时,你可以视为使用一张【杀】或【闪】。",
zishu: "自书",
- zishu_info:
- "锁定技。①其他角色的回合结束时,你将手牌区里所有你于此回合得到过的牌置入弃牌堆。②当你于回合内不因〖自书②〗而得到牌后,你摸一张牌。",
+ zishu_info: "锁定技。①其他角色的回合结束时,你将手牌区里所有你于此回合得到过的牌置入弃牌堆。②当你于回合内不因〖自书②〗而得到牌后,你摸一张牌。",
yingyuan: "应援",
- yingyuan_info:
- "当你于回合内使用的牌结算完成后,你可以将其交给一名其他角色(相同牌名的牌每回合限一次)。",
+ yingyuan_info: "当你于回合内使用的牌结算完成后,你可以将其交给一名其他角色(相同牌名的牌每回合限一次)。",
xinyingyuan: "应援",
- xinyingyuan_info:
- "当你于回合内使用一张牌后,你可以令一名其他角色从牌堆获得一张与该牌类型相同的牌(每种类型的牌每回合限一次)。",
+ xinyingyuan_info: "当你于回合内使用一张牌后,你可以令一名其他角色从牌堆获得一张与该牌类型相同的牌(每种类型的牌每回合限一次)。",
qianya: "谦雅",
qianya_info: "当你成为锦囊牌的目标后,你可以将任意张手牌交给一名其他角色。",
shuimeng: "说盟",
- shuimeng_info:
- "出牌阶段结束时,你可以与一名角色拼点,若你赢,视为你使用【无中生有】;若你没赢,视为其对你使用【过河拆桥】。",
+ shuimeng_info: "出牌阶段结束时,你可以与一名角色拼点,若你赢,视为你使用【无中生有】;若你没赢,视为其对你使用【过河拆桥】。",
xianfu: "先辅",
xianfu2: "先辅",
xianfu2_bg: "辅",
- xianfu_info:
- "锁定技,游戏开始时,你选择一名其他角色,当其受到伤害后,你受到等量的伤害,当其回复体力后,你回复等量的体力。",
+ xianfu_info: "锁定技,游戏开始时,你选择一名其他角色,当其受到伤害后,你受到等量的伤害,当其回复体力后,你回复等量的体力。",
chouce: "筹策",
- chouce_info:
- "当你受到1点伤害后,你可以判定,若结果为:黑色,你弃置一名角色区域里的一张牌;红色,你选择一名角色,其摸一张牌,若其是〖先辅〗选择的角色,改为其摸两张牌。",
+ chouce_info: "当你受到1点伤害后,你可以判定,若结果为:黑色,你弃置一名角色区域里的一张牌;红色,你选择一名角色,其摸一张牌,若其是〖先辅〗选择的角色,改为其摸两张牌。",
fuqi: "伏骑",
fuqi_info: "锁定技,当你使用牌时,你令所有与你距离为1的其他角色不能使用或打出牌响应此牌。",
jiaozi: "骄恣",
jiaozi_info: "锁定技,若你的手牌数为全场唯一最多,则当你造成或受到伤害时,此伤害+1。",
wy_meirenji: "美人计",
- wy_meirenji_info:
- "出牌阶段,对一名有手牌的其他男性角色使用。每名女性角色各获得其一张手牌并将一张手牌交给你,然后比较你与其的手牌数,手牌少的角色对手牌多的角色造成1点伤害。",
+ wy_meirenji_info: "出牌阶段,对一名有手牌的其他男性角色使用。每名女性角色各获得其一张手牌并将一张手牌交给你,然后比较你与其的手牌数,手牌少的角色对手牌多的角色造成1点伤害。",
wy_xiaolicangdao: "笑里藏刀",
- wy_xiaolicangdao_info:
- "出牌阶段,对一名其他角色使用。该角色摸X张牌(X为其已损失的体力值且至多为5),然后你对其造成1点伤害。",
+ wy_xiaolicangdao_info: "出牌阶段,对一名其他角色使用。该角色摸X张牌(X为其已损失的体力值且至多为5),然后你对其造成1点伤害。",
weikui: "伪溃",
weikui2: "伪溃",
- weikui_info:
- "出牌阶段限一次,你可以失去1点体力并选择一名有手牌的其他角色,你观看其手牌:若其手牌中有【闪】,则视为你对其使用【杀】,且本回合你计算与其的距离视为1;若其手牌中没有【闪】,你弃置其中一张牌。",
+ weikui_info: "出牌阶段限一次,你可以失去1点体力并选择一名有手牌的其他角色,你观看其手牌:若其手牌中有【闪】,则视为你对其使用【杀】,且本回合你计算与其的距离视为1;若其手牌中没有【闪】,你弃置其中一张牌。",
lizhan: "励战",
lizhan_info: "结束阶段,你可以令任意名已受伤的角色摸一张牌。",
wylianji: "连计",
- wylianji_info:
- "出牌阶段限一次,你可以展示一张【杀】或黑色锦囊牌,并令一名其他角色将牌堆中的随机一张武器牌置入装备区(可替换原装备)。然后该角色选择一项:1.对除你以外的角色使用该牌,并将装备区里的武器牌交给该牌的一个目标角色;2.令你对其使用此牌,然后获得此牌,并将装备区内的武器牌交给你。",
+ wylianji_info: "出牌阶段限一次,你可以展示一张【杀】或黑色锦囊牌,并令一名其他角色将牌堆中的随机一张武器牌置入装备区(可替换原装备)。然后该角色选择一项:1.对除你以外的角色使用该牌,并将装备区里的武器牌交给该牌的一个目标角色;2.令你对其使用此牌,然后获得此牌,并将装备区内的武器牌交给你。",
// from here
moucheng: "谋逞",
- moucheng_info:
- "觉醒技,当其他角色使用因〖连计〗交给其的牌累计造成伤害达到3点后,你失去技能〖连计〗,然后获得技能〖矜功〗。",
+ moucheng_info: "觉醒技,当其他角色使用因〖连计〗交给其的牌累计造成伤害达到3点后,你失去技能〖连计〗,然后获得技能〖矜功〗。",
jingong: "矜功",
jingong2: "矜功",
jingong_backup: "矜功",
- jingong_info:
- "出牌阶段限一次,你可以将一张装备牌或【杀】当做一张随机锦囊牌使用(三选一,其中一张为【美人计】或【笑里藏刀】),然后本回合的结束阶段,若你于本回合内未造成过伤害,你失去1点体力。",
+ jingong_info: "出牌阶段限一次,你可以将一张装备牌或【杀】当做一张随机锦囊牌使用(三选一,其中一张为【美人计】或【笑里藏刀】),然后本回合的结束阶段,若你于本回合内未造成过伤害,你失去1点体力。",
fenyue: "奋钺",
fenyue2: "奋钺",
fenyue2_bg: "钺",
- fenyue_info:
- "出牌阶段限X次,你可以与一名角色拼点,若你赢,你选择一项:1.令其不能使用或打出手牌直到回合结束;2.视为对其使用一张【杀】(不计入次数)。若你没赢,你结束出牌阶段。(X为存活的忠臣数)",
+ fenyue_info: "出牌阶段限X次,你可以与一名角色拼点,若你赢,你选择一项:1.令其不能使用或打出手牌直到回合结束;2.视为对其使用一张【杀】(不计入次数)。若你没赢,你结束出牌阶段。(X为存活的忠臣数)",
zfengshi: "锋矢",
zfengshi_info: "当你使用【杀】指定目标后,你可以令目标弃置装备区内的一张牌。",
chuanxin: "穿心",
- chuanxin_info:
- "当你于出牌阶段内使用【杀】或【决斗】对目标角色造成伤害时,你可以防止此伤害。若如此做,该角色选择一项:1.弃置装备区里的所有牌,若如此做,其失去1点体力;2.随机移除主武将牌上的一个技能。",
- chuanxin_info_guozhan:
- "当你于出牌阶段内使用【杀】或【决斗】对目标角色造成伤害时,若其与你势力不同且有副将,你可以防止此伤害。若如此做,该角色选择一项:1.弃置装备区里的所有牌,若如此做,其失去1点体力;2.移除副将。",
+ chuanxin_info: "当你于出牌阶段内使用【杀】或【决斗】对目标角色造成伤害时,你可以防止此伤害。若如此做,该角色选择一项:1.弃置装备区里的所有牌,若如此做,其失去1点体力;2.随机移除主武将牌上的一个技能。",
+ chuanxin_info_guozhan: "当你于出牌阶段内使用【杀】或【决斗】对目标角色造成伤害时,若其与你势力不同且有副将,你可以防止此伤害。若如此做,该角色选择一项:1.弃置装备区里的所有牌,若如此做,其失去1点体力;2.移除副将。",
hengjiang: "横江",
hengjiang2: "横江",
- hengjiang_info:
- "当你受到1点伤害后,你可以令当前回合角色本回合的手牌上限-1。然后若其弃牌阶段内没有弃牌,则你摸一张牌。",
+ hengjiang_info: "当你受到1点伤害后,你可以令当前回合角色本回合的手牌上限-1。然后若其弃牌阶段内没有弃牌,则你摸一张牌。",
rehengjiang: "横江",
rehengjiang2: "横江",
rehengjiang3: "横江",
- rehengjiang_info:
- "当你受到1点伤害后,你可以令当前回合角色本回合的手牌上限-1。然后若其弃牌阶段内有/没有弃牌,则你摸一/X张牌(X为你本回合内对其发动过〖横江〗的次数)。",
+ rehengjiang_info: "当你受到1点伤害后,你可以令当前回合角色本回合的手牌上限-1。然后若其弃牌阶段内有/没有弃牌,则你摸一/X张牌(X为你本回合内对其发动过〖横江〗的次数)。",
shuangren: "双刃",
- shuangren_info:
- "出牌阶段开始时,你可以与一名角色拼点。若你赢,你视为对其或与其势力相同的另一名角色使用一张【杀】(不计入出牌阶段的次数限制);若你没赢,你本回合内不能对其他角色使用牌。",
+ shuangren_info: "出牌阶段开始时,你可以与一名角色拼点。若你赢,你视为对其或与其势力相同的另一名角色使用一张【杀】(不计入出牌阶段的次数限制);若你没赢,你本回合内不能对其他角色使用牌。",
xiashu: "下书",
- xiashu_info:
- "出牌阶段开始时,你可以将所有手牌交给一名其他角色,然后该角色亮出任意数量的手牌(至少一张)。你选择一项:1.获得其亮出的手牌;2.获得其未亮出的手牌。",
+ xiashu_info: "出牌阶段开始时,你可以将所有手牌交给一名其他角色,然后该角色亮出任意数量的手牌(至少一张)。你选择一项:1.获得其亮出的手牌;2.获得其未亮出的手牌。",
kuanshi: "宽释",
kuanshi2: "宽释",
- kuanshi_info:
- "结束阶段,你可以选择一名角色。直到你的下回合开始,该角色第一次受到大于1的伤害时,防止此伤害,然后你跳过下个回合的摸牌阶段。",
+ kuanshi_info: "结束阶段,你可以选择一名角色。直到你的下回合开始,该角色第一次受到大于1的伤害时,防止此伤害,然后你跳过下个回合的摸牌阶段。",
bingzheng: "秉正",
- bingzheng_info:
- "出牌阶段结束时,你可以令手牌数不等于体力值的一名角色弃置一张手牌或摸一张牌。然后若其手牌数等于体力值,你摸一张牌,且可以交给该角色一张牌。",
+ bingzheng_info: "出牌阶段结束时,你可以令手牌数不等于体力值的一名角色弃置一张手牌或摸一张牌。然后若其手牌数等于体力值,你摸一张牌,且可以交给该角色一张牌。",
sheyan: "舍宴",
- sheyan_info:
- "当你成为普通锦囊牌的目标时(【借刀杀人】等带有指向目标的锦囊除外),你可以为此牌增加一个目标或令其对其中一个目标无效。(有效目标数至少为一)",
+ sheyan_info: "当你成为普通锦囊牌的目标时(【借刀杀人】等带有指向目标的锦囊除外),你可以为此牌增加一个目标或令其对其中一个目标无效。(有效目标数至少为一)",
fuman: "抚蛮",
fuman2: "抚蛮",
- fuman_info:
- "出牌阶段每名角色限一次,你可以将一张手牌交给一名其他角色并标记为“抚蛮”且“抚蛮”牌的牌名视为【杀】。然后当一名角色使用“抚蛮”牌结算结束后,你摸一张牌。若此牌造成过伤害,则改为摸两张牌。",
+ fuman_info: "出牌阶段每名角色限一次,你可以将一张手牌交给一名其他角色并标记为“抚蛮”且“抚蛮”牌的牌名视为【杀】。然后当一名角色使用“抚蛮”牌结算结束后,你摸一张牌。若此牌造成过伤害,则改为摸两张牌。",
qizhou: "绮胄",
- qizhou_info:
- "锁定技,你根据装备区里牌的花色数获得以下技能:1种或以上:〖马术〗;2种或以上:〖英姿〗;3种或以上:〖短兵〗;4种:〖奋威〗。",
+ qizhou_info: "锁定技,你根据装备区里牌的花色数获得以下技能:1种或以上:〖马术〗;2种或以上:〖英姿〗;3种或以上:〖短兵〗;4种:〖奋威〗。",
shanxi: "闪袭",
- shanxi_info:
- "出牌阶段限一次,你可以弃置一张红色基本牌,然后弃置攻击范围内的一名其他角色的一张牌。若弃置的牌是【闪】,你观看其手牌,若弃置的不是【闪】,其观看你的手牌。",
+ shanxi_info: "出牌阶段限一次,你可以弃置一张红色基本牌,然后弃置攻击范围内的一名其他角色的一张牌。若弃置的牌是【闪】,你观看其手牌,若弃置的不是【闪】,其观看你的手牌。",
duanbing: "短兵",
duanbing_info: "当你使用【杀】选择目标后,你可以令一名距离为1的其他角色也成为此牌的目标。",
fanghun: "芳魂",
- fanghun_info:
- "当你使用【杀】造成伤害或受到【杀】的伤害后,你获得X个“梅影”标记(X为伤害点数);你可以移去1个“梅影”标记来发动〖龙胆〗并摸一张牌。",
+ fanghun_info: "当你使用【杀】造成伤害或受到【杀】的伤害后,你获得X个“梅影”标记(X为伤害点数);你可以移去1个“梅影”标记来发动〖龙胆〗并摸一张牌。",
refanghun: "芳魂",
- refanghun_info:
- "当你使用【杀】或成为【杀】的目标后,你获得1个“梅影”标记;你可以移去1个“梅影”标记来发动〖龙胆〗并摸一张牌。",
+ refanghun_info: "当你使用【杀】或成为【杀】的目标后,你获得1个“梅影”标记;你可以移去1个“梅影”标记来发动〖龙胆〗并摸一张牌。",
fanghun_sha: "龙胆",
fuhan: "扶汉",
- fuhan_info:
- "限定技,回合开始时,你可以移去所有“梅影”标记并摸等量的牌,随机观看五名未登场的蜀势力角色,将武将牌替换为其中一名角色,并将体力上限数调整为本局游戏中移去“梅影”标记的数量(至少为2,至多为8),然后回复1点体力。",
+ fuhan_info: "限定技,回合开始时,你可以移去所有“梅影”标记并摸等量的牌,随机观看五名未登场的蜀势力角色,将武将牌替换为其中一名角色,并将体力上限数调整为本局游戏中移去“梅影”标记的数量(至少为2,至多为8),然后回复1点体力。",
refuhan: "扶汉",
- refuhan_info:
- '限定技,回合开始时,你可以移去所有"梅影"标记并摸等量的牌,然后从X张蜀势力武将牌中选择并获得至多两个技能(限定技、觉醒技、隐匿技、使命技、主公技除外)。若此时你是体力值最低的角色,你回复1点体力(X为场上角色数,且X∈[4,+∞))。',
+ refuhan_info: '限定技,回合开始时,你可以移去所有"梅影"标记并摸等量的牌,然后从X张蜀势力武将牌中选择并获得至多两个技能(限定技、觉醒技、隐匿技、使命技、主公技除外)。若此时你是体力值最低的角色,你回复1点体力(X为场上角色数,且X∈[4,+∞))。',
yjixi: "觊玺",
- yjixi_info:
- "觉醒技,结束阶段,若你已连续三个自己回合未失去过体力,则你增加1点体力上限并回复1点体力,然后选择一项:获得技能〖妄尊〗;摸两张牌并获得当前主公的主公技。",
+ yjixi_info: "觉醒技,结束阶段,若你已连续三个自己回合未失去过体力,则你增加1点体力上限并回复1点体力,然后选择一项:获得技能〖妄尊〗;摸两张牌并获得当前主公的主公技。",
xinyongsi: "庸肆",
xinyongsi1: "庸肆",
xinyongsi2: "庸肆",
- xinyongsi_info:
- "锁定技,摸牌阶段,你令额定摸牌数改为X(X为势力数);弃牌阶段开始时,你选择一项:1.弃置一张牌;2.失去1点体力。",
+ xinyongsi_info: "锁定技,摸牌阶段,你令额定摸牌数改为X(X为势力数);弃牌阶段开始时,你选择一项:1.弃置一张牌;2.失去1点体力。",
xiehui: "黠慧",
xiehui2: "黠慧",
- xiehui_info:
- "锁定技,你的黑色牌不计入手牌上限;其他角色获得你的黑色牌时,其不能使用、打出、弃置这些牌直到其体力值扣减为止。",
+ xiehui_info: "锁定技,你的黑色牌不计入手牌上限;其他角色获得你的黑色牌时,其不能使用、打出、弃置这些牌直到其体力值扣减为止。",
lianzhu: "连诛",
- lianzhu_info:
- "出牌阶段限一次,你可以展示并交给一名其他角色一张牌,若此牌为黑色,其选择一项:1.你摸两张牌;2.弃置两张牌。",
+ lianzhu_info: "出牌阶段限一次,你可以展示并交给一名其他角色一张牌,若此牌为黑色,其选择一项:1.你摸两张牌;2.弃置两张牌。",
shanjia: "缮甲",
- shanjia_info:
- "出牌阶段开始时,你可以摸X张牌,然后弃置等量的牌。若你以此法弃置了装备区内的牌,则你可以视为使用一张【杀】。(X为你于本局游戏内使用过的装备牌数且最大为7)",
+ shanjia_info: "出牌阶段开始时,你可以摸X张牌,然后弃置等量的牌。若你以此法弃置了装备区内的牌,则你可以视为使用一张【杀】。(X为你于本局游戏内使用过的装备牌数且最大为7)",
tuifeng: "推锋",
tuifeng2: "推锋",
- tuifeng_info:
- "1.当你受到伤害后,你可以将至多X张牌置于武将牌上(X为伤害值),称为“锋”。2.准备阶段开始时,若你的武将牌上有“锋”,你移去所有“锋”,摸2X张牌,然后你于此回合的出牌阶段内使用【杀】的次数上限+X。(X为你此次移去的“锋”数)",
+ tuifeng_info: "1.当你受到伤害后,你可以将至多X张牌置于武将牌上(X为伤害值),称为“锋”。2.准备阶段开始时,若你的武将牌上有“锋”,你移去所有“锋”,摸2X张牌,然后你于此回合的出牌阶段内使用【杀】的次数上限+X。(X为你此次移去的“锋”数)",
ziyuan: "资援",
- ziyuan_info:
- "出牌阶段限一次,你可以将任意张点数之和为13的手牌交给一名其他角色,然后该角色回复1点体力。",
+ ziyuan_info: "出牌阶段限一次,你可以将任意张点数之和为13的手牌交给一名其他角色,然后该角色回复1点体力。",
jugu: "巨贾",
jugu_info: "锁定技,1.你的手牌上限+X。2.游戏开始时,你摸X张牌(X为你的体力上限)。",
hongde: "弘德",
hongde_info: "当你一次获得或失去至少两张牌后,你可以令一名其他角色摸一张牌。",
dingpan: "定叛",
- dingpan_info_identity:
- "出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的反贼数)",
- dingpan_info_doudizhu:
- "出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的农民数)",
- dingpan_info_versus_two:
- "出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的最大阵营角色数)",
- dingpan_info_versus:
- "出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的敌方角色数)",
- dingpan_info:
- "出牌阶段限一次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。",
+ dingpan_info_identity: "出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的反贼数)",
+ dingpan_info_doudizhu: "出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的农民数)",
+ dingpan_info_versus_two: "出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的最大阵营角色数)",
+ dingpan_info_versus: "出牌阶段限X次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。(X为场上存活的敌方角色数)",
+ dingpan_info: "出牌阶段限一次,你可以令一名装备区里有牌的角色摸一张牌,然后其选择一项:1.令你弃置其装备区里的一张牌;2.获得其装备区里的所有牌,若如此做,你对其造成1点伤害。",
weidi: "伪帝",
weidi_info: "锁定技,你视为拥有当前主公的主公技。",
juesi: "决死",
- juesi_info:
- "出牌阶段,你可以弃置一张【杀】并选择攻击范围内的一名有牌的其他角色,该角色弃置一张牌,然后若弃置的牌不是【杀】且你的体力值不大于该角色,你视为对其使用【决斗】。",
+ juesi_info: "出牌阶段,你可以弃置一张【杀】并选择攻击范围内的一名有牌的其他角色,该角色弃置一张牌,然后若弃置的牌不是【杀】且你的体力值不大于该角色,你视为对其使用【决斗】。",
zhenlue: "缜略",
zhenlue_info: "锁定技,你使用的普通锦囊牌不能被【无懈可击】响应;你不能成为延时锦囊牌的目标。",
jianshu: "间书",
- jianshu_info:
- "限定技,出牌阶段,你可以将一张黑色手牌交给一名其他角色,并选择另一名其他角色,然后令这两名角色拼点。赢的角色弃置两张牌,没赢的角色失去1点体力。",
+ jianshu_info: "限定技,出牌阶段,你可以将一张黑色手牌交给一名其他角色,并选择另一名其他角色,然后令这两名角色拼点。赢的角色弃置两张牌,没赢的角色失去1点体力。",
yongdi: "拥嫡",
- yongdi_info:
- "限定技,准备阶段开始时,你可令一名其他男性角色增加1点体力上限并回复1点体力,然后若该角色的武将牌上有主公技且其不为主公,其获得此主公技。",
+ yongdi_info: "限定技,准备阶段开始时,你可令一名其他男性角色增加1点体力上限并回复1点体力,然后若该角色的武将牌上有主公技且其不为主公,其获得此主公技。",
regushe: "鼓舌",
- regushe_info:
- "出牌阶段,若X小于7,则你可以用一张手牌与至多三名角色同时拼点,然后依次结算拼点结果,没赢的角色选择一项:1.弃置一张牌;2.令你摸一张牌。若你没赢,你获得一个“饶舌”标记。当你获得第7个“饶舌”标记时,你死亡。(X为你的“饶舌”标记数与本回合因“鼓舌”拼点而胜利的次数之和)",
+ regushe_info: "出牌阶段,若X小于7,则你可以用一张手牌与至多三名角色同时拼点,然后依次结算拼点结果,没赢的角色选择一项:1.弃置一张牌;2.令你摸一张牌。若你没赢,你获得一个“饶舌”标记。当你获得第7个“饶舌”标记时,你死亡。(X为你的“饶舌”标记数与本回合因“鼓舌”拼点而胜利的次数之和)",
rejici: "激词",
rejici2: "激词",
- rejici_info:
- "锁定技。①当你的拼点牌亮出后,若此牌的点数不大于X,则你令此牌点数+X,并获得此次拼点中点数最大的拼点牌。②当你死亡时,你令杀死你的角色弃置7-X张牌并失去1点体力(X为你的“饶舌”标记数)。",
+ rejici_info: "锁定技。①当你的拼点牌亮出后,若此牌的点数不大于X,则你令此牌点数+X,并获得此次拼点中点数最大的拼点牌。②当你死亡时,你令杀死你的角色弃置7-X张牌并失去1点体力(X为你的“饶舌”标记数)。",
gushe: "鼓舌",
gushe_bg: "舌",
- gushe_info:
- "出牌阶段限一次,你可以用一张手牌与至多三名角色同时拼点,然后依次结算拼点结果,没赢的角色选择一项:1.弃置一张牌;2.令你摸一张牌。若你没赢,你获得一个“饶舌”标记。当你获得第7个“饶舌”标记时,你死亡。",
+ gushe_info: "出牌阶段限一次,你可以用一张手牌与至多三名角色同时拼点,然后依次结算拼点结果,没赢的角色选择一项:1.弃置一张牌;2.令你摸一张牌。若你没赢,你获得一个“饶舌”标记。当你获得第7个“饶舌”标记时,你死亡。",
jici: "激词",
- jici_info:
- "当你因发动〖鼓舌〗而扣置的拼点牌亮出后,若点数小于X,你可令点数+X;若点数等于X,你可令你本回合发动〖鼓舌〗的次数上限+1。(X为你“饶舌”标记的数量)",
+ jici_info: "当你因发动〖鼓舌〗而扣置的拼点牌亮出后,若点数小于X,你可令点数+X;若点数等于X,你可令你本回合发动〖鼓舌〗的次数上限+1。(X为你“饶舌”标记的数量)",
shefu: "设伏",
shefu2: "设伏",
shefu_bg: "伏",
- shefu_info:
- "结束阶段开始时,你可以将一张牌移出游戏,称为「伏兵」。并为「伏兵」记录一个基本牌或锦囊牌的名称(须与其他「伏兵」记录的名称均不同)。你的回合外,当有其他角色使用与你记录的「伏兵」牌名相同的手牌时,你可以取消此牌的所有目标,然后移去该「伏兵」。若此时处于使用者的回合内,则你令使用者当前的所有非Charlotte技失效直至回合结束。",
+ shefu_info: "结束阶段开始时,你可以将一张牌移出游戏,称为「伏兵」。并为「伏兵」记录一个基本牌或锦囊牌的名称(须与其他「伏兵」记录的名称均不同)。你的回合外,当有其他角色使用与你记录的「伏兵」牌名相同的手牌时,你可以取消此牌的所有目标,然后移去该「伏兵」。若此时处于使用者的回合内,则你令使用者当前的所有非Charlotte技失效直至回合结束。",
benyu: "贲育",
benyu2: "贲育",
- benyu_info:
- "当你受到伤害后,你可选择:①将手牌摸至与伤害来源手牌数相同(至多摸至5张);②弃置大于伤害来源手牌数的牌,然后对其造成1点伤害。",
+ benyu_info: "当你受到伤害后,你可选择:①将手牌摸至与伤害来源手牌数相同(至多摸至5张);②弃置大于伤害来源手牌数的牌,然后对其造成1点伤害。",
zhidao: "雉盗",
- zhidao_info:
- "锁定技,当你于你的回合内第一次对区域里有牌的其他角色造成伤害后,你获得其手牌、装备区和判定区里的各一张牌,然后直到回合结束,其他角色不能被选择为你使用牌的目标。",
+ zhidao_info: "锁定技,当你于你的回合内第一次对区域里有牌的其他角色造成伤害后,你获得其手牌、装备区和判定区里的各一张牌,然后直到回合结束,其他角色不能被选择为你使用牌的目标。",
jili: "寄篱",
- jili_info:
- "锁定技,当一名其他角色成为红色基本牌或红色普通锦囊牌的目标时,若其与你的距离为1且你既不是此牌的使用者也不是目标,你也成为此牌的目标。",
+ jili_info: "锁定技,当一名其他角色成为红色基本牌或红色普通锦囊牌的目标时,若其与你的距离为1且你既不是此牌的使用者也不是目标,你也成为此牌的目标。",
luanzhan: "乱战",
- luanzhan_info:
- "你使用【杀】或黑色普通锦囊牌可以额外选择X名角色为目标;当你使用【杀】或黑色普通锦囊牌指定目标后,若此牌的目标角色数小于X,则X减至0。(X为你于本局游戏内造成过伤害的次数)",
+ luanzhan_info: "你使用【杀】或黑色普通锦囊牌可以额外选择X名角色为目标;当你使用【杀】或黑色普通锦囊牌指定目标后,若此牌的目标角色数小于X,则X减至0。(X为你于本局游戏内造成过伤害的次数)",
zhengnan: "征南",
- zhengnan_info:
- "其他角色死亡后,你可以摸三张牌并获得下列技能中的任意一个:〖武圣〗、〖当先〗和〖制蛮〗。",
+ zhengnan_info: "其他角色死亡后,你可以摸三张牌并获得下列技能中的任意一个:〖武圣〗、〖当先〗和〖制蛮〗。",
xinzhengnan: "征南",
- xinzhengnan_info:
- "当一名角色进入濒死状态时,若你未因其发动过〖征南〗,则你回复1点体力并摸一张牌并获得下列技能中的任意一个:〖武圣〗、〖当先〗和〖制蛮〗(若技能全部拥有则改为摸三张牌。你以此法获得的〖当先〗结算时视为已发动过〖伏枥〗)。",
+ xinzhengnan_info: "当一名角色进入濒死状态时,若你未因其发动过〖征南〗,则你回复1点体力并摸一张牌并获得下列技能中的任意一个:〖武圣〗、〖当先〗和〖制蛮〗(若技能全部拥有则改为摸三张牌。你以此法获得的〖当先〗结算时视为已发动过〖伏枥〗)。",
xiefang: "撷芳",
xiefang_info: "锁定技,你计算与其他角色的距离时-X。(X为女性角色数)",
qizhi: "奇制",
- qizhi_info:
- "当你于回合内使用基本牌或锦囊牌指定目标后,你可以弃置不是此牌目标的一名角色的一张牌。若如此做,其摸一张牌。",
+ qizhi_info: "当你于回合内使用基本牌或锦囊牌指定目标后,你可以弃置不是此牌目标的一名角色的一张牌。若如此做,其摸一张牌。",
jinqu: "进趋",
- jinqu_info:
- "结束阶段开始时,你可以摸两张牌,若如此做,你将手牌弃置至X张。(X为你于此回合发动过〖奇制〗的次数)",
+ jinqu_info: "结束阶段开始时,你可以摸两张牌,若如此做,你将手牌弃置至X张。(X为你于此回合发动过〖奇制〗的次数)",
jiqiao: "机巧",
- jiqiao_info:
- "出牌阶段开始时,你可以弃置任意张装备牌,然后亮出牌堆顶两倍数量的牌并获得其中的非装备牌。",
+ jiqiao_info: "出牌阶段开始时,你可以弃置任意张装备牌,然后亮出牌堆顶两倍数量的牌并获得其中的非装备牌。",
linglong: "玲珑",
- linglong_info:
- "锁定技,若你的装备区没有武器牌,则你使用【杀】的次数上限+1;若你的装备区没有防具牌,视为你装备着【八卦阵】;若你的装备区没有坐骑牌,你的手牌上限+1;若你的装备区没有宝物牌,则你视为拥有技能〖奇才〗。",
+ linglong_info: "锁定技,若你的装备区没有武器牌,则你使用【杀】的次数上限+1;若你的装备区没有防具牌,视为你装备着【八卦阵】;若你的装备区没有坐骑牌,你的手牌上限+1;若你的装备区没有宝物牌,则你视为拥有技能〖奇才〗。",
zhenwei: "镇卫",
zhenwei2: "镇卫",
- zhenwei_info:
- "当一名其他角色成为【杀】或黑色锦囊牌的目标时(使用者不是你),若该角色的体力值小于你且此牌的目标角色数为1,你可以弃置一张牌。若如此做,你选择一项:1、摸一张牌,然后将此【杀】或黑色锦囊牌转移给你;2、令此【杀】或黑色锦囊牌无效,然后将此【杀】或黑色锦囊牌置于使用者的武将牌旁,若如此做,当前回合结束后,使用者获得使用者武将牌旁的这些牌。",
+ zhenwei_info: "当一名其他角色成为【杀】或黑色锦囊牌的目标时(使用者不是你),若该角色的体力值小于你且此牌的目标角色数为1,你可以弃置一张牌。若如此做,你选择一项:1、摸一张牌,然后将此【杀】或黑色锦囊牌转移给你;2、令此【杀】或黑色锦囊牌无效,然后将此【杀】或黑色锦囊牌置于使用者的武将牌旁,若如此做,当前回合结束后,使用者获得使用者武将牌旁的这些牌。",
xingwu: "星舞",
- xingwu_info:
- "弃牌阶段开始时,你可以将一张与你本回合使用的牌颜色均不同的手牌置于武将牌上:若你有至少三张“星舞”牌,你移去“星舞”牌并选择一名男性角色,该角色受到2点伤害并弃置其装备区的所有牌。",
+ xingwu_info: "弃牌阶段开始时,你可以将一张与你本回合使用的牌颜色均不同的手牌置于武将牌上:若你有至少三张“星舞”牌,你移去“星舞”牌并选择一名男性角色,该角色受到2点伤害并弃置其装备区的所有牌。",
luoyan: "落雁",
luoyan_info: "锁定技。若你的武将牌上有“星舞牌”,你拥有“天香”和“流离”。",
yinbing: "引兵",
- yinbing_info:
- "结束阶段开始时,你可以将至少一张非基本牌置于武将牌上。每当你受到【杀】或【决斗】的伤害后,你移去一张「引兵」牌。",
+ yinbing_info: "结束阶段开始时,你可以将至少一张非基本牌置于武将牌上。每当你受到【杀】或【决斗】的伤害后,你移去一张「引兵」牌。",
juedi: "绝地",
- juedi_info:
- "锁定技,准备阶段,若你的武将牌上有「引兵」牌,你选择一项:1.移去「引兵」牌,将手牌补至体力上限数;2.将「引兵」牌交给一名体力值不大于你的其他角色,其回复1点体力并摸等量的牌。",
+ juedi_info: "锁定技,准备阶段,若你的武将牌上有「引兵」牌,你选择一项:1.移去「引兵」牌,将手牌补至体力上限数;2.将「引兵」牌交给一名体力值不大于你的其他角色,其回复1点体力并摸等量的牌。",
kuangfu: "狂斧",
- kuangfu_info:
- "当你使用【杀】造成伤害后,你可以选择一项:弃置其装备区内的一张牌,或将其装备区内的一张牌移动到你的装备区内。",
+ kuangfu_info: "当你使用【杀】造成伤害后,你可以选择一项:弃置其装备区内的一张牌,或将其装备区内的一张牌移动到你的装备区内。",
xintan: "心惔",
xintan_info: "出牌阶段限一次,你可以移去两张「焚」并选择一名角色,该角色失去1点体力。",
fentian: "焚天",
- fentian_info:
- "锁定技,结束阶段开始时,若你的手牌数少于体力值,你须选择一名攻击范围内的角色,将其一张牌置于你的武将牌上,称为「焚」。锁定技,你的攻击范围+X(X为「焚」的数量)。",
+ fentian_info: "锁定技,结束阶段开始时,若你的手牌数少于体力值,你须选择一名攻击范围内的角色,将其一张牌置于你的武将牌上,称为「焚」。锁定技,你的攻击范围+X(X为「焚」的数量)。",
zhiri: "炙日",
- zhiri_info:
- "觉醒技,准备阶段开始时,若你的「焚」的数量不小于3,你减1点体力上限,然后获得技能〖心惔〗。",
+ zhiri_info: "觉醒技,准备阶段开始时,若你的「焚」的数量不小于3,你减1点体力上限,然后获得技能〖心惔〗。",
meibu: "魅步",
- meibu_info:
- "其他角色的出牌阶段开始时,若你不在其攻击范围内,你可以令该角色的锦囊牌均视为【杀】,直到该角色以此法使用了一张【杀】或回合结束。若如此做,则直到回合结束,视为你在其攻击范围内。",
+ meibu_info: "其他角色的出牌阶段开始时,若你不在其攻击范围内,你可以令该角色的锦囊牌均视为【杀】,直到该角色以此法使用了一张【杀】或回合结束。若如此做,则直到回合结束,视为你在其攻击范围内。",
mumu: "穆穆",
- mumu_info:
- "出牌阶段限一次,你可以弃置一张【杀】或黑色锦囊牌,然后选择一项:弃置场上的一张武器牌,然后摸一张牌;或将场上的一张防具牌移动到你的装备区里(可替换原防具)。",
+ mumu_info: "出牌阶段限一次,你可以弃置一张【杀】或黑色锦囊牌,然后选择一项:弃置场上的一张武器牌,然后摸一张牌;或将场上的一张防具牌移动到你的装备区里(可替换原防具)。",
zhanyi: "战意",
zhanyi_basic_sha: "战杀",
zhanyi_basic_jiu: "战酒",
zhanyi_basic_tao: "战桃",
- zhanyi_info:
- "出牌阶段限一次,你可以弃置一张牌并失去1点体力,然后根据你弃置的牌获得以下效果直到回合结束:基本牌,你可以将一张基本牌当作【杀】、【酒】或【桃】使用;锦囊牌,摸两张牌且你使用的牌无距离限制;装备牌,你使用【杀】指定目标角色后,其弃置两张牌。",
+ zhanyi_info: "出牌阶段限一次,你可以弃置一张牌并失去1点体力,然后根据你弃置的牌获得以下效果直到回合结束:基本牌,你可以将一张基本牌当作【杀】、【酒】或【桃】使用;锦囊牌,摸两张牌且你使用的牌无距离限制;装备牌,你使用【杀】指定目标角色后,其弃置两张牌。",
nuzhan: "怒斩",
nuzhan2: "怒斩",
- nuzhan_info:
- "锁定技,你使用的由一张锦囊牌转化的【杀】不计入出牌阶段的次数限制;锁定技,你使用的由一张装备牌转化的【杀】的伤害值基数+1。",
+ nuzhan_info: "锁定技,你使用的由一张锦囊牌转化的【杀】不计入出牌阶段的次数限制;锁定技,你使用的由一张装备牌转化的【杀】的伤害值基数+1。",
danji: "单骑",
- danji_info:
- "觉醒技,准备阶段开始时,若你的手牌数大于你的体力值且本局游戏的主公不为刘备,你减1点体力上限,然后获得〖马术〗和〖怒斩〗。",
+ danji_info: "觉醒技,准备阶段开始时,若你的手牌数大于你的体力值且本局游戏的主公不为刘备,你减1点体力上限,然后获得〖马术〗和〖怒斩〗。",
jieyuan: "竭缘",
jieyuan_more: "竭缘",
jieyuan_less: "竭缘",
- jieyuan_info:
- "当你对一名其他角色造成伤害时,若其体力值大于或等于你的体力值,你可弃置一张黑色手牌,令此伤害+1;当你受到一名其他角色造成的伤害时,若其体力值大于或等于你的体力值,你可弃置一张红色手牌,令此伤害-1。",
+ jieyuan_info: "当你对一名其他角色造成伤害时,若其体力值大于或等于你的体力值,你可弃置一张黑色手牌,令此伤害+1;当你受到一名其他角色造成的伤害时,若其体力值大于或等于你的体力值,你可弃置一张红色手牌,令此伤害-1。",
fenxin: "焚心",
- fenxin_info:
- "锁定技,一名其他角色死亡后,若其身份为:忠臣,你本局内发动〖竭缘〗减少伤害时无视体力值限制;反贼,你本局内发动〖竭缘〗增加伤害时无视体力值限制;内奸,你本局内选择发动〖竭缘〗的牌时无颜色和区域限制。",
- fenxin_info_versus:
- "锁定技,一名其他角色首次受到伤害后,你选择本局游戏未选择过的一项:1.发动〖竭缘〗减少伤害时无视体力值限制;2.发动〖竭缘〗增加伤害时无视体力值限制;3.发动〖竭缘〗选择的牌时无颜色和区域限制。",
+ fenxin_info: "锁定技,一名其他角色死亡后,若其身份为:忠臣,你本局内发动〖竭缘〗减少伤害时无视体力值限制;反贼,你本局内发动〖竭缘〗增加伤害时无视体力值限制;内奸,你本局内选择发动〖竭缘〗的牌时无颜色和区域限制。",
+ fenxin_info_versus: "锁定技,一名其他角色首次受到伤害后,你选择本局游戏未选择过的一项:1.发动〖竭缘〗减少伤害时无视体力值限制;2.发动〖竭缘〗增加伤害时无视体力值限制;3.发动〖竭缘〗选择的牌时无颜色和区域限制。",
qingyi: "轻逸",
qingyi1: "轻逸",
qingyi2: "轻逸",
- qingyi_info:
- "你可以跳过判定阶段和摸牌阶段。若如此做,视为对一名角色使用了一张无距离限制的【杀】。",
+ qingyi_info: "你可以跳过判定阶段和摸牌阶段。若如此做,视为对一名角色使用了一张无距离限制的【杀】。",
xiandeng: "先登",
xiandeng_info: "锁定技,出牌阶段,你使用的第一张【杀】不计入次数且无距离限制。",
shulv: "熟虑",
@@ -33567,52 +29363,38 @@ game.import("character", function () {
yuhua: "羽化",
yuhua_info: "锁定技。①你的非基本牌不计入手牌上限。②准备阶段和结束阶段开始时,你卜算1。",
qirang: "祈禳",
- qirang_info:
- "当有装备牌进入你的装备区时,你可获得牌堆中的一张锦囊牌。若此牌为:普通锦囊牌,则当你使用此“祈禳”牌选择唯一目标后,可为此牌增加一个目标;延时锦囊牌,则你下回合发动〖羽化〗时的卜算量+1(至多为5)。",
+ qirang_info: "当有装备牌进入你的装备区时,你可获得牌堆中的一张锦囊牌。若此牌为:普通锦囊牌,则当你使用此“祈禳”牌选择唯一目标后,可为此牌增加一个目标;延时锦囊牌,则你下回合发动〖羽化〗时的卜算量+1(至多为5)。",
biluan: "避乱",
- biluan_info:
- "摸牌阶段开始时,若有与你距离不大于1的其他角色,你可以放弃摸牌。若如此做,本局内其他角色计算与你的距离时+X。(X为势力数)",
+ biluan_info: "摸牌阶段开始时,若有与你距离不大于1的其他角色,你可以放弃摸牌。若如此做,本局内其他角色计算与你的距离时+X。(X为势力数)",
lixia: "礼下",
- lixia_info:
- "锁定技,其他角色的结束阶段开始时,若你不在其攻击范围内,你摸一张牌或令其摸一张牌。本局内其他角色计算与你的距离时-1。",
+ lixia_info: "锁定技,其他角色的结束阶段开始时,若你不在其攻击范围内,你摸一张牌或令其摸一张牌。本局内其他角色计算与你的距离时-1。",
olbiluan: "避乱",
- olbiluan_info:
- "结束阶段开始时,若有与你距离不大于1的其他角色,你可以弃置一张牌。若如此做,本局内其他角色计算与你的距离时+X。(X为场上的势力数)",
+ olbiluan_info: "结束阶段开始时,若有与你距离不大于1的其他角色,你可以弃置一张牌。若如此做,本局内其他角色计算与你的距离时+X。(X为场上的势力数)",
relixia: "礼下",
- relixia_info:
- "锁定技,其他角色的结束阶段开始时,若你不在其攻击范围内,你选择一至两项:1.摸一张牌;2.其摸两张牌;3.其回复1点体力。本局内其他角色计算与你的距离时-X(X为你选择的选项数)。",
+ relixia_info: "锁定技,其他角色的结束阶段开始时,若你不在其攻击范围内,你选择一至两项:1.摸一张牌;2.其摸两张牌;3.其回复1点体力。本局内其他角色计算与你的距离时-X(X为你选择的选项数)。",
rebiluan: "避乱",
rebiluan2: "避乱",
- rebiluan_info:
- "结束阶段开始时,若有与你距离不大于1的其他角色,你可以弃置一张牌。若如此做,本局内其他角色计算与你的距离时+X。(X为场上角色数且至多为4)",
+ rebiluan_info: "结束阶段开始时,若有与你距离不大于1的其他角色,你可以弃置一张牌。若如此做,本局内其他角色计算与你的距离时+X。(X为场上角色数且至多为4)",
ollixia: "礼下",
- ollixia_info:
- "锁定技,其他角色的结束阶段开始时,若你不在其攻击范围内,你摸一张牌或令其摸两张牌。本局内其他角色计算与你的距离时-1。",
+ ollixia_info: "锁定技,其他角色的结束阶段开始时,若你不在其攻击范围内,你摸一张牌或令其摸两张牌。本局内其他角色计算与你的距离时-1。",
yishe: "义舍",
yishe_bg: "米",
- yishe_info:
- "结束阶段开始时,若你的武将牌上没有「米」,则你可以摸两张牌。若如此做,你将两张牌置于武将牌上,称为「米」;当有「米」移至其他区域后,若你的武将牌上没有「米」,则你回复1点体力。",
+ yishe_info: "结束阶段开始时,若你的武将牌上没有「米」,则你可以摸两张牌。若如此做,你将两张牌置于武将牌上,称为「米」;当有「米」移至其他区域后,若你的武将牌上没有「米」,则你回复1点体力。",
bushi: "布施",
midao: "米道",
- bushi_info:
- "当你受到1点伤害后,或其他角色受到你造成的1点伤害后,受到伤害的角色可以获得你的一张「米」。",
+ bushi_info: "当你受到1点伤害后,或其他角色受到你造成的1点伤害后,受到伤害的角色可以获得你的一张「米」。",
midao_info: "一名角色的判定牌生效前,你可以打出一张「米」代替之。",
fengpo: "凤魄",
- fengpo_info:
- "每种牌名各限一次。当你每回合使用的第一张【杀】或【决斗】指定目标后,若目标角色数为1,你可以选择一项:1.摸X张牌,令此牌的伤害值基数+1;2.摸一张牌,令此牌的伤害值基数+X(X为其♦牌的数量)。",
+ fengpo_info: "每种牌名各限一次。当你每回合使用的第一张【杀】或【决斗】指定目标后,若目标角色数为1,你可以选择一项:1.摸X张牌,令此牌的伤害值基数+1;2.摸一张牌,令此牌的伤害值基数+X(X为其♦牌的数量)。",
chenqing: "陈情",
- chenqing_info:
- "每轮限一次,当一名角色处于濒死状态时,你可以令另一名其他角色摸四张牌,然后其弃置四张牌。若其以此法弃置的四张牌花色各不相同,则视为该角色对濒死的角色使用一张【桃】。",
+ chenqing_info: "每轮限一次,当一名角色处于濒死状态时,你可以令另一名其他角色摸四张牌,然后其弃置四张牌。若其以此法弃置的四张牌花色各不相同,则视为该角色对濒死的角色使用一张【桃】。",
mozhi: "默识",
- mozhi_info:
- "结束阶段开始时,你可以将一张手牌当作你本回合出牌阶段内使用的第一张基本或普通锦囊牌使用。然后,你可以将一张手牌当做你本回合出牌阶段内使用的第二张基本或普通锦囊牌使用。(你不能通过此技能使用【酒】)",
+ mozhi_info: "结束阶段开始时,你可以将一张手牌当作你本回合出牌阶段内使用的第一张基本或普通锦囊牌使用。然后,你可以将一张手牌当做你本回合出牌阶段内使用的第二张基本或普通锦囊牌使用。(你不能通过此技能使用【酒】)",
ranshang: "燃殇",
ranshang2: "燃殇",
- ranshang_info:
- "锁定技,当你受到1点火焰伤害后,你获得1枚“燃”标记;结束阶段开始时,你失去X点体力。若X大于2,则你减2点体力上限并摸两张牌。(X为“燃”标记的数量)",
+ ranshang_info: "锁定技,当你受到1点火焰伤害后,你获得1枚“燃”标记;结束阶段开始时,你失去X点体力。若X大于2,则你减2点体力上限并摸两张牌。(X为“燃”标记的数量)",
hanyong: "悍勇",
- hanyong_info:
- "当你使用【南蛮入侵】或【万箭齐发】或黑桃普通【杀】时,若你已受伤,则你可以令此牌的伤害值基数+1。然后若你的体力值不小于游戏轮数,则你获得一枚“燃”标记。",
+ hanyong_info: "当你使用【南蛮入侵】或【万箭齐发】或黑桃普通【杀】时,若你已受伤,则你可以令此牌的伤害值基数+1。然后若你的体力值不小于游戏轮数,则你获得一枚“燃”标记。",
yicong: "义从",
yongsi: "庸肆",
@@ -33700,17 +29482,12 @@ game.import("character", function () {
yawang: "雅望",
xunzhi: "殉志",
fanxiang: "返乡",
- fanxiang_info:
- "觉醒技,准备阶段开始时,若场上有已受伤且你发动过〖良助〗的选项二的角色,则你加1点体力上限并回复1点体力,失去技能〖良助〗并获得技能〖枭姬〗。",
- xunzhi_info:
- "准备阶段开始时,若你的上家和下家与你的体力值均不相等,你可以失去1点体力。若如此做,你本局内手牌上限+2。",
- yawang_info:
- "锁定技,摸牌阶段开始时,你改为摸X张牌,然后你于本回合的出牌阶段内至多使用X张牌(X为与你体力值相等的角色数)。",
- jilei_info:
- "当你受到有来源的伤害后,你可以声明一种牌的类别。若如此做,你令伤害来源不能使用、打出或弃置此类别的手牌直到其下个回合开始。",
+ fanxiang_info: "觉醒技,准备阶段开始时,若场上有已受伤且你发动过〖良助〗的选项二的角色,则你加1点体力上限并回复1点体力,失去技能〖良助〗并获得技能〖枭姬〗。",
+ xunzhi_info: "准备阶段开始时,若你的上家和下家与你的体力值均不相等,你可以失去1点体力。若如此做,你本局内手牌上限+2。",
+ yawang_info: "锁定技,摸牌阶段开始时,你改为摸X张牌,然后你于本回合的出牌阶段内至多使用X张牌(X为与你体力值相等的角色数)。",
+ jilei_info: "当你受到有来源的伤害后,你可以声明一种牌的类别。若如此做,你令伤害来源不能使用、打出或弃置此类别的手牌直到其下个回合开始。",
danlao: "啖酪",
- danlao_info:
- "当你成为【杀】或普通锦囊牌的目标后,若此牌的目标数大于1,则你可以摸一张牌,令此牌对你无效。",
+ danlao_info: "当你成为【杀】或普通锦囊牌的目标后,若此牌的目标数大于1,则你可以摸一张牌,令此牌对你无效。",
gongao: "功獒",
zhuiji: "追击",
chouhai: "仇海",
@@ -33721,159 +29498,103 @@ game.import("character", function () {
guiming_info: "主公技,锁定技,你将残蚀描述中的“已受伤角色”改为“已受伤角色或其他吴势力角色”。",
canshi: "残蚀",
canshi2: "残蚀",
- canshi_info:
- "摸牌阶段开始时,你可以改为摸X张牌(X为已受伤的角色数),若如此做,当你于此回合内使用基本牌或锦囊牌时,你弃置一张牌。",
+ canshi_info: "摸牌阶段开始时,你可以改为摸X张牌(X为已受伤的角色数),若如此做,当你于此回合内使用基本牌或锦囊牌时,你弃置一张牌。",
recanshi: "残蚀",
recanshi2: "残蚀",
- recanshi_info:
- "摸牌阶段开始时,你可以多摸X张牌(X为已受伤的角色数),若如此做,当你于此回合内使用【杀】或普通锦囊牌时,你弃置一张牌。",
+ recanshi_info: "摸牌阶段开始时,你可以多摸X张牌(X为已受伤的角色数),若如此做,当你于此回合内使用【杀】或普通锦囊牌时,你弃置一张牌。",
zhuiji_info: "锁定技,你与体力值不大于你的角色的距离视为1。",
kunfen: "困奋",
kunfen_info: "锁定技,结束阶段开始时,你失去1点体力,然后摸两张牌。",
fengliang: "逢亮",
- fengliang_info:
- "觉醒技,当你进入濒死状态时,你减1点体力上限,将体力值回复至2点,获得技能〖挑衅〗并将〖困奋〗改为非锁定技。",
+ fengliang_info: "觉醒技,当你进入濒死状态时,你减1点体力上限,将体力值回复至2点,获得技能〖挑衅〗并将〖困奋〗改为非锁定技。",
oldcihuai: "刺槐",
oldcihuai2: "刺槐",
- oldcihuai_info:
- "出牌阶段开始时,你可以展示手牌。若其中没有【杀】,则当你于此阶段内手牌数变化之前/有角色死亡之前需要使用【杀】时,你可以使用无对应实体牌的【杀】。",
+ oldcihuai_info: "出牌阶段开始时,你可以展示手牌。若其中没有【杀】,则当你于此阶段内手牌数变化之前/有角色死亡之前需要使用【杀】时,你可以使用无对应实体牌的【杀】。",
cihuai: "刺槐",
- cihuai_info:
- "出牌阶段开始时,若你的手牌中没有【杀】,则你可以展示你的手牌,视为对一名角色使用一张【杀】。",
+ cihuai_info: "出牌阶段开始时,若你的手牌中没有【杀】,则你可以展示你的手牌,视为对一名角色使用一张【杀】。",
gongao_info: "锁定技,当一名角色死亡后,你增加1点体力上限,回复1点体力。",
juyi: "举义",
- juyi_info:
- "觉醒技,准备阶段开始时,若你的体力上限大于存活角色数,你摸等同于体力上限张数的牌,然后获得技能〖崩坏〗和〖威重〗。",
+ juyi_info: "觉醒技,准备阶段开始时,若你的体力上限大于存活角色数,你摸等同于体力上限张数的牌,然后获得技能〖崩坏〗和〖威重〗。",
weizhong: "威重",
- weizhong_info:
- "锁定技,当你的体力上限增加或减少时,你摸一张牌。若你的手牌数为全场最少,则你改为摸两张牌。",
- taichen_info:
- "出牌阶段限一次,你可以失去1点体力,视为对一名角色使用一张【杀】。(不计入出牌阶段的使用次数限制)",
+ weizhong_info: "锁定技,当你的体力上限增加或减少时,你摸一张牌。若你的手牌数为全场最少,则你改为摸两张牌。",
+ taichen_info: "出牌阶段限一次,你可以失去1点体力,视为对一名角色使用一张【杀】。(不计入出牌阶段的使用次数限制)",
naman_info: "当其他角色打出的【杀】结算结束后,你可以获得此牌对应的所有实体牌。",
- xiemu_info:
- "出牌阶段限一次,你可以弃置一张【杀】并选择一个势力。若如此做,直到你的下回合开始时,当你成为该势力的其他角色使用的黑色牌的目标后,你摸两张牌。",
+ xiemu_info: "出牌阶段限一次,你可以弃置一张【杀】并选择一个势力。若如此做,直到你的下回合开始时,当你成为该势力的其他角色使用的黑色牌的目标后,你摸两张牌。",
oldxiemu_info: "当你成为其他角色使用的黑色牌的目标后,你可以弃置一张【杀】,然后摸两张牌。",
spmengjin_info: "当你使用【杀】指定目标后,你可以弃置目标角色的一张牌。",
fenxun_info: "出牌阶段限一次,你可以弃置一张牌并选择一名其他角色,你于本回合内至其的距离视为1。",
- rezhoufu_info:
- "①出牌阶段限一次。你可以用一张牌对一名其他角色施“咒”,且当其判定时,将“咒”作为判定牌。②一名角色的回合结束时,你令本回合移除过“咒”的角色各失去1点体力。",
- reyingbing_info:
- '锁定技,有“咒”的角色使用与“咒”颜色相同的牌时,你摸一张牌;若这是你第二次因该“咒”摸牌,则你获得该"咒"。',
- yingbin_info:
- "锁定技,有“咒”的角色使用与“咒”花色相同的牌时,你摸一张牌;当你因同一名角色的同一张“咒”的效果摸第二张牌时,移去该“咒”。",
- zhoufu_info:
- "出牌阶段限一次,你可以将一张手牌置于一名没有“咒”的其他角色的武将牌旁,称为“咒”。当有“咒”的角色判定时,其改为将“咒”作为判定牌;一名角色的回合结束时,若有角色于此回合因判定而移除过“咒”,则你令这些角色各失去1点体力。",
+ rezhoufu_info: "①出牌阶段限一次。你可以用一张牌对一名其他角色施“咒”,且当其判定时,将“咒”作为判定牌。②一名角色的回合结束时,你令本回合移除过“咒”的角色各失去1点体力。",
+ reyingbing_info: '锁定技,有“咒”的角色使用与“咒”颜色相同的牌时,你摸一张牌;若这是你第二次因该“咒”摸牌,则你获得该"咒"。',
+ yingbin_info: "锁定技,有“咒”的角色使用与“咒”花色相同的牌时,你摸一张牌;当你因同一名角色的同一张“咒”的效果摸第二张牌时,移去该“咒”。",
+ zhoufu_info: "出牌阶段限一次,你可以将一张手牌置于一名没有“咒”的其他角色的武将牌旁,称为“咒”。当有“咒”的角色判定时,其改为将“咒”作为判定牌;一名角色的回合结束时,若有角色于此回合因判定而移除过“咒”,则你令这些角色各失去1点体力。",
yanzheng_info: "若你的手牌数大于你的体力值,则你可以将你装备区内的牌当做【无懈可击】使用。",
- kuiwei_info:
- "结束阶段开始时,你可以摸2+X张牌并翻面。你的下个摸牌阶段开始时,你弃置X张牌(X为当前时机场上所有角色装备区内武器牌数之和)。",
- tongji_info:
- "锁定技。若你的手牌数大于你的体力值,则攻击范围包含你的其他角色使用【杀】时不能指定你以外的角色为目标。",
- wangzun_info:
- "其他角色的准备阶段开始时,你可以摸一张牌。若如此做,该角色此回合的手牌上限-1。然后你不能再发动〖妄尊〗直到回合开始。",
- kaikang_info:
- "当一名角色成为【杀】的目标后,若你至该角色的距离为1,你可以摸一张牌。若如此做,你交给其一张牌并展示之。若为装备牌,该角色可以使用此牌。",
- liangzhu_info:
- "当一名角色于其出牌阶段内回复体力时,你可以选择一项:1、摸一张牌;2、令该角色摸两张牌。",
+ kuiwei_info: "结束阶段开始时,你可以摸2+X张牌并翻面。你的下个摸牌阶段开始时,你弃置X张牌(X为当前时机场上所有角色装备区内武器牌数之和)。",
+ tongji_info: "锁定技。若你的手牌数大于你的体力值,则攻击范围包含你的其他角色使用【杀】时不能指定你以外的角色为目标。",
+ wangzun_info: "其他角色的准备阶段开始时,你可以摸一张牌。若如此做,该角色此回合的手牌上限-1。然后你不能再发动〖妄尊〗直到回合开始。",
+ kaikang_info: "当一名角色成为【杀】的目标后,若你至该角色的距离为1,你可以摸一张牌。若如此做,你交给其一张牌并展示之。若为装备牌,该角色可以使用此牌。",
+ liangzhu_info: "当一名角色于其出牌阶段内回复体力时,你可以选择一项:1、摸一张牌;2、令该角色摸两张牌。",
mingshi_info: "当你受到伤害时,若伤害来源的体力值大于你,你可以弃置一张黑色手牌,令伤害值-1。",
lirang_info: "当你的牌因弃置而置入弃牌堆后,你可以将其中的任意张牌交给其他角色。",
- moukui_info:
- "当你使用【杀】指定目标后,你可以选择一项:摸一张牌,或弃置其一张牌。若如此做,当此【杀】被【闪】抵消时,目标角色弃置你的一张牌。",
- qiangwu_info:
- "出牌阶段,你可以进行判定。若如此做,直到回合结束,你使用点数小于判定结果的【杀】时不受距离限制,且你使用点数大于判定结果的【杀】时无使用次数限制。",
- shenxian_info:
- "每名角色的回合限一次,你的回合外,当有其他角色因弃置而失去基本牌时,你可以摸一张牌。",
+ moukui_info: "当你使用【杀】指定目标后,你可以选择一项:摸一张牌,或弃置其一张牌。若如此做,当此【杀】被【闪】抵消时,目标角色弃置你的一张牌。",
+ qiangwu_info: "出牌阶段,你可以进行判定。若如此做,直到回合结束,你使用点数小于判定结果的【杀】时不受距离限制,且你使用点数大于判定结果的【杀】时无使用次数限制。",
+ shenxian_info: "每名角色的回合限一次,你的回合外,当有其他角色因弃置而失去基本牌时,你可以摸一张牌。",
oldshenxian_info: "你的回合外,每当有其他角色因弃置而失去基本牌时,你可以摸一张牌。",
- qiluan_info:
- "一名角色的回合结束时,你可以摸3X+Y张牌。(X为你本回合内杀死过的角色数,Y为本回合内其他角色杀死过的角色数)",
+ qiluan_info: "一名角色的回合结束时,你可以摸3X+Y张牌。(X为你本回合内杀死过的角色数,Y为本回合内其他角色杀死过的角色数)",
//qiluan_info_guozhan:'一名角色的回合结束时,若你于回合内杀死过角色,则你可以摸三张牌。',
- zhendu_info:
- "一名角色的出牌阶段开始时,你可以弃置一张手牌,视为该角色使用了一张【酒】。若该角色不是你,你对其造成1点伤害。",
+ zhendu_info: "一名角色的出牌阶段开始时,你可以弃置一张手牌,视为该角色使用了一张【酒】。若该角色不是你,你对其造成1点伤害。",
//zhendu_info_guozhan:'其他角色的出牌阶段开始时,你可以弃置一张手牌,视为该角色使用了一张【酒】。若如此做,你对其造成1点伤害。',
shangyi_info: "出牌阶段限一次,你可以观看一名其他角色的手牌,然后弃置其中的一张黑色牌。",
- zniaoxiang_info:
- "锁定技,当你使用【杀】指定目标后,你令目标角色响应此【杀】所需要使用的【闪】的数目+1。",
+ zniaoxiang_info: "锁定技,当你使用【杀】指定目标后,你令目标角色响应此【杀】所需要使用的【闪】的数目+1。",
shoucheng_info: "当一名角色于其回合外失去手牌时,若其没有手牌,则你可令该角色摸一张牌。",
shengxi_info: "弃牌阶段开始时,若你本回合内未造成过伤害,则你可以摸两张牌。",
- hengzheng_info:
- "摸牌阶段开始时,若你的体力值为1或你没有手牌,则你可以放弃摸牌,改为获得每名其他角色区域内的一张牌。",
- cunsi_info:
- "限定技,出牌阶段,你可以将所有手牌交给一名男性角色。该角色获得技能〖勇决〗,然后你将武将牌翻面。",
- yongjue_info:
- "每回合限一次。当其他角色于回合内使用的【杀】结算完成后,若你不是此【杀】的目标角色,则你可以获得之。",
+ hengzheng_info: "摸牌阶段开始时,若你的体力值为1或你没有手牌,则你可以放弃摸牌,改为获得每名其他角色区域内的一张牌。",
+ cunsi_info: "限定技,出牌阶段,你可以将所有手牌交给一名男性角色。该角色获得技能〖勇决〗,然后你将武将牌翻面。",
+ yongjue_info: "每回合限一次。当其他角色于回合内使用的【杀】结算完成后,若你不是此【杀】的目标角色,则你可以获得之。",
guixiu_info: "当你成为【杀】的目标后,若你的手牌数小于体力值,则你可以摸一张牌。",
fenming_info: "结束阶段开始时,若你处于横置状态,你可以弃置所有处于横置状态的角色的各一张牌。",
- duanxie_info:
- "出牌阶段限一次,你可以令至多X名其他角色横置(X为你已损失的体力值且至少为1),然后你横置。",
- xiaoguo_info:
- "其他角色的结束阶段开始时,你可以弃置一张手牌,令该角色选择一项:1.弃置一张装备牌,然后你摸一张牌;2.受到你对其造成的1点伤害。",
+ duanxie_info: "出牌阶段限一次,你可以令至多X名其他角色横置(X为你已损失的体力值且至少为1),然后你横置。",
+ xiaoguo_info: "其他角色的结束阶段开始时,你可以弃置一张手牌,令该角色选择一项:1.弃置一张装备牌,然后你摸一张牌;2.受到你对其造成的1点伤害。",
sijian_info: "当你失去最后的手牌时,你可以弃置一名其他角色的一张牌。",
- suishi_info:
- "当其他角色进入濒死状态时,伤害来源可以令你摸一张牌;当其他角色死亡时,伤害来源可以令你失去1点体力。",
- quji_info:
- "出牌阶段限一次,你可以弃置X张牌(X为你已损失的体力值),然后令至多X名已受伤的角色各回复1点体力。若你以此法弃置的牌中有黑色牌,你失去1点体力。",
- junbing_info:
- "一名角色的结束阶段开始时,若其手牌数不大于1,该角色可以摸一张牌。若如此做,该角色将所有手牌交给你,然后你交给其等量的牌。",
- xiongyi_info:
- "限定技,出牌阶段,你可以选择任意名角色,这些角色各摸三张牌。然后若你的体力值最小,你回复1点体力。",
- xiongyi_info_guozhan:
- "限定技,出牌阶段,你可以令与你势力相同的所有角色各摸三张牌,然后若你的势力是角色最少的势力(或之一),则你回复1点体力。",
- shenzhi_info:
- "准备阶段开始时,你可以弃置所有手牌。若你以此法弃置的牌数不小于X,你回复1点体力(X为你的体力值)。",
+ suishi_info: "当其他角色进入濒死状态时,伤害来源可以令你摸一张牌;当其他角色死亡时,伤害来源可以令你失去1点体力。",
+ quji_info: "出牌阶段限一次,你可以弃置X张牌(X为你已损失的体力值),然后令至多X名已受伤的角色各回复1点体力。若你以此法弃置的牌中有黑色牌,你失去1点体力。",
+ junbing_info: "一名角色的结束阶段开始时,若其手牌数不大于1,该角色可以摸一张牌。若如此做,该角色将所有手牌交给你,然后你交给其等量的牌。",
+ xiongyi_info: "限定技,出牌阶段,你可以选择任意名角色,这些角色各摸三张牌。然后若你的体力值最小,你回复1点体力。",
+ xiongyi_info_guozhan: "限定技,出牌阶段,你可以令与你势力相同的所有角色各摸三张牌,然后若你的势力是角色最少的势力(或之一),则你回复1点体力。",
+ shenzhi_info: "准备阶段开始时,你可以弃置所有手牌。若你以此法弃置的牌数不小于X,你回复1点体力(X为你的体力值)。",
shushen_info: "当你回复1点体力时,你可以令一名其他角色选择回复1点体力或摸两张牌。",
- wuji_info:
- "觉醒技,结束阶段开始时,若你于此回合内造成过3点或更多伤害,你加1点体力上限并回复1点体力,失去〖虎啸〗,然后从场上、牌堆或弃牌堆中获得【青龙偃月刀】。",
- xueji_info:
- "出牌阶段限一次,你可以弃置一张红色牌,然后选择至多X名角色,横置这些角色并对其中一名角色造成1点火焰伤害。(X为你已损失的体力值且至少为1)",
- huxiao_info:
- "锁定技,当你造成火焰伤害后,你令受伤角色摸一张牌,然后你于此回合内对其使用牌没有次数限制。",
- aocai_info:
- "当你于回合外需要使用或打出一张基本牌时,你可以观看牌堆顶的两张牌(若你没有手牌则改为四张)。若你观看的牌中有此牌,你可以使用打出之。",
- aocai_info_guozhan:
- "当你于回合外需要使用或打出一张基本牌时,你可以观看牌堆顶的两张牌。若你观看的牌中有此牌,你可以使用打出之。",
+ wuji_info: "觉醒技,结束阶段开始时,若你于此回合内造成过3点或更多伤害,你加1点体力上限并回复1点体力,失去〖虎啸〗,然后从场上、牌堆或弃牌堆中获得【青龙偃月刀】。",
+ xueji_info: "出牌阶段限一次,你可以弃置一张红色牌,然后选择至多X名角色,横置这些角色并对其中一名角色造成1点火焰伤害。(X为你已损失的体力值且至少为1)",
+ huxiao_info: "锁定技,当你造成火焰伤害后,你令受伤角色摸一张牌,然后你于此回合内对其使用牌没有次数限制。",
+ aocai_info: "当你于回合外需要使用或打出一张基本牌时,你可以观看牌堆顶的两张牌(若你没有手牌则改为四张)。若你观看的牌中有此牌,你可以使用打出之。",
+ aocai_info_guozhan: "当你于回合外需要使用或打出一张基本牌时,你可以观看牌堆顶的两张牌。若你观看的牌中有此牌,你可以使用打出之。",
hongyuan_info: "摸牌阶段,你可以少摸一张牌并指定至多两名其他角色。若如此做,这些角色各摸一张牌。",
hongyuan_info_combat: "摸牌阶段,你可以少摸一张牌。若如此做,其他友方角色各摸一张牌。",
- huanshi_info:
- "一名角色的判定牌生效前,你可令其观看你的手牌。若如此做,该角色选择你的一张牌,你打出此牌代替之。",
+ huanshi_info: "一名角色的判定牌生效前,你可令其观看你的手牌。若如此做,该角色选择你的一张牌,你打出此牌代替之。",
mingzhe_info: "当你于回合外使用或打出红色牌,或因弃置失去一张红色牌后,你可以摸一张牌。",
- duwu_info:
- "出牌阶段,你可以弃置X张牌对你攻击范围内的一名其他角色造成1点伤害(X为该角色的体力值)。若该角色因此法进入濒死状态且存活,则你于濒死状态结算后失去1点体力,且本回合不能再发动〖黩武〗。",
- tianming_info:
- "当你成为【杀】的目标时,你可以弃置两张牌(不足则全弃,无牌则不弃),然后摸两张牌;若此时全场体力值最多的角色仅有一名且不是你,该角色也可以如此做。",
- mizhao_info:
- "出牌阶段限一次,你可以将所有手牌交给一名其他角色。若如此做,你令该角色与你指定的另一名有手牌的角色拼点,视为拼点赢的角色对没赢的角色使用一张【杀】。",
- yuanhu_info:
- "结束阶段开始时,你可以将一张装备牌置于一名角色的装备区里,然后根据此装备牌的类型执行以下对应效果。武器牌:弃置该角色距离1以内的一名角色区域中的一张牌;防具牌:该角色摸一张牌;坐骑牌:该角色回复1点体力。",
- lihun_info:
- "出牌阶段限一次,你可以弃置一张牌并选择一名其他男性角色。若如此做,你将武将牌翻面并获得其所有手牌。出牌阶段结束时,你交给其X张牌。(X为该角色的体力值)",
+ duwu_info: "出牌阶段,你可以弃置X张牌对你攻击范围内的一名其他角色造成1点伤害(X为该角色的体力值)。若该角色因此法进入濒死状态且存活,则你于濒死状态结算后失去1点体力,且本回合不能再发动〖黩武〗。",
+ tianming_info: "当你成为【杀】的目标时,你可以弃置两张牌(不足则全弃,无牌则不弃),然后摸两张牌;若此时全场体力值最多的角色仅有一名且不是你,该角色也可以如此做。",
+ mizhao_info: "出牌阶段限一次,你可以将所有手牌交给一名其他角色。若如此做,你令该角色与你指定的另一名有手牌的角色拼点,视为拼点赢的角色对没赢的角色使用一张【杀】。",
+ yuanhu_info: "结束阶段开始时,你可以将一张装备牌置于一名角色的装备区里,然后根据此装备牌的类型执行以下对应效果。武器牌:弃置该角色距离1以内的一名角色区域中的一张牌;防具牌:该角色摸一张牌;坐骑牌:该角色回复1点体力。",
+ lihun_info: "出牌阶段限一次,你可以弃置一张牌并选择一名其他男性角色。若如此做,你将武将牌翻面并获得其所有手牌。出牌阶段结束时,你交给其X张牌。(X为该角色的体力值)",
chongzhen_info: "当你因发动〖龙胆〗而使用或打出【杀】或【闪】时,你可以获得对方的一张手牌。",
- bifa_info:
- "结束阶段开始时,你可以将一张手牌移出游戏并指定一名其他角色。该角色的准备阶段开始时,其观看你移出游戏的牌并选择一项:交给你一张与此牌类型相同的手牌并获得此牌;或将此牌置入弃牌堆,然后失去1点体力。",
- songci_info:
- "①出牌阶段,你可以选择一名未以此法选择过的角色。若其手牌数:大于其体力值,其弃置两张牌;不大于其体力值,其摸两张牌。②弃牌阶段结束时,若你已对场上所有存活角色发动过〖颂词①〗,则你摸一张牌。",
+ bifa_info: "结束阶段开始时,你可以将一张手牌移出游戏并指定一名其他角色。该角色的准备阶段开始时,其观看你移出游戏的牌并选择一项:交给你一张与此牌类型相同的手牌并获得此牌;或将此牌置入弃牌堆,然后失去1点体力。",
+ songci_info: "①出牌阶段,你可以选择一名未以此法选择过的角色。若其手牌数:大于其体力值,其弃置两张牌;不大于其体力值,其摸两张牌。②弃牌阶段结束时,若你已对场上所有存活角色发动过〖颂词①〗,则你摸一张牌。",
yongsi_info: "锁定技。①摸牌阶段,你多摸X张牌。②弃牌阶段开始时,你弃置X张牌。(X为场上势力数)",
- yicong_info:
- "锁定技,当你的体力值大于2时,你计算与其他角色的距离时-1;当你的体力值不大于2时,其他角色计算与你的距离时+1。",
- baobian_info:
- "锁定技,若你的体力值为3或更少,你视为拥有技能〖挑衅〗;若你的体力值为2或更少;你视为拥有技能〖咆哮〗;若你的体力值为1,你视为拥有技能〖神速〗。",
+ yicong_info: "锁定技,当你的体力值大于2时,你计算与其他角色的距离时-1;当你的体力值不大于2时,其他角色计算与你的距离时+1。",
+ baobian_info: "锁定技,若你的体力值为3或更少,你视为拥有技能〖挑衅〗;若你的体力值为2或更少;你视为拥有技能〖咆哮〗;若你的体力值为1,你视为拥有技能〖神速〗。",
rebaobian: "豹变",
- rebaobian_info:
- "锁定技。当你受到伤害后,你获得以下技能中第一个未拥有的技能:〖挑衅〗/〖咆哮〗/〖神速〗。",
+ rebaobian_info: "锁定技。当你受到伤害后,你获得以下技能中第一个未拥有的技能:〖挑衅〗/〖咆哮〗/〖神速〗。",
bingzhao: "秉诏",
- bingzhao_info:
- "主公技,游戏开始时,你选择一个其他势力。当你对该势力的角色发动〖骨疽〗时,其可令你额外摸一张牌。",
+ bingzhao_info: "主公技,游戏开始时,你选择一个其他势力。当你对该势力的角色发动〖骨疽〗时,其可令你额外摸一张牌。",
sunshao: "孙邵",
bizheng: "弼政",
- bizheng_info:
- "摸牌阶段结束时,你可以令一名其他角色摸两张牌。然后,若你的手牌数大于体力上限,你弃置两张牌。若其的手牌数大于体力上限,其弃置两张牌。",
+ bizheng_info: "摸牌阶段结束时,你可以令一名其他角色摸两张牌。然后,若你的手牌数大于体力上限,你弃置两张牌。若其的手牌数大于体力上限,其弃置两张牌。",
yidian: "佚典",
- yidian_info:
- "当你使用牌选择目标时,若弃牌堆中没有与此牌名称相同的牌,则你可以为此牌增加一个目标(无距离限制)。",
+ yidian_info: "当你使用牌选择目标时,若弃牌堆中没有与此牌名称相同的牌,则你可以为此牌增加一个目标(无距离限制)。",
xinlianji: "连计",
- xinlianji_info:
- "出牌阶段限一次,你可以弃置一张手牌,令一名角色使用牌堆中的一张随机武器牌。然后其选择一项:对你指定的一名角色使用一张【杀】,或令你将其装备区里的武器牌交给任意角色。",
+ xinlianji_info: "出牌阶段限一次,你可以弃置一张手牌,令一名角色使用牌堆中的一张随机武器牌。然后其选择一项:对你指定的一名角色使用一张【杀】,或令你将其装备区里的武器牌交给任意角色。",
xinmoucheng: "谋逞",
- xinmoucheng_info:
- "觉醒技,准备阶段,若有角色因你发动〖连计〗使用【杀】而造成过伤害,则你失去〖连计〗并获得〖矜功〗。",
+ xinmoucheng_info: "觉醒技,准备阶段,若有角色因你发动〖连计〗使用【杀】而造成过伤害,则你失去〖连计〗并获得〖矜功〗。",
xinjingong: "矜功",
xinjingong_backup: "矜功",
xinjingong_info: "出牌阶段限一次,你可以将一张【杀】或装备牌当做三张随机锦囊牌中的一张使用。",
@@ -33881,36 +29602,28 @@ game.import("character", function () {
yinka: "印卡",
zhangling: "张陵",
zlhuji: "虎骑",
- zlhuji_info:
- "锁定技,你与其他角色的距离-1,当你于回合外受到伤害后,你可进行判定,若结果为红色,视为你对伤害来源使用一张【杀】(无距离限制)。",
+ zlhuji_info: "锁定技,你与其他角色的距离-1,当你于回合外受到伤害后,你可进行判定,若结果为红色,视为你对伤害来源使用一张【杀】(无距离限制)。",
zlshoufu: "授符",
zlshoufu2: "授符",
- zlshoufu_info:
- "出牌阶段限一次,你可摸一张牌,然后将一张手牌置于一名没有【箓】的角色的武将牌上,称为【箓】;其不能使用和打出与【箓】同类型的牌。该角色受到伤害后,或于弃牌阶段弃置至少两张与【箓】同类型的牌后,将【箓】置入弃牌堆。",
+ zlshoufu_info: "出牌阶段限一次,你可摸一张牌,然后将一张手牌置于一名没有【箓】的角色的武将牌上,称为【箓】;其不能使用和打出与【箓】同类型的牌。该角色受到伤害后,或于弃牌阶段弃置至少两张与【箓】同类型的牌后,将【箓】置入弃牌堆。",
ol_zhangchangpu: "OL张昌蒲",
ol_zhangchangpu_prefix: "OL",
olxingshen: "省身",
- olxingshen_info:
- "当你受到伤害后,你可以随机摸至多两张牌。若如此做,你获得X个“省”,且下一次发动〖严教〗展示牌时移去所有“省”并多展示等量的牌。(X为你已损失的体力值,且你至多拥有6个“省”)",
+ olxingshen_info: "当你受到伤害后,你可以随机摸至多两张牌。若如此做,你获得X个“省”,且下一次发动〖严教〗展示牌时移去所有“省”并多展示等量的牌。(X为你已损失的体力值,且你至多拥有6个“省”)",
caoshuang: "曹爽",
tuogu: "托孤",
- tuogu_info:
- "限定技,一名角色死亡时,你可以令其选择其武将牌上的一个技能(主公技,限定技,觉醒技,隐匿技、使命技等特殊技能除外),然后你获得其选择的技能。",
+ tuogu_info: "限定技,一名角色死亡时,你可以令其选择其武将牌上的一个技能(主公技,限定技,觉醒技,隐匿技、使命技等特殊技能除外),然后你获得其选择的技能。",
retuogu: "托孤",
- retuogu_info:
- "一名角色死亡时,你可以令其选择其武将牌上的一个技能(主公技,限定技,觉醒技,隐匿技、使命技等特殊技能除外),然后你获得其选择的技能并失去上次因〖托孤〗获得的技能。",
+ retuogu_info: "一名角色死亡时,你可以令其选择其武将牌上的一个技能(主公技,限定技,觉醒技,隐匿技、使命技等特殊技能除外),然后你获得其选择的技能并失去上次因〖托孤〗获得的技能。",
shanzhuan: "擅专",
- shanzhuan_info:
- "①当你对其他角色造成伤害后,若其判定区没有延时类锦囊牌,则你可以将其的一张牌置于其的判定区。若此牌不为延时锦囊牌且此牌为:红色,此牌视为【乐不思蜀】;黑色,此牌视为【兵粮寸断】。②回合结束时,若你本回合内未造成伤害,你可摸一张牌。",
+ shanzhuan_info: "①当你对其他角色造成伤害后,若其判定区没有延时类锦囊牌,则你可以将其的一张牌置于其的判定区。若此牌不为延时锦囊牌且此牌为:红色,此牌视为【乐不思蜀】;黑色,此牌视为【兵粮寸断】。②回合结束时,若你本回合内未造成伤害,你可摸一张牌。",
spniluan: "逆乱",
- spniluan_info:
- "出牌阶段,你可以将一张黑色牌当做【杀】使用。此【杀】使用结算完成后,若你未因此【杀】造成过伤害,则你令此【杀】不计入使用次数。",
+ spniluan_info: "出牌阶段,你可以将一张黑色牌当做【杀】使用。此【杀】使用结算完成后,若你未因此【杀】造成过伤害,则你令此【杀】不计入使用次数。",
spweiwu: "违忤",
spweiwu_info: "出牌阶段限一次,你可以将一张红色牌当无距离限制的【顺手牵羊】使用。",
spmouzhu: "谋诛",
spmouzhu_backup: "谋诛",
- spmouzhu_info:
- "出牌阶段限一次,你可以选择任意名“距离为1”或“体力值等于你”的其他角色,这些角色依次进行以下结算:交给你一张手牌,然后若其手牌数小于你,则其视为对你使用一张【杀】或【决斗】。",
+ spmouzhu_info: "出牌阶段限一次,你可以选择任意名“距离为1”或“体力值等于你”的其他角色,这些角色依次进行以下结算:交给你一张手牌,然后若其手牌数小于你,则其视为对你使用一张【杀】或【决斗】。",
spyanhuo: "延祸",
spyanhuo_info: "当你死亡时,你可增加如下全局技能:当有角色使用【杀】时,此【杀】的伤害值基数+1。",
xiaoxi: "骁袭",
@@ -33918,46 +29631,35 @@ game.import("character", function () {
quyi: "麴义",
wolongfengchu: "卧龙凤雏",
youlong: "游龙",
- youlong_info:
- "转换技,阴,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌;阳,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。",
+ youlong_info: "转换技,阴,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的普通锦囊牌;阳,每轮限一次,你可以废除你的一个装备栏,视为使用一张未以此法使用过的基本牌。",
luanfeng: "鸾凤",
//luanfeng_info_fullinfo:'限定技,一名角色进入濒死状态时,若其体力上限不小于你,你可令其回复至3点体力,恢复其被废除的装备栏,令其手牌补至6-X张(X为以此法恢复的装备栏数量),重置其因“改写”使用过的牌名。若该角色是你,重置你因“游龙”使用过的牌名。',
- luanfeng_info:
- "限定技,一名角色进入濒死状态时,若其体力上限不小于你,你可令其回复至3点体力,恢复其被废除的装备栏,令其手牌补至6-X张(X为以此法恢复的装备栏数量)。若该角色是你,重置你因“游龙”使用过的牌名。",
+ luanfeng_info: "限定技,一名角色进入濒死状态时,若其体力上限不小于你,你可令其回复至3点体力,恢复其被废除的装备栏,令其手牌补至6-X张(X为以此法恢复的装备栏数量)。若该角色是你,重置你因“游龙”使用过的牌名。",
reluanzhan: "乱战",
reluanzhan_add: "乱战",
reluanzhan_remove: "乱战",
- reluanzhan_info:
- "当你受到或造成伤害后,你获得一个“乱”。当你使用【杀】或黑色普通锦囊牌选择目标后,你可为此牌增加至多X个目标。当你使用这些牌指定第一个目标后,若此牌目标数小于X,则你移去X/2(向上取整)个“乱”。(X为“乱”数)",
+ reluanzhan_info: "当你受到或造成伤害后,你获得一个“乱”。当你使用【杀】或黑色普通锦囊牌选择目标后,你可为此牌增加至多X个目标。当你使用这些牌指定第一个目标后,若此牌目标数小于X,则你移去X/2(向上取整)个“乱”。(X为“乱”数)",
zhuixi: "追摄",
zhuixi_info: "锁定技,你使用【杀】的次数上限+1。",
reduanbing: "短兵",
- reduanbing_info:
- "你使用【杀】选择目标后,可以为此【杀】增加一名距离为1的额外目标。你对距离为1的角色使用的【杀】需两张【闪】才能抵消。",
+ reduanbing_info: "你使用【杀】选择目标后,可以为此【杀】增加一名距离为1的额外目标。你对距离为1的角色使用的【杀】需两张【闪】才能抵消。",
refenxun: "奋迅",
refenxun2: "奋迅",
- refenxun_info:
- "出牌阶段限一次,你可以选择一名其他角色,然后本回合你计算与其的距离视为1;结束阶段开始时,若你未对其造成过伤害,你弃一张牌。",
+ refenxun_info: "出牌阶段限一次,你可以选择一名其他角色,然后本回合你计算与其的距离视为1;结束阶段开始时,若你未对其造成过伤害,你弃一张牌。",
zongyu: "宗预",
zyqiao: "气傲",
- zyqiao_info:
- "每回合限两次。当你成为其他角色使用牌的目标后,你可以弃置其一张牌,然后你弃置一张牌。",
- zyqiao_info_guozhan:
- "每回合限两次。当你成为其他势力的角色使用牌的目标后,你可以弃置其一张牌,然后你弃置一张牌。",
+ zyqiao_info: "每回合限两次。当你成为其他角色使用牌的目标后,你可以弃置其一张牌,然后你弃置一张牌。",
+ zyqiao_info_guozhan: "每回合限两次。当你成为其他势力的角色使用牌的目标后,你可以弃置其一张牌,然后你弃置一张牌。",
chengshang: "承赏",
- chengshang_info:
- "当你于出牌阶段内使用的牌结算完成后,若此牌未造成过伤害且此牌的目标包含其他角色且你本阶段内未因〖承赏〗得到过牌,则你可以从牌堆中获得所有与此牌花色点数相同的牌。",
- chengshang_info_guozhan:
- "当你于出牌阶段内使用的牌结算完成后,若此牌未造成过伤害且此牌的目标包含其他角色且你本阶段内未因〖承赏〗得到过牌,则你可以从牌堆中获得所有与此牌花色点数相同的牌。",
+ chengshang_info: "当你于出牌阶段内使用的牌结算完成后,若此牌未造成过伤害且此牌的目标包含其他角色且你本阶段内未因〖承赏〗得到过牌,则你可以从牌堆中获得所有与此牌花色点数相同的牌。",
+ chengshang_info_guozhan: "当你于出牌阶段内使用的牌结算完成后,若此牌未造成过伤害且此牌的目标包含其他角色且你本阶段内未因〖承赏〗得到过牌,则你可以从牌堆中获得所有与此牌花色点数相同的牌。",
panshu: "OL潘淑",
panshu_prefix: "OL",
weiyi: "威仪",
- weiyi_info:
- "每名角色限一次。当有角色受到伤害后,你可选择:①若其体力值不小于你,则其失去1点体力。②若其体力值不大于你且其已受伤,则其回复1点体力。",
+ weiyi_info: "每名角色限一次。当有角色受到伤害后,你可选择:①若其体力值不小于你,则其失去1点体力。②若其体力值不大于你且其已受伤,则其回复1点体力。",
jinzhi: "锦织",
jinzhi2: "锦织",
- jinzhi_info:
- "当你需要使用或打出一张基本牌时,你可弃置X+1张颜色相同的牌并摸一张牌,然后视为你使用或打出了此牌。(X为你于本轮内发动此技能的次数)",
+ jinzhi_info: "当你需要使用或打出一张基本牌时,你可弃置X+1张颜色相同的牌并摸一张牌,然后视为你使用或打出了此牌。(X为你于本轮内发动此技能的次数)",
yanxiao_card: "言笑",
yanxiao_global: "言笑",
yanxiao_card_info: "判定阶段开始时,你获得判定区内的所有牌。",
@@ -33966,197 +29668,149 @@ game.import("character", function () {
huangzu_prefix: "OL",
wangong: "挽弓",
wangong2: "挽弓",
- wangong_info:
- "锁定技,当你使用基本牌时,你获得如下效果:当你使用下一张牌时,若此牌为【杀】,则此牌无次数和距离限制且伤害+1。",
+ wangong_info: "锁定技,当你使用基本牌时,你获得如下效果:当你使用下一张牌时,若此牌为【杀】,则此牌无次数和距离限制且伤害+1。",
huangchengyan: "OL黄承彦",
huangchengyan_prefix: "OL",
guanxu: "观虚",
- guanxu_info:
- "出牌阶段限一次,你可以观看一名其他角色的手牌,然后你可将其中一张手牌与牌堆顶五张牌中的一张交换。若如此做,你弃置其手牌中三张花色相同的牌。",
+ guanxu_info: "出牌阶段限一次,你可以观看一名其他角色的手牌,然后你可将其中一张手牌与牌堆顶五张牌中的一张交换。若如此做,你弃置其手牌中三张花色相同的牌。",
yashi: "雅士",
- yashi_info:
- "当你受到一次伤害后,你可选择一项:1. 令伤害来源的非锁定技无效直到其下个回合开始;2. 对一名其他角色发动〖观虚〗。",
+ yashi_info: "当你受到一次伤害后,你可选择一项:1. 令伤害来源的非锁定技无效直到其下个回合开始;2. 对一名其他角色发动〖观虚〗。",
olwuniang: "武娘",
- olwuniang_info:
- "每回合限一次,当你于回合内使用的【杀】结算完成后,若此【杀】对应的目标数为1,则你可以令目标角色选择是否对你使用使用【杀】。你于其选择结算完成后摸一张牌,且本回合内使用【杀】的次数上限+1。",
+ olwuniang_info: "每回合限一次,当你于回合内使用的【杀】结算完成后,若此【杀】对应的目标数为1,则你可以令目标角色选择是否对你使用使用【杀】。你于其选择结算完成后摸一张牌,且本回合内使用【杀】的次数上限+1。",
olxushen: "许身",
- olxushen_info:
- "限定技,当你进入濒死状态时,你可将体力回复至1点并获得技能〖镇南〗。然后若场上没有存活的“关索”,则你可以令一名其他男性角色选择是否将一张武将牌替换为“关索”。",
+ olxushen_info: "限定技,当你进入濒死状态时,你可将体力回复至1点并获得技能〖镇南〗。然后若场上没有存活的“关索”,则你可以令一名其他男性角色选择是否将一张武将牌替换为“关索”。",
olzhennan: "镇南",
olzhennan2: "镇南",
- olzhennan_info:
- "【南蛮入侵】对你无效。出牌阶段限一次,你可以将任意张手牌当做【南蛮入侵】对等量的角色使用。",
+ olzhennan_info: "【南蛮入侵】对你无效。出牌阶段限一次,你可以将任意张手牌当做【南蛮入侵】对等量的角色使用。",
gaogan: "高干",
juguan: "拒关",
juguan_backup: "拒关",
- juguan_info:
- "出牌阶段限一次,你可将一张手牌当【杀】或【决斗】使用。若受到此牌伤害的角色未在你的下回合开始前对你造成过伤害,你的下个摸牌阶段摸牌数+2。",
+ juguan_info: "出牌阶段限一次,你可将一张手牌当【杀】或【决斗】使用。若受到此牌伤害的角色未在你的下回合开始前对你造成过伤害,你的下个摸牌阶段摸牌数+2。",
duxi: "杜袭",
quxi: "驱徙",
- quxi_info:
- "限定技。出牌阶段结束时,你可跳过下个弃牌阶段并选择两名手牌数不同的其他角色。你将武将牌翻至背面,令这两名角色中手牌数较少的角色获得另一名角色的一张牌并获得一枚“丰”,另一名角色获得一枚“歉”。拥有“丰”/“歉”的角色的摸牌阶段额定摸牌数+1/-1。拥有“丰”/“歉”的角色死亡时,或一轮游戏开始时,你可转移“丰”/“歉”。",
+ quxi_info: "限定技。出牌阶段结束时,你可跳过下个弃牌阶段并选择两名手牌数不同的其他角色。你将武将牌翻至背面,令这两名角色中手牌数较少的角色获得另一名角色的一张牌并获得一枚“丰”,另一名角色获得一枚“歉”。拥有“丰”/“歉”的角色的摸牌阶段额定摸牌数+1/-1。拥有“丰”/“歉”的角色死亡时,或一轮游戏开始时,你可转移“丰”/“歉”。",
bixiong: "避凶",
bixiong2: "避凶",
- bixiong_info:
- "锁定技,当你于弃牌阶段弃置手牌后,其他角色不能使用与这些牌花色相同的牌指定你为目标直到你的下回合开始。",
+ bixiong_info: "锁定技,当你于弃牌阶段弃置手牌后,其他角色不能使用与这些牌花色相同的牌指定你为目标直到你的下回合开始。",
fuwei: "扶危",
- fuwei_info:
- "每回合限一次。当你的牌被其他角色弃置或获得后,你可从牌堆中获得一张与此牌名称相同的牌(若没有则改为摸一张牌)。",
+ fuwei_info: "每回合限一次。当你的牌被其他角色弃置或获得后,你可从牌堆中获得一张与此牌名称相同的牌(若没有则改为摸一张牌)。",
yuejian: "约俭",
- yuejian_info:
- "每回合限两次。当其他角色对你使用的牌A结算结束后,你可展示所有手牌。若牌A有花色且你的手牌中没有同花色的牌,则你获得牌A对应的所有实体牌。",
+ yuejian_info: "每回合限两次。当其他角色对你使用的牌A结算结束后,你可展示所有手牌。若牌A有花色且你的手牌中没有同花色的牌,则你获得牌A对应的所有实体牌。",
ol_dengzhi: "OL邓芝",
ol_dengzhi_prefix: "OL",
olxiuhao: "修好",
- olxiuhao_info:
- "每回合限一次。当你受到其他角色造成的伤害时,或其他角色受到你造成的伤害时,你可防止此伤害,然后令伤害来源摸两张牌。",
+ olxiuhao_info: "每回合限一次。当你受到其他角色造成的伤害时,或其他角色受到你造成的伤害时,你可防止此伤害,然后令伤害来源摸两张牌。",
olsujian: "素俭",
olsujian_given: "已分配",
- olsujian_info:
- "锁定技。弃牌阶段开始前,你将此阶段的规则改为:{你选择一项:①将所有不为本回合得到的手牌分配给其他角色。②弃置这些手牌,然后弃置一名其他角色等量的牌}。",
+ olsujian_info: "锁定技。弃牌阶段开始前,你将此阶段的规则改为:{你选择一项:①将所有不为本回合得到的手牌分配给其他角色。②弃置这些手牌,然后弃置一名其他角色等量的牌}。",
ol_wangrong: "OL王荣",
ol_wangrong_prefix: "OL",
olfengzi: "丰姿",
- olfengzi_info:
- "出牌阶段限一次。当你使用有目标的基本牌或普通锦囊牌时,你可弃置一张与此牌类型相同的牌,然后令此牌结算两次。",
+ olfengzi_info: "出牌阶段限一次。当你使用有目标的基本牌或普通锦囊牌时,你可弃置一张与此牌类型相同的牌,然后令此牌结算两次。",
oljizhan: "吉占",
- oljizhan_info:
- "摸牌阶段开始时,你可以放弃摸牌。你亮出牌堆顶的一张牌,并猜测牌堆顶的下一张牌点数大于或小于此牌。若你猜对,你可继续重复此流程。然后你获得以此法展示的所有牌。",
+ oljizhan_info: "摸牌阶段开始时,你可以放弃摸牌。你亮出牌堆顶的一张牌,并猜测牌堆顶的下一张牌点数大于或小于此牌。若你猜对,你可继续重复此流程。然后你获得以此法展示的所有牌。",
olfusong: "赋颂",
- olfusong_info:
- "当你死亡时,你可以选择一名体力上限大于你的其他角色。其选择获得〖吉占〗或〖丰姿〗。",
+ olfusong_info: "当你死亡时,你可以选择一名体力上限大于你的其他角色。其选择获得〖吉占〗或〖丰姿〗。",
zuofen: "左棻",
zhaosong: "诏颂",
- zhaosong_info:
- "一名其他角色的摸牌阶段结束时,若其没有因〖诏颂〗而获得的标记,则你可令其正面向上交给你一张手牌。根据此牌的类型,该角色获得对应的标记和效果:
锦囊牌:“诔”标记。当拥有者进入濒死状态时,其可弃置所有“诔”,将体力回复至1点并摸一张牌。
装备牌:“赋”标记。拥有者的出牌阶段开始时,其可弃置所有“赋”,弃置一名角色区域内的至多两张牌。
基本牌:“颂”标记。当使用者使用仅指定一个目标的【杀】时,其可弃置“颂”,为此【杀】增加至多两个目标。",
+ zhaosong_info: "一名其他角色的摸牌阶段结束时,若其没有因〖诏颂〗而获得的标记,则你可令其正面向上交给你一张手牌。根据此牌的类型,该角色获得对应的标记和效果:
锦囊牌:“诔”标记。当拥有者进入濒死状态时,其可弃置所有“诔”,将体力回复至1点并摸一张牌。
装备牌:“赋”标记。拥有者的出牌阶段开始时,其可弃置所有“赋”,弃置一名角色区域内的至多两张牌。
基本牌:“颂”标记。当使用者使用仅指定一个目标的【杀】时,其可弃置“颂”,为此【杀】增加至多两个目标。",
lisi: "离思",
lisi_info: "当你于回合外使用的牌结算结束后,你可将其交给一名手牌数不大于你的其他角色。",
ol_yangyi: "杨仪",
oljuanxia: "狷狭",
- oljuanxia_info:
- "结束阶段,你可以选择一名其他角色。你依次视为对其使用至多三种单目标普通锦囊牌。然后其下回合结束时,可视为对你使用等量的【杀】。",
+ oljuanxia_info: "结束阶段,你可以选择一名其他角色。你依次视为对其使用至多三种单目标普通锦囊牌。然后其下回合结束时,可视为对你使用等量的【杀】。",
oldingcuo: "定措",
- oldingcuo_info:
- "每回合限一次。当你受到或造成伤害后,你可摸两张牌。若这两张牌颜色不同,则你弃置一张手牌。",
+ oldingcuo_info: "每回合限一次。当你受到或造成伤害后,你可摸两张牌。若这两张牌颜色不同,则你弃置一张手牌。",
fengfangnv: "OL冯妤",
fengfangnv_prefix: "OL",
zhuangshu: "妆梳",
- zhuangshu_info:
- "①游戏开始时,你可将{【琼梳】,【犀梳】,【金梳】}中的一张牌置于装备区。②一名角色的回合开始时,若其宝物区为空,则你可以弃置一张牌,并根据此牌的类型,按如下关系将一张宝物牌置入该角色的装备区:{<基本牌,【琼梳】>,<锦囊牌,【犀梳】>,<装备牌,【金梳】>}。",
+ zhuangshu_info: "①游戏开始时,你可将{【琼梳】,【犀梳】,【金梳】}中的一张牌置于装备区。②一名角色的回合开始时,若其宝物区为空,则你可以弃置一张牌,并根据此牌的类型,按如下关系将一张宝物牌置入该角色的装备区:{<基本牌,【琼梳】>,<锦囊牌,【犀梳】>,<装备牌,【金梳】>}。",
chuiti: "垂涕",
- chuiti_info:
- "每回合限一次。当你或拥有〖妆梳〗牌角色的牌因弃置而进入弃牌堆后,你可使用其中的一张牌。",
+ chuiti_info: "每回合限一次。当你或拥有〖妆梳〗牌角色的牌因弃置而进入弃牌堆后,你可使用其中的一张牌。",
zhuangshu_basic: "琼梳",
zhuangshu_basic_bg: "琼",
- zhuangshu_basic_info:
- "当你受到伤害时,你可以弃置X张牌并防止此伤害(X为伤害值)。当此牌不因交换装备或移动至其他装备区而离开你的装备区后,销毁之。",
+ zhuangshu_basic_info: "当你受到伤害时,你可以弃置X张牌并防止此伤害(X为伤害值)。当此牌不因交换装备或移动至其他装备区而离开你的装备区后,销毁之。",
zhuangshu_trick: "犀梳",
zhuangshu_trick_bg: "犀",
- zhuangshu_trick_info:
- "判定阶段开始前,你可选择:①跳过此阶段。②跳过本回合的弃牌阶段。当此牌不因交换装备或移动至其他装备区而离开你的装备区后,销毁之。",
+ zhuangshu_trick_info: "判定阶段开始前,你可选择:①跳过此阶段。②跳过本回合的弃牌阶段。当此牌不因交换装备或移动至其他装备区而离开你的装备区后,销毁之。",
zhuangshu_equip: "金梳",
zhuangshu_equip_bg: "金",
- zhuangshu_equip_info:
- "锁定技。出牌阶段结束时,你将手牌摸至手牌上限(至多摸五张)。当此牌不因交换装备或移动至其他装备区而离开你的装备区后,销毁之。",
+ zhuangshu_equip_info: "锁定技。出牌阶段结束时,你将手牌摸至手牌上限(至多摸五张)。当此牌不因交换装备或移动至其他装备区而离开你的装备区后,销毁之。",
ol_dongzhao: "OL董昭",
ol_dongzhao_prefix: "OL",
olxianlve: "先略",
- olxianlve_info:
- "①主公的回合开始时,你可声明并记录一个锦囊牌的名称并移除先前的记录。②每回合限一次,其他角色使用〖先略〗记录过的锦囊牌后,你可摸两张牌并可以分配给任意其他角色,然后你可声明并记录一个锦囊牌的名称并移除先前的记录。",
+ olxianlve_info: "①主公的回合开始时,你可声明并记录一个锦囊牌的名称并移除先前的记录。②每回合限一次,其他角色使用〖先略〗记录过的锦囊牌后,你可摸两张牌并可以分配给任意其他角色,然后你可声明并记录一个锦囊牌的名称并移除先前的记录。",
olzaowang: "造王",
olzaowang2: "造王",
- olzaowang_info:
- "限定技。出牌阶段,你可以令一名角色加1点体力上限,回复1点体力并摸三张牌,且获得如下效果:主公死亡时,若其身份为忠臣,则其和主公交换身份牌;其死亡时,若其身份为反贼且伤害来源的身份为主公或忠臣,则以主忠胜利结束本局游戏。",
+ olzaowang_info: "限定技。出牌阶段,你可以令一名角色加1点体力上限,回复1点体力并摸三张牌,且获得如下效果:主公死亡时,若其身份为忠臣,则其和主公交换身份牌;其死亡时,若其身份为反贼且伤害来源的身份为主公或忠臣,则以主忠胜利结束本局游戏。",
sp_ol_zhanghe: "SP张郃",
sp_ol_zhanghe_prefix: "SP",
spolzhouxuan: "周旋",
- spolzhouxuan_info:
- "①弃牌阶段开始时,你可将任意张置于武将牌上,称为“旋”(你至多拥有五张“旋”)。②当你使用牌时,你随机将一张“旋”置入弃牌堆,然后摸一张牌(若你的手牌数不为全场唯一最多则额外摸X张牌,X为“旋”数)。③出牌阶段结束时,你将所有“旋”置入弃牌堆。",
+ spolzhouxuan_info: "①弃牌阶段开始时,你可将任意张置于武将牌上,称为“旋”(你至多拥有五张“旋”)。②当你使用牌时,你随机将一张“旋”置入弃牌堆,然后摸一张牌(若你的手牌数不为全场唯一最多则额外摸X张牌,X为“旋”数)。③出牌阶段结束时,你将所有“旋”置入弃牌堆。",
wuyan: "吾彦",
lanjiang: "澜疆",
- lanjiang_info:
- "结束阶段,你可以选择所有手牌数不小于你的角色。这些角色依次选择是否令你摸一张牌。然后你可以对其中一名手牌数等于你的角色造成1点伤害,随后令其中一名手牌数小于你的角色摸一张牌。",
+ lanjiang_info: "结束阶段,你可以选择所有手牌数不小于你的角色。这些角色依次选择是否令你摸一张牌。然后你可以对其中一名手牌数等于你的角色造成1点伤害,随后令其中一名手牌数小于你的角色摸一张牌。",
ol_zhuling: "OL朱灵",
ol_zhuling_prefix: "OL",
jixian: "急陷",
- jixian_info:
- "摸牌阶段结束时,你可以选择一名满足以下至少一项条件的角色:⒈装备区内有防具牌;⒉拥有的普通技能数大于你;⒊体力值等于体力上限。你视为对其使用一张【杀】,然后摸X张牌(X为其于此【杀】结算前满足的条件数);若此【杀】未造成伤害,则你失去1点体力。",
+ jixian_info: "摸牌阶段结束时,你可以选择一名满足以下至少一项条件的角色:⒈装备区内有防具牌;⒉拥有的普通技能数大于你;⒊体力值等于体力上限。你视为对其使用一张【杀】,然后摸X张牌(X为其于此【杀】结算前满足的条件数);若此【杀】未造成伤害,则你失去1点体力。",
ol_chendeng: "OL陈登",
ol_chendeng_prefix: "OL",
olfengji: "丰积",
- olfengji_info:
- "摸牌阶段开始时,你选择:⒈本回合摸牌阶段的额定摸牌数-1,且令一名其他角色下回合摸牌阶段的额定摸牌数+2;⒉本回合摸牌阶段的额定摸牌数+1。然后你选择:⒈本回合使用【杀】的次数上限-1,且令一名其他角色下回合使用【杀】的次数上限+2;⒉本回合使用【杀】的次数上限+1。",
+ olfengji_info: "摸牌阶段开始时,你选择:⒈本回合摸牌阶段的额定摸牌数-1,且令一名其他角色下回合摸牌阶段的额定摸牌数+2;⒉本回合摸牌阶段的额定摸牌数+1。然后你选择:⒈本回合使用【杀】的次数上限-1,且令一名其他角色下回合使用【杀】的次数上限+2;⒉本回合使用【杀】的次数上限+1。",
tianyu: "田豫",
saodi: "扫狄",
- saodi_info:
- "当你使用【杀】或普通锦囊牌指定唯一其他角色为目标时,你可从逆时针方向和顺时针方向中选择一个你与其之间角色最少的方向。你令该方向下你与其之间的所有能成为此牌额外目标的角色均成为此牌的目标。",
+ saodi_info: "当你使用【杀】或普通锦囊牌指定唯一其他角色为目标时,你可从逆时针方向和顺时针方向中选择一个你与其之间角色最少的方向。你令该方向下你与其之间的所有能成为此牌额外目标的角色均成为此牌的目标。",
zhuitao: "追讨",
- zhuitao_info:
- "①准备阶段,你可选择一名未被〖追讨〗记录过的其他角色。②你至所有〖追讨〗记录过的角色的距离-1。③当你对一名被〖追讨〗记录过的角色造成伤害时,你从〖追讨〗记录里移除该角色。",
+ zhuitao_info: "①准备阶段,你可选择一名未被〖追讨〗记录过的其他角色。②你至所有〖追讨〗记录过的角色的距离-1。③当你对一名被〖追讨〗记录过的角色造成伤害时,你从〖追讨〗记录里移除该角色。",
fanjiangzhangda_ab: "范疆张达",
fanjiangzhangda: "范强张达",
yuanchou: "怨仇",
- yuanchou_info:
- "锁定技。当你使用黑色【杀】指定目标角色后或成为黑色【杀】的目标角色后,你令目标角色的防具技能无效直到此【杀】被抵消或造成伤害。",
+ yuanchou_info: "锁定技。当你使用黑色【杀】指定目标角色后或成为黑色【杀】的目标角色后,你令目标角色的防具技能无效直到此【杀】被抵消或造成伤害。",
juesheng: "决生",
- juesheng_info:
- "限定技。出牌阶段,你可视为使用一张【决斗】。当你因此【决斗】造成伤害时,你将伤害值改为X(X为目标角色本局游戏内使用过【杀】的数量且至少为1)且令目标角色获得此技能直到其下回合结束。",
+ juesheng_info: "限定技。出牌阶段,你可视为使用一张【决斗】。当你因此【决斗】造成伤害时,你将伤害值改为X(X为目标角色本局游戏内使用过【杀】的数量且至少为1)且令目标角色获得此技能直到其下回合结束。",
qinghegongzhu: "清河公主",
zengou: "谮构",
- zengou_info:
- "当有角色使用【闪】时,若其在你的攻击范围内,则你可以弃置一张非基本牌或失去1点体力,然后取消此【闪】的目标并获得其对应的实体牌。",
+ zengou_info: "当有角色使用【闪】时,若其在你的攻击范围内,则你可以弃置一张非基本牌或失去1点体力,然后取消此【闪】的目标并获得其对应的实体牌。",
qhzhangji: "长姬",
- qhzhangji_info:
- "一名角色的回合结束时,若你本回合内:造成过伤害,则你可以令其摸两张牌;受到过伤害,则你可以令其弃置两张牌。",
+ qhzhangji_info: "一名角色的回合结束时,若你本回合内:造成过伤害,则你可以令其摸两张牌;受到过伤害,则你可以令其弃置两张牌。",
sp_menghuo: "SP孟获",
sp_menghuo_prefix: "SP",
spmanwang: "蛮王",
- spmanwang_info:
- "出牌阶段,你可以弃置任意张牌。然后你依次执行以下选项中的前等量项:⒈获得〖叛侵〗。⒉摸一张牌。⒊回复1点体力。⒋摸两张牌并失去〖叛侵〗。",
+ spmanwang_info: "出牌阶段,你可以弃置任意张牌。然后你依次执行以下选项中的前等量项:⒈获得〖叛侵〗。⒉摸一张牌。⒊回复1点体力。⒋摸两张牌并失去〖叛侵〗。",
sppanqin: "叛侵",
- sppanqin_info:
- "出牌阶段或弃牌阶段结束时,你可将你于本阶段内弃置且位于弃牌堆的所有牌当做【南蛮入侵】使用。然后若此牌被使用时对应的实体牌数不大于此牌的目标数,则你执行并移除〖蛮王〗中的最后一个选项。",
+ sppanqin_info: "出牌阶段或弃牌阶段结束时,你可将你于本阶段内弃置且位于弃牌堆的所有牌当做【南蛮入侵】使用。然后若此牌被使用时对应的实体牌数不大于此牌的目标数,则你执行并移除〖蛮王〗中的最后一个选项。",
tengfanglan: "OL滕芳兰",
tengfanglan_prefix: "OL",
luochong: "落宠",
- luochong_info:
- "准备阶段开始时/当你于一回合内首次受到伤害后,你可选择本轮内未选择过的一项(每名角色每轮限选一次):⒈令一名角色回复1点体力。⒉令一名角色失去1点体力。⒊令一名角色弃置两张牌。⒋令一名角色摸两张牌。",
+ luochong_info: "准备阶段开始时/当你于一回合内首次受到伤害后,你可选择本轮内未选择过的一项(每名角色每轮限选一次):⒈令一名角色回复1点体力。⒉令一名角色失去1点体力。⒊令一名角色弃置两张牌。⒋令一名角色摸两张牌。",
aichen: "哀尘",
- aichen_info:
- "锁定技。当你进入濒死状态时,若〖落宠〗中的剩余选项数大于1,则你选择移去〖落宠〗中的一个选项。",
+ aichen_info: "锁定技。当你进入濒死状态时,若〖落宠〗中的剩余选项数大于1,则你选择移去〖落宠〗中的一个选项。",
weizi: "卫兹",
yuanzi: "援资",
- yuanzi_info:
- "每轮限一次。其他角色的准备阶段开始时,你可将所有手牌交给该角色。若如此做,当该角色于本回合内造成伤害后,若其手牌数不小于你,则你摸两张牌。",
+ yuanzi_info: "每轮限一次。其他角色的准备阶段开始时,你可将所有手牌交给该角色。若如此做,当该角色于本回合内造成伤害后,若其手牌数不小于你,则你摸两张牌。",
liejie: "烈节",
- liejie_info:
- "当你受到伤害后,你可以弃置至多三张牌,摸等量的牌,然后可弃置伤害来源的至多X张牌(X为你以此法弃置的红色牌的数量)。",
+ liejie_info: "当你受到伤害后,你可以弃置至多三张牌,摸等量的牌,然后可弃置伤害来源的至多X张牌(X为你以此法弃置的红色牌的数量)。",
ruiji: "OL芮姬",
ruiji_prefix: "OL",
qiaoli: "巧力",
- qiaoli_info:
- "出牌阶段各限一次,你可以将一张武器牌/非武器装备牌当作【决斗】使用。若此【决斗】对应的实体牌为武器牌,当你以此【决斗】对目标角色造成伤害后,你摸X张牌(X为此牌的攻击范围),且可以将其中任意张牌分配给其他角色;若此【决斗】对应的实体牌不为武器牌,此牌不可被响应,且你于结束阶段从牌堆中获得一张装备牌。",
+ qiaoli_info: "出牌阶段各限一次,你可以将一张武器牌/非武器装备牌当作【决斗】使用。若此【决斗】对应的实体牌为武器牌,当你以此【决斗】对目标角色造成伤害后,你摸X张牌(X为此牌的攻击范围),且可以将其中任意张牌分配给其他角色;若此【决斗】对应的实体牌不为武器牌,此牌不可被响应,且你于结束阶段从牌堆中获得一张装备牌。",
qiaoli_given: "已分配",
qingliang: "清靓",
- qingliang_info:
- "每回合限一次,当你成为其他角色使用【杀】或伤害类锦囊牌的唯一目标时,你可展示所有手牌,然后选择一项:⒈你与其各摸一张牌,⒉取消此目标,然后弃置你手牌中一种花色的所有牌。",
+ qingliang_info: "每回合限一次,当你成为其他角色使用【杀】或伤害类锦囊牌的唯一目标时,你可展示所有手牌,然后选择一项:⒈你与其各摸一张牌,⒉取消此目标,然后弃置你手牌中一种花色的所有牌。",
chixueqingfeng: "赤血青锋",
chixueqingfeng2: "赤血青锋",
- chixueqingfeng_info:
- "锁定技,当你使用【杀】指定目标后,你令目标角色不能使用或打出手牌且防具技能无效直到此【杀】结算结束。",
+ chixueqingfeng_info: "锁定技,当你使用【杀】指定目标后,你令目标角色不能使用或打出手牌且防具技能无效直到此【杀】结算结束。",
wushuangfangtianji: "无双方天戟",
wushuangfangtianji_skill: "无双方天戟",
- wushuangfangtianji_info:
- "当你因执行【杀】的效果而造成伤害后,你可选择一项:⒈摸一张牌;⒉弃置目标角色的一张牌。",
+ wushuangfangtianji_info: "当你因执行【杀】的效果而造成伤害后,你可选择一项:⒈摸一张牌;⒉弃置目标角色的一张牌。",
guilongzhanyuedao: "鬼龙斩月刀",
guilongzhanyuedao_info: "锁定技,你使用的红色【杀】不可被响应。",
bintieshuangji: "镔铁双戟",
bintieshuangji_skill: "镔铁双戟",
- bintieshuangji_info:
- "当你使用的【杀】被抵消后,你可失去1点体力。获得此【杀】对应的所有实体牌,摸一张牌,且本回合使用【杀】的次数上限+1。",
+ bintieshuangji_info: "当你使用的【杀】被抵消后,你可失去1点体力。获得此【杀】对应的所有实体牌,摸一张牌,且本回合使用【杀】的次数上限+1。",
linglongshimandai: "玲珑狮蛮带",
- linglongshimandai_info:
- "当你成为其他角色使用的牌的唯一目标后,你可以进行判定。若判定结果为♥,则此牌对你无效。",
+ linglongshimandai_info: "当你成为其他角色使用的牌的唯一目标后,你可以进行判定。若判定结果为♥,则此牌对你无效。",
linglongshimandai_skill: "玲珑狮蛮带",
hongmianbaihuapao_skill: "红棉百花袍",
hongmianbaihuapao: "红棉百花袍",
@@ -34173,416 +29827,313 @@ game.import("character", function () {
sanlve_info: "锁定技。你的攻击范围+1。你的手牌上限+1。你使用【杀】的次数上限+1。",
zhaogujing: "照骨镜",
zhaogujing_skill: "照骨镜",
- zhaogujing_info:
- "出牌阶段结束时,你可展示手牌中的一张基本牌或普通锦囊牌,然后你视为使用一张牌名和属性与此牌相同的牌。",
+ zhaogujing_info: "出牌阶段结束时,你可展示手牌中的一张基本牌或普通锦囊牌,然后你视为使用一张牌名和属性与此牌相同的牌。",
xuwangzhimian: "虚妄之冕",
xuwangzhimian_info: "锁定技,摸牌阶段,你令额定摸牌数+2;你的手牌上限-1。",
ol_puyuan: "OL蒲元",
ol_puyuan_prefix: "OL",
olshengong: "神工",
- olshengong_info:
- "出牌阶段每项限一次。你可以弃置一张武器牌/防具牌/其他装备牌,并发起一次“锻造”。然后你从锻造结果中选择一张牌,置于一名角色的装备区内(可替换原装备)。当有因你发动〖神工〗而加入游戏的牌进入弃牌堆后,你将此牌移出游戏,然后你于当前回合结束后摸一张牌。",
+ olshengong_info: "出牌阶段每项限一次。你可以弃置一张武器牌/防具牌/其他装备牌,并发起一次“锻造”。然后你从锻造结果中选择一张牌,置于一名角色的装备区内(可替换原装备)。当有因你发动〖神工〗而加入游戏的牌进入弃牌堆后,你将此牌移出游戏,然后你于当前回合结束后摸一张牌。",
olqisi: "奇思",
- olqisi_info:
- "①游戏开始时,你获得两张副类别不同的牌,并将这些牌置入你的装备区。②摸牌阶段开始时,你可以少摸一张牌并声明一种装备牌的副类别,然后从牌堆或弃牌堆中获得一张该副类别的牌。",
+ olqisi_info: "①游戏开始时,你获得两张副类别不同的牌,并将这些牌置入你的装备区。②摸牌阶段开始时,你可以少摸一张牌并声明一种装备牌的副类别,然后从牌堆或弃牌堆中获得一张该副类别的牌。",
olzhuiji: "追击",
- olzhuiji_info:
- "锁定技。①你至体力值不大于你的角色的距离为1。②当你使用【杀】指定距离为1的角色为目标后,你令其选择一项:⒈弃置一张牌。⒉重铸装备区内的所有牌。",
+ olzhuiji_info: "锁定技。①你至体力值不大于你的角色的距离为1。②当你使用【杀】指定距离为1的角色为目标后,你令其选择一项:⒈弃置一张牌。⒉重铸装备区内的所有牌。",
zhaoyǎn: "OL赵俨",
zhaoyǎn_prefix: "OL",
tongxie: "同协",
- tongxie_info:
- "出牌阶段开始时,你可以选择包括你在内的至多三名角色(你与这些角色均称为“同协角色”)。这些角色中手牌数唯一最少的角色摸一张牌,且你获得如下效果直到你下回合开始:①当有“同协角色”对唯一目标角色使用的【杀】结算结束后,其他“同协角色”可以依次对目标角色使用一张【杀】(无距离和次数限制,且不能再触发此效果)。②当有“同协角色”受到伤害时,其他“同协角色”(本回合内失去过体力的角色除外)可以防止此伤害,失去1点体力。",
+ tongxie_info: "出牌阶段开始时,你可以选择包括你在内的至多三名角色(你与这些角色均称为“同协角色”)。这些角色中手牌数唯一最少的角色摸一张牌,且你获得如下效果直到你下回合开始:①当有“同协角色”对唯一目标角色使用的【杀】结算结束后,其他“同协角色”可以依次对目标角色使用一张【杀】(无距离和次数限制,且不能再触发此效果)。②当有“同协角色”受到伤害时,其他“同协角色”(本回合内失去过体力的角色除外)可以防止此伤害,失去1点体力。",
jin_zhouchu: "周处",
shanduan: "善断",
- shanduan_info:
- "锁定技。①摸牌/出牌/弃牌阶段开始时,你为本回合摸牌阶段摸牌数/攻击范围和使用【杀】的限制次数/手牌上限的默认值从数组R=[1,2,3,4]中分配数值。②当你于回合外受到伤害后,你令下回合〖善断①〗以此法分配的数值集合R中的最小值+1。",
+ shanduan_info: "锁定技。①摸牌/出牌/弃牌阶段开始时,你为本回合摸牌阶段摸牌数/攻击范围和使用【杀】的限制次数/手牌上限的默认值从数组R=[1,2,3,4]中分配数值。②当你于回合外受到伤害后,你令下回合〖善断①〗以此法分配的数值集合R中的最小值+1。",
yilie: "义烈",
yilie_info: "每轮每种牌名限一次。你可以将两张颜色相同的手牌当做任意一种基本牌使用。",
caoxiancaohua: "曹宪曹华",
huamu: "化木",
- huamu_info:
- "当你使用手牌后,若此牌和本回合内上一张被使用的牌颜色不同,则你可以将此牌对应的所有{位于处理区或装备区}的实体牌置于你的武将牌上。这些牌中的黑色牌称为“灵杉”,红色牌称为“玉树”。",
+ huamu_info: "当你使用手牌后,若此牌和本回合内上一张被使用的牌颜色不同,则你可以将此牌对应的所有{位于处理区或装备区}的实体牌置于你的武将牌上。这些牌中的黑色牌称为“灵杉”,红色牌称为“玉树”。",
qianmeng: "前盟",
- qianmeng_info:
- "锁定技。当有牌移动事件结算结束后,若有角色的“灵杉”和“玉树”数量发生了变化,且二者数量相等或有一项为0,则你摸一张牌。",
+ qianmeng_info: "锁定技。当有牌移动事件结算结束后,若有角色的“灵杉”和“玉树”数量发生了变化,且二者数量相等或有一项为0,则你摸一张牌。",
liangyuan: "良缘",
- liangyuan_info:
- "每轮每项各限一次。你可以将场上所有的“灵杉”/“玉树”置于处理区,然后将这些牌当做【酒】/【桃】使用。",
+ liangyuan_info: "每轮每项各限一次。你可以将场上所有的“灵杉”/“玉树”置于处理区,然后将这些牌当做【酒】/【桃】使用。",
jisi: "羁肆",
- jisi_info:
- "限定技。准备阶段,你可以令一名其他角色获得你武将牌上的一个已发动过的其他技能。然后你弃置所有手牌,并视为对其使用一张【杀】(无距离关系的限制)。",
+ jisi_info: "限定技。准备阶段,你可以令一名其他角色获得你武将牌上的一个已发动过的其他技能。然后你弃置所有手牌,并视为对其使用一张【杀】(无距离关系的限制)。",
huojun: "OL霍峻",
huojun_prefix: "OL",
qiongshou: "穷守",
qiongshou_info: "锁定技。①游戏开始时,你废除所有装备栏并摸四张牌。②你的手牌上限+4。",
fenrui: "奋锐",
- fenrui_info:
- "结束阶段,你可以弃置一张牌并恢复一个装备栏。系统检索一张对应的装备牌,你使用之。然后你可以选择一名装备区内牌数小于你的其他角色,对其造成X点伤害(X为你与其装备区内的牌数之差,且每局限一次)。",
+ fenrui_info: "结束阶段,你可以弃置一张牌并恢复一个装备栏。系统检索一张对应的装备牌,你使用之。然后你可以选择一名装备区内牌数小于你的其他角色,对其造成X点伤害(X为你与其装备区内的牌数之差,且每局限一次)。",
wangyan: "王衍",
yangkuang: "阳狂",
- yangkuang_info:
- "当你回复体力后,若你的体力值等于体力上限,则你可以视为使用一张【酒】,然后当前回合角色摸一张牌,你摸一张牌。",
+ yangkuang_info: "当你回复体力后,若你的体力值等于体力上限,则你可以视为使用一张【酒】,然后当前回合角色摸一张牌,你摸一张牌。",
cihuang: "雌黄",
- cihuang_info:
- "当有牌被抵消后,若此牌的目标数为1且此牌的使用者A为当前回合角色,则你可以将一张牌当做一张你本轮内未使用过的属性【杀】或单目标锦囊牌对A使用(不可被响应)。",
+ cihuang_info: "当有牌被抵消后,若此牌的目标数为1且此牌的使用者A为当前回合角色,则你可以将一张牌当做一张你本轮内未使用过的属性【杀】或单目标锦囊牌对A使用(不可被响应)。",
sanku: "三窟",
- sanku_info:
- "锁定技。①当你进入濒死状态时,你减1点体力上限,然后将体力回复至体力上限。②当你加体力上限前,取消之。",
+ sanku_info: "锁定技。①当你进入濒死状态时,你减1点体力上限,然后将体力回复至体力上限。②当你加体力上限前,取消之。",
dengzhong: "邓忠",
dzkanpo: "勘破",
- dzkanpo_info:
- "①当你因执行【杀】的效果而造成伤害后,你可以观看目标角色的手牌,然后获得其中一张与此【杀】花色相同的牌。②每回合限一次,你可以将一张手牌当做【杀】使用。",
+ dzkanpo_info: "①当你因执行【杀】的效果而造成伤害后,你可以观看目标角色的手牌,然后获得其中一张与此【杀】花色相同的牌。②每回合限一次,你可以将一张手牌当做【杀】使用。",
dzgengzhan: "更战",
- dzgengzhan_info:
- "①其他角色的出牌阶段限一次,当有【杀】因弃置而进入弃牌堆后,你可以获得这些【杀】。②其他角色的结束阶段,若其本回合内未使用过【杀】,则你下个出牌阶段使用【杀】的次数上限+1。",
+ dzgengzhan_info: "①其他角色的出牌阶段限一次,当有【杀】因弃置而进入弃牌堆后,你可以获得这些【杀】。②其他角色的结束阶段,若其本回合内未使用过【杀】,则你下个出牌阶段使用【杀】的次数上限+1。",
xiahouxuan: "夏侯玄",
olhuanfu: "宦浮",
- olhuanfu_info:
- "当你使用【杀】指定第一个目标后,或成为【杀】的目标后,你可以弃置X张牌(X∈[1, 你的体力上限])。此【杀】结算结束后,若此【杀】累计因执行效果而造成的伤害值等于X,则你摸2X张牌。",
+ olhuanfu_info: "当你使用【杀】指定第一个目标后,或成为【杀】的目标后,你可以弃置X张牌(X∈[1, 你的体力上限])。此【杀】结算结束后,若此【杀】累计因执行效果而造成的伤害值等于X,则你摸2X张牌。",
olqingyi: "清议",
- olqingyi_info:
- "①出牌阶段限一次,你可以选择至多两名有牌的其他角色。你和这些角色同时弃置一张牌,然后若这些牌类型均相同,则你重复此流程。②结束阶段开始时,若你本回合内发动〖清议①〗弃置的牌包含两种颜色,则你获得每种颜色的牌各一张。",
+ olqingyi_info: "①出牌阶段限一次,你可以选择至多两名有牌的其他角色。你和这些角色同时弃置一张牌,然后若这些牌类型均相同,则你重复此流程。②结束阶段开始时,若你本回合内发动〖清议①〗弃置的牌包含两种颜色,则你获得每种颜色的牌各一张。",
olzeyue: "迮阅",
- olzeyue_info:
- "限定技。准备阶段,你可以选择一名于你的上个回合结束后对你造成过伤害的角色A及其武将牌上的一个非锁定技B,令A的B失效。然后每轮游戏开始时,A依次视为对你使用X张【杀】(X为B失效状态下经过的完整轮数)。当你因这些【杀】受到伤害后,你令A恢复技能B。",
+ olzeyue_info: "限定技。准备阶段,你可以选择一名于你的上个回合结束后对你造成过伤害的角色A及其武将牌上的一个非锁定技B,令A的B失效。然后每轮游戏开始时,A依次视为对你使用X张【杀】(X为B失效状态下经过的完整轮数)。当你因这些【杀】受到伤害后,你令A恢复技能B。",
xindiaodu: "调度",
- xindiaodu_info:
- "①每回合限一次,与你势力相同的角色使用装备牌时,其可以摸一张牌。②出牌阶段开始时,你可以获得与你势力相同的一名角色装备区内的一张牌,然后你可以将此牌交给另一名与你势力相同的其他角色。",
+ xindiaodu_info: "①每回合限一次,与你势力相同的角色使用装备牌时,其可以摸一张牌。②出牌阶段开始时,你可以获得与你势力相同的一名角色装备区内的一张牌,然后你可以将此牌交给另一名与你势力相同的其他角色。",
olhuanshi: "缓释",
- olhuanshi_info:
- "一名角色的判定牌生效前,你可以令其观看你的手牌并选择你的一张牌,你打出此牌代替判定牌。然后你可以重铸任意张牌(每回合限重铸一次)。",
+ olhuanshi_info: "一名角色的判定牌生效前,你可以令其观看你的手牌并选择你的一张牌,你打出此牌代替判定牌。然后你可以重铸任意张牌(每回合限重铸一次)。",
olhongyuan: "弘援",
olhongyuan_info: "每阶段限一次。当你一次性获得至少两张牌以后,你可以将至多两张牌交给等量名角色。",
olmingzhe: "明哲",
- olmingzhe_info:
- "锁定技。当你于出牌阶段外失去红色牌后,你展示这些牌中所有背面朝上移动的牌(没有则不展示),然后摸一张牌。",
+ olmingzhe_info: "锁定技。当你于出牌阶段外失去红色牌后,你展示这些牌中所有背面朝上移动的牌(没有则不展示),然后摸一张牌。",
ahuinan: "阿会喃",
jueman: "蟨蛮",
- jueman_info:
- "锁定技。一名角色的回合结束时,若本回合被使用过的基本牌数不小于2,且前两张基本牌的使用者:均不为你,你视为使用本回合被使用的第三张基本牌;有且仅有其中之一为你,你摸一张牌。",
+ jueman_info: "锁定技。一名角色的回合结束时,若本回合被使用过的基本牌数不小于2,且前两张基本牌的使用者:均不为你,你视为使用本回合被使用的第三张基本牌;有且仅有其中之一为你,你摸一张牌。",
ol_liuba: "OL刘巴",
ol_liuba_prefix: "OL",
oltongduo: "统度",
- oltongduo_info:
- "准备阶段,你可以令一名角色交给你一张手牌,然后出牌阶段结束时,你将此牌置于牌堆顶。",
+ oltongduo_info: "准备阶段,你可以令一名角色交给你一张手牌,然后出牌阶段结束时,你将此牌置于牌堆顶。",
olzhubi: "铸币",
olzhubi_tag: "币",
- olzhubi_info:
- "①出牌阶段限X次(X为你的体力上限)。你可以令一名角色重铸一张牌,以此法获得的牌称为“币”。②一名角色的结束阶段,若其有“币”,其观看牌堆底的五张牌,然后可以用任意“币”交换其中等量张牌。",
+ olzhubi_info: "①出牌阶段限X次(X为你的体力上限)。你可以令一名角色重铸一张牌,以此法获得的牌称为“币”。②一名角色的结束阶段,若其有“币”,其观看牌堆底的五张牌,然后可以用任意“币”交换其中等量张牌。",
ol_furong: "傅肜",
olxiaosi: "效死",
- olxiaosi_info:
- "出牌阶段限一次。你可以选择一名有手牌的其他角色并弃置一张基本牌。若其有可被弃置的基本牌,其弃置一张基本牌。然后你可以以任意顺序使用你与其以此法弃置的牌(无距离和次数限制)。最后若其未以此法弃置牌,你摸一张牌。",
+ olxiaosi_info: "出牌阶段限一次。你可以选择一名有手牌的其他角色并弃置一张基本牌。若其有可被弃置的基本牌,其弃置一张基本牌。然后你可以以任意顺序使用你与其以此法弃置的牌(无距离和次数限制)。最后若其未以此法弃置牌,你摸一张牌。",
zhangzhi: "张芝",
olbixin: "笔心",
- olbixin_info:
- "一名角色的准备阶段或结束阶段,你可以声明一种牌的类型(每种类型限[1]次),并选择一种你本轮未使用过且有合法目标的的基本牌。你摸[3]张牌,然后若你有此类型的手牌,你将所有此类型的手牌当此基本牌使用。",
+ olbixin_info: "一名角色的准备阶段或结束阶段,你可以声明一种牌的类型(每种类型限[1]次),并选择一种你本轮未使用过且有合法目标的的基本牌。你摸[3]张牌,然后若你有此类型的手牌,你将所有此类型的手牌当此基本牌使用。",
olximo: "洗墨",
- olximo_info:
- "锁定技。当你发动〖笔心〗后,你移除其描述的前五个字符。若你已发动三次〖笔心〗,交换中括号中的两个数字,失去〖洗墨〗并获得〖飞白〗。",
+ olximo_info: "锁定技。当你发动〖笔心〗后,你移除其描述的前五个字符。若你已发动三次〖笔心〗,交换中括号中的两个数字,失去〖洗墨〗并获得〖飞白〗。",
olfeibai: "飞白",
- olfeibai_info:
- "转换技,锁定技。阴:当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1;阳:当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。",
+ olfeibai_info: "转换技,锁定技。阴:当你因执行你使用的非黑色牌的效果而造成伤害时,此伤害值+1;阳:当你因执行你使用的非红色牌的效果而回复体力时,此回复值+1。",
olqizhou: "绮冑",
- olqizhou_info:
- "锁定技。每个回合开始前,或当你装备区内的牌发生变化后,你失去所有因此技能获得过的额外技能,然后根据你装备区内的花色数获得对应的技能。至少一种:〖短兵〗、至少两种:〖英姿〗、至少三种:〖奋威〗、至少四种:〖澜江〗。",
+ olqizhou_info: "锁定技。每个回合开始前,或当你装备区内的牌发生变化后,你失去所有因此技能获得过的额外技能,然后根据你装备区内的花色数获得对应的技能。至少一种:〖短兵〗、至少两种:〖英姿〗、至少三种:〖奋威〗、至少四种:〖澜江〗。",
olshanxi: "闪袭",
- olshanxi_info:
- "出牌阶段限一次。你可以选择一名攻击范围内不包含你的其他角色,展示你与其的至多X张手牌(X为你的空装备栏数)。若这些牌中有【闪】,则你弃置这些【闪】,然后获得对方的一张未展示的牌。",
+ olshanxi_info: "出牌阶段限一次。你可以选择一名攻击范围内不包含你的其他角色,展示你与其的至多X张手牌(X为你的空装备栏数)。若这些牌中有【闪】,则你弃置这些【闪】,然后获得对方的一张未展示的牌。",
macheng: "马承",
olchenglie: "骋烈",
- olchenglie_info:
- "当你使用【杀】选择目标后,你可以令至多两名角色也成为此牌目标,并亮出牌堆顶的等同于目标数张牌,然后你可以将一张手牌与其中一张牌交换,将这些牌扣置于每名目标角色武将牌上,称为“骋烈”牌。此牌结算结束后:1.若有红色“骋烈”牌的角色:响应过此【杀】,其交给你一张牌;未响应此【杀】,其回复1点体力;2.有“骋烈”牌的角色将其“骋烈”牌置入弃牌堆。",
+ olchenglie_info: "当你使用【杀】选择目标后,你可以令至多两名角色也成为此牌目标,并亮出牌堆顶的等同于目标数张牌,然后你可以将一张手牌与其中一张牌交换,将这些牌扣置于每名目标角色武将牌上,称为“骋烈”牌。此牌结算结束后:1.若有红色“骋烈”牌的角色:响应过此【杀】,其交给你一张牌;未响应此【杀】,其回复1点体力;2.有“骋烈”牌的角色将其“骋烈”牌置入弃牌堆。",
quhuang: "屈晃",
olqiejian: "切谏",
- olqiejian_info:
- "当一名角色失去最后的手牌后,你可以摸一张牌,然后令其摸一张牌,你选择一项:1.弃置你或其场上的一张牌;2.你于本轮不能再对其发动此技能。",
+ olqiejian_info: "当一名角色失去最后的手牌后,你可以摸一张牌,然后令其摸一张牌,你选择一项:1.弃置你或其场上的一张牌;2.你于本轮不能再对其发动此技能。",
olnishou: "泥首",
- olnishou_info:
- "锁定技。当你装备区里的牌进入弃牌堆后,你选择一项:1.将这些牌中第一张能当【闪电】对你使用的牌当【闪电】使用;2.本阶段结束时,你与一名手牌数最少的角色交换手牌。",
+ olnishou_info: "锁定技。当你装备区里的牌进入弃牌堆后,你选择一项:1.将这些牌中第一张能当【闪电】对你使用的牌当【闪电】使用;2.本阶段结束时,你与一名手牌数最少的角色交换手牌。",
zhanghua: "张华",
olbihun: "弼昏",
- olbihun_info:
- "锁定技。当你使用牌指定其他角色为目标时,若你的手牌数大于手牌上限且若此牌的目标数:大于1,取消此目标;为1,其获得此牌。",
+ olbihun_info: "锁定技。当你使用牌指定其他角色为目标时,若你的手牌数大于手牌上限且若此牌的目标数:大于1,取消此目标;为1,其获得此牌。",
olchuanwu: "穿屋",
- olchuanwu_info:
- "锁定技。当你造成或受到伤害后,你令武将牌上的前X个未失效的技能失效直到回合结束。然后你摸等同于你此次失效的技能数张牌(X为你的攻击范围)。",
+ olchuanwu_info: "锁定技。当你造成或受到伤害后,你令武将牌上的前X个未失效的技能失效直到回合结束。然后你摸等同于你此次失效的技能数张牌(X为你的攻击范围)。",
oljianhe: "剑合",
- oljianhe_info:
- "出牌阶段每名角色限一次。你可以重铸至少两张同名牌或至少两张装备牌,然后令一名角色选择一项:1.重铸等量张与你以此法重铸的牌类型相同的牌;2.受到你造成的1点雷电伤害。",
+ oljianhe_info: "出牌阶段每名角色限一次。你可以重铸至少两张同名牌或至少两张装备牌,然后令一名角色选择一项:1.重铸等量张与你以此法重铸的牌类型相同的牌;2.受到你造成的1点雷电伤害。",
dongtuna: "董荼那",
oljianman: "鹣蛮",
- oljianman_info:
- "锁定技。一名角色的回合结束时,若本回合被使用过的基本牌数不小于2,且前两张基本牌的使用者:均为你,你视为使用其中的一张牌;有且仅有其中之一为你,你弃置另一名使用者一张牌。",
+ oljianman_info: "锁定技。一名角色的回合结束时,若本回合被使用过的基本牌数不小于2,且前两张基本牌的使用者:均为你,你视为使用其中的一张牌;有且仅有其中之一为你,你弃置另一名使用者一张牌。",
maxiumatie: "马休马铁",
olkenshang: "垦伤",
- olkenshang_info:
- "你可以将任意张牌当【杀】使用,然后你可以将此牌目标改为所有你攻击范围外的角色。此牌结算结束后,若此牌对应的实体牌数大于X,你摸X张牌(X为此牌造成过的伤害值),否则你失去一个技能。",
+ olkenshang_info: "你可以将任意张牌当【杀】使用,然后你可以将此牌目标改为所有你攻击范围外的角色。此牌结算结束后,若此牌对应的实体牌数大于X,你摸X张牌(X为此牌造成过的伤害值),否则你失去一个技能。",
rekenshang: "垦伤",
- rekenshang_info:
- "你可以将至少两张牌当【杀】使用,然后你可以将此牌目标改为等量名角色。此牌结算结束后,若此牌对应的实体牌数大于此牌造成过的伤害值,你摸一张牌。",
+ rekenshang_info: "你可以将至少两张牌当【杀】使用,然后你可以将此牌目标改为等量名角色。此牌结算结束后,若此牌对应的实体牌数大于此牌造成过的伤害值,你摸一张牌。",
ol_zhujun: "OL朱儁",
ol_zhujun_prefix: "OL",
olcuipo: "摧破",
- olcuipo_info:
- "锁定技。当你使用牌时,若此牌是你本回合使用的第X张牌(X为此牌牌名的字数),则:{若此牌为【杀】或伤害类锦囊牌,则此牌的伤害值基数+1,否则你摸一张牌}。",
+ olcuipo_info: "锁定技。当你使用牌时,若此牌是你本回合使用的第X张牌(X为此牌牌名的字数),则:{若此牌为【杀】或伤害类锦囊牌,则此牌的伤害值基数+1,否则你摸一张牌}。",
ol_zhangyì: "OL张翼",
ol_zhangyì_prefix: "OL",
oldianjun: "殿军",
oldianjun_info: "锁定技。回合结束时,你受到1点无来源伤害,然后执行一个额外的出牌阶段。",
olkangrui: "亢锐",
- olkangrui_info:
- "当一名角色于其回合内首次受到伤害后,你可以摸一张牌并选择一项:1.令其回复1点体力;2.令其于本回合下次造成的伤害+1。然后当其于本回合造成伤害时,其本回合手牌上限基数为0。",
+ olkangrui_info: "当一名角色于其回合内首次受到伤害后,你可以摸一张牌并选择一项:1.令其回复1点体力;2.令其于本回合下次造成的伤害+1。然后当其于本回合造成伤害时,其本回合手牌上限基数为0。",
wangguan: "王瓘",
olmiuyan: "谬焰",
olmiuyan_tag: "invisible",
- olmiuyan_info:
- "转换技。你可以将一张黑色牌当做【火攻】使用。然后若此技能:处于阳状态且此牌造成了伤害,则你获得此阶段内所有被展示过的手牌;处于阴状态且未造成伤害,则你令此技能失效直到本轮结束。",
+ olmiuyan_info: "转换技。你可以将一张黑色牌当做【火攻】使用。然后若此技能:处于阳状态且此牌造成了伤害,则你获得此阶段内所有被展示过的手牌;处于阴状态且未造成伤害,则你令此技能失效直到本轮结束。",
olshilu: "失路",
- olshilu_info:
- "锁定技。当你受到伤害后,你摸X张牌(X为你的体力值且至多为5)。然后你展示攻击范围内一名角色的一张手牌,令此牌的牌名视为【杀】。",
+ olshilu_info: "锁定技。当你受到伤害后,你摸X张牌(X为你的体力值且至多为5)。然后你展示攻击范围内一名角色的一张手牌,令此牌的牌名视为【杀】。",
ol_huban: "OL胡班",
ol_huban_prefix: "OL",
olhuiyun: "晖云",
olhuiyun_tag: "invisible",
- olhuiyun_info:
- "每轮每项各限一次。你可以将一张牌当【火攻】使用。此牌结算结束后,你选择一项,令目标角色选择是否执行:1.使用展示的牌,然后重铸所有手牌;2.使用一张手牌,然后重铸展示牌;3.摸一张牌。",
+ olhuiyun_info: "每轮每项各限一次。你可以将一张牌当【火攻】使用。此牌结算结束后,你选择一项,令目标角色选择是否执行:1.使用展示的牌,然后重铸所有手牌;2.使用一张手牌,然后重铸展示牌;3.摸一张牌。",
sunhong: "孙弘",
olxianbi: "险诐",
- olxianbi_info:
- "出牌阶段限一次。你可以选择一名角色,然后将手牌摸至或弃置至等同于其装备区里的牌数(至多摸五张),且当你因此弃置一张牌后,你随机获得弃牌堆中的另一张类型相同的牌。",
+ olxianbi_info: "出牌阶段限一次。你可以选择一名角色,然后将手牌摸至或弃置至等同于其装备区里的牌数(至多摸五张),且当你因此弃置一张牌后,你随机获得弃牌堆中的另一张类型相同的牌。",
olzenrun: "谮润",
- olzenrun_info:
- "每阶段限一次。当你摸牌时,你可以改为获得一名其他角色等量的牌,然后其选择一项:1.摸等量的牌;2.令你本局游戏不能再对其发动〖险诐〗和〖谮润〗。",
+ olzenrun_info: "每阶段限一次。当你摸牌时,你可以改为获得一名其他角色等量的牌,然后其选择一项:1.摸等量的牌;2.令你本局游戏不能再对其发动〖险诐〗和〖谮润〗。",
luoxian: "罗宪",
oldaili: "带砺",
oldaili_tag: "带砺",
- oldaili_info:
- "一名角色的回合结束时,若你被展示过的手牌数为偶数,则你可以翻面,摸三张牌并展示之。",
+ oldaili_info: "一名角色的回合结束时,若你被展示过的手牌数为偶数,则你可以翻面,摸三张牌并展示之。",
zhangshiping: "张世平",
olhongji: "鸿济",
- olhongji_info:
- "每轮每项各限一次。一名角色的准备阶段,若其手牌数最少/最多,你可以令其于本回合第一个摸牌阶段/出牌阶段后执行一个额外的摸牌阶段/出牌阶段(若其条件同时满足则只能选择一项)。",
+ olhongji_info: "每轮每项各限一次。一名角色的准备阶段,若其手牌数最少/最多,你可以令其于本回合第一个摸牌阶段/出牌阶段后执行一个额外的摸牌阶段/出牌阶段(若其条件同时满足则只能选择一项)。",
olxinggu: "行贾",
- olxinggu_info:
- "①游戏开始时,你将牌堆中的三张坐骑牌扣置于武将牌上。②结束阶段,你可以将一张〖行贾①〗牌置于一名其他角色的装备区,然后你从牌堆获得一张♦牌。",
+ olxinggu_info: "①游戏开始时,你将牌堆中的三张坐骑牌扣置于武将牌上。②结束阶段,你可以将一张〖行贾①〗牌置于一名其他角色的装备区,然后你从牌堆获得一张♦牌。",
lushi: "卢氏",
olzhuyan: "驻颜",
- olzhuyan_info:
- "每名角色每项各限一次。结束阶段,你可以令一名角色将以下一项调整至与其上一个结束阶段结束后相同:1.体力值;2.手牌数(体力值至多失去至1,手牌数至多摸至5;若其未执行过准备阶段则改为游戏开始时)。",
+ olzhuyan_info: "每名角色每项各限一次。结束阶段,你可以令一名角色将以下一项调整至与其上一个结束阶段结束后相同:1.体力值;2.手牌数(体力值至多失去至1,手牌数至多摸至5;若其未执行过准备阶段则改为游戏开始时)。",
olleijie: "雷劫",
- olleijie_info:
- "准备阶段,你可以令一名角色判定,若结果为♠2~9,其受到2点雷电伤害,否则其摸两张牌。",
+ olleijie_info: "准备阶段,你可以令一名角色判定,若结果为♠2~9,其受到2点雷电伤害,否则其摸两张牌。",
releijie: "雷劫",
- releijie_info:
- "出牌阶段限一次,你可以令一名角色判定,若结果为黑桃2~9,则你视为依次对其使用两张雷【杀】,否则其摸两张牌。",
+ releijie_info: "出牌阶段限一次,你可以令一名角色判定,若结果为黑桃2~9,则你视为依次对其使用两张雷【杀】,否则其摸两张牌。",
ol_liuyan: "OL刘焉",
ol_liuyan_prefix: "OL",
olpianan: "偏安",
- olpianan_info:
- "锁定技。游戏开始或弃牌阶段结束时,你弃置所有不为【闪】的手牌(没有则不弃)。若你的手牌数小于体力值,你获得牌堆或弃牌堆中的前X张【闪】(X为你的体力值与手牌数的差)。",
+ olpianan_info: "锁定技。游戏开始或弃牌阶段结束时,你弃置所有不为【闪】的手牌(没有则不弃)。若你的手牌数小于体力值,你获得牌堆或弃牌堆中的前X张【闪】(X为你的体力值与手牌数的差)。",
olyinji: "殷积",
olyinji_info: "锁定技。结束阶段,若你的体力值不为唯一最大,你选择回复1点体力或加1点体力上限。",
olkuisi: "窥伺",
- olkuisi_info:
- "锁定技。摸牌阶段开始时,你跳过此阶段,然后观看牌堆顶的四张牌并可以使用其中任意张。若你以此法使用的牌数不为2或3,你减1点体力上限。",
+ olkuisi_info: "锁定技。摸牌阶段开始时,你跳过此阶段,然后观看牌堆顶的四张牌并可以使用其中任意张。若你以此法使用的牌数不为2或3,你减1点体力上限。",
ol_wanglang: "OL王朗",
ol_wanglang_prefix: "OL",
oljici: "激词",
- oljici_info:
- "当你的拼点牌亮出后,若点数不大于X,你可令点数+X并令〖鼓舌〗视为未发动过(X为你的“饶舌”标记数)。",
+ oljici_info: "当你的拼点牌亮出后,若点数不大于X,你可令点数+X并令〖鼓舌〗视为未发动过(X为你的“饶舌”标记数)。",
ol_mengda: "OL孟达",
ol_mengda_prefix: "OL",
olgoude: "苟得",
- olgoude_info:
- "一名角色的回合结束时,若有与你势力相同的角色执行过以下项,则你可以执行这些角色未执行过的一项:1.摸一张牌;2.弃置一名角色的一张手牌;3.使用一张无对应实体牌的【杀】;4.变更势力。",
+ olgoude_info: "一名角色的回合结束时,若有与你势力相同的角色执行过以下项,则你可以执行这些角色未执行过的一项:1.摸一张牌;2.弃置一名角色的一张手牌;3.使用一张无对应实体牌的【杀】;4.变更势力。",
haopu: "郝普",
olzhenying: "镇荧",
- olzhenying_info:
- "出牌阶段限两次。你可以选择一名手牌数不大于你的其他角色,你与其同时将手牌摸或弃置至至多两张。然后你与其中手牌数较少的角色视为对另一名角色使用一张【决斗】。",
+ olzhenying_info: "出牌阶段限两次。你可以选择一名手牌数不大于你的其他角色,你与其同时将手牌摸或弃置至至多两张。然后你与其中手牌数较少的角色视为对另一名角色使用一张【决斗】。",
ol_wenqin: "文钦",
olguangao: "犷骜",
- olguangao_info:
- "当你/其他角色使用【杀】时,你/该角色可以额外指定一个目标/你为目标(有距离限制)。然后若你的手牌数为偶数,你摸一张牌并令此牌对任意目标无效(可不选)。",
+ olguangao_info: "当你/其他角色使用【杀】时,你/该角色可以额外指定一个目标/你为目标(有距离限制)。然后若你的手牌数为偶数,你摸一张牌并令此牌对任意目标无效(可不选)。",
olhuiqi: "彗企",
- olhuiqi_info:
- "觉醒技。一名角色回合结束后,若你与其他两名角色于此回合成为过牌的目标,你获得〖偕举〗并获得一个额外的回合。",
+ olhuiqi_info: "觉醒技。一名角色回合结束后,若你与其他两名角色于此回合成为过牌的目标,你获得〖偕举〗并获得一个额外的回合。",
olxieju: "偕举",
olxieju_info: "出牌阶段限一次。你可以令任意名本回合成为过牌的目标的角色依次视为使用一张【杀】。",
ol_zhouqun: "周群",
oltianhou: "天候",
- oltianhou_info:
- "锁定技。准备阶段,你观看牌堆顶的一张牌,且可以用你的一张牌交换此牌。然后你亮出牌堆顶的牌,令一名角色根据此牌的花色获得对应的技能直到你下个准备阶段开始:♠〖骤雨〗;♥〖烈暑〗;♣〖严霜〗;♦〖凝雾〗。",
+ oltianhou_info: "锁定技。准备阶段,你观看牌堆顶的一张牌,且可以用你的一张牌交换此牌。然后你亮出牌堆顶的牌,令一名角色根据此牌的花色获得对应的技能直到你下个准备阶段开始:♠〖骤雨〗;♥〖烈暑〗;♣〖严霜〗;♦〖凝雾〗。",
olchenshuo: "谶说",
- olchenshuo_info:
- "结束阶段,你可以展示一张手牌,然后亮出牌堆顶的一张牌。若这两张牌类型/花色/点数/牌名字数中任一项相同且已展示的牌数小于3,则你重复此流程,然后获得所有所有展示牌。",
+ olchenshuo_info: "结束阶段,你可以展示一张手牌,然后亮出牌堆顶的一张牌。若这两张牌类型/花色/点数/牌名字数中任一项相同且已展示的牌数小于3,则你重复此流程,然后获得所有所有展示牌。",
oltianhou_spade: "骤雨",
oltianhou_spade_miehuo: "骤雨",
- oltianhou_spade_info:
- "锁定技。其他角色造成火属性伤害时,取消之;一名角色受到雷属性伤害后,所有与其座次相邻的角色失去1点体力。",
+ oltianhou_spade_info: "锁定技。其他角色造成火属性伤害时,取消之;一名角色受到雷属性伤害后,所有与其座次相邻的角色失去1点体力。",
oltianhou_heart: "烈暑",
oltianhou_heart_info: "锁定技。其他角色的结束阶段开始时,若其体力值为全场最大,则其失去1点体力。",
oltianhou_club: "严霜",
oltianhou_club_info: "锁定技。其他角色的结束阶段开始时,若其体力值为全场最小,则其失去1点体力。",
oltianhou_diamond: "凝雾",
- oltianhou_diamond_info:
- "锁定技。其他角色使用【杀】指定与其座次不相邻唯一目标时,则其判定。若判定结果的点数大于此【杀】,则此【杀】对其无效。",
+ oltianhou_diamond_info: "锁定技。其他角色使用【杀】指定与其座次不相邻唯一目标时,则其判定。若判定结果的点数大于此【杀】,则此【杀】对其无效。",
duanjiong: "段颎",
olsaogu: "扫谷",
- olsaogu_info:
- "转换技。①出牌阶段,你可以。阴:弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】;阳:摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色执行你当前〖扫谷①〗的分支。",
+ olsaogu_info: "转换技。①出牌阶段,你可以。阴:弃置两张牌(不能包含你本阶段弃置过的花色),然后使用其中的【杀】;阳:摸一张牌。②结束阶段,你可以弃置一张牌,令一名其他角色执行你当前〖扫谷①〗的分支。",
olcuorui: "挫锐",
- olcuorui_info:
- "锁定技。①游戏开始时,你将手牌摸至场上存活人数张(至多摸至8张)。②当你成为延时锦囊牌的目标后,你跳过下个判定阶段。",
+ olcuorui_info: "锁定技。①游戏开始时,你将手牌摸至场上存活人数张(至多摸至8张)。②当你成为延时锦囊牌的目标后,你跳过下个判定阶段。",
olmouzhu: "谋诛",
- olmouzhu_info:
- "出牌阶段限一次,你可以令一名有手牌的其他角色交给你一张手牌。然后若其手牌数小于你,其视为使用一张【杀】或【决斗】。",
+ olmouzhu_info: "出牌阶段限一次,你可以令一名有手牌的其他角色交给你一张手牌。然后若其手牌数小于你,其视为使用一张【杀】或【决斗】。",
olyanhuo: "延祸",
olyanhuo_info: "当你死亡时,你可以弃置杀死你的角色至多X张牌(X为你的牌数)。",
olniluan: "逆乱",
- olniluan_info:
- "体力值大于你的其他角色的结束阶段,若其本回合内使用过【杀】,则你可以将一张黑色牌当作【杀】对其使用(无距离限制)。",
+ olniluan_info: "体力值大于你的其他角色的结束阶段,若其本回合内使用过【杀】,则你可以将一张黑色牌当作【杀】对其使用(无距离限制)。",
olxiaoxi: "骁袭",
olxiaoxi_info: "一轮游戏开始时,你可以视为使用一张无距离限制的【杀】。",
ol_qianzhao: "牵招",
olweifu: "威抚",
- olweifu_info:
- "出牌阶段,你可以弃置一张牌并判定。你本回合下次使用与结果类型相同的牌无距离限制,且可以额外指定一个目标。若你弃置的牌与判定牌类型相同,你摸一张牌。",
+ olweifu_info: "出牌阶段,你可以弃置一张牌并判定。你本回合下次使用与结果类型相同的牌无距离限制,且可以额外指定一个目标。若你弃置的牌与判定牌类型相同,你摸一张牌。",
olkuansai: "款塞",
- olkuansai_info:
- "每回合限一次,当一张牌指定第一个目标后,若目标数不小于你的体力值,你可以令其中一个目标选择一项:1.交给你一张牌;2.令你回复1点体力。",
+ olkuansai_info: "每回合限一次,当一张牌指定第一个目标后,若目标数不小于你的体力值,你可以令其中一个目标选择一项:1.交给你一张牌;2.令你回复1点体力。",
ol_luyusheng: "OL陆郁生",
ol_luyusheng_prefix: "OL",
olcangxin: "藏心",
- olcangxin_info:
- "锁定技。①当你每回合第一次受到伤害时,你观看牌堆底的三张牌并弃置其中任意张牌,然后此伤害-X。②摸牌阶段开始时,你亮出牌堆底的三张牌,然后摸X张牌(X为其中红桃牌的数量)。",
+ olcangxin_info: "锁定技。①当你每回合第一次受到伤害时,你观看牌堆底的三张牌并弃置其中任意张牌,然后此伤害-X。②摸牌阶段开始时,你亮出牌堆底的三张牌,然后摸X张牌(X为其中红桃牌的数量)。",
olrunwei: "润微",
- olrunwei_info:
- "其他角色的弃牌阶段开始时,若其已受伤,则你可以选择一项:①令其弃置一张牌,其本回合手牌上限+1;②令其摸一张牌,其本回合手牌上限-1。",
+ olrunwei_info: "其他角色的弃牌阶段开始时,若其已受伤,则你可以选择一项:①令其弃置一张牌,其本回合手牌上限+1;②令其摸一张牌,其本回合手牌上限-1。",
caoxi: "曹羲",
olgangshu: "刚述",
- olgangshu_info:
- "①当你使用非基本牌结算结束后,你可以令以下一项数值+1(每项至多加至5):1.攻击范围;2.受〖刚述〗影响的下个摸牌阶段摸牌数;3.使用【杀】的次数上限。②当有牌被你抵消后,重置你〖刚述①〗增加的所有数值。",
+ olgangshu_info: "①当你使用非基本牌结算结束后,你可以令以下一项数值+1(每项至多加至5):1.攻击范围;2.受〖刚述〗影响的下个摸牌阶段摸牌数;3.使用【杀】的次数上限。②当有牌被你抵消后,重置你〖刚述①〗增加的所有数值。",
oljianxuan: "谏旋",
- oljianxuan_info:
- "当你受到伤害后,你可以令一名角色摸一张牌,然后若其手牌数等于你〖刚述①〗中的任意一项对应的数值,其重复此流程。",
+ oljianxuan_info: "当你受到伤害后,你可以令一名角色摸一张牌,然后若其手牌数等于你〖刚述①〗中的任意一项对应的数值,其重复此流程。",
ol_pengyang: "彭羕",
olxiaofan: "嚣翻",
- olxiaofan_info:
- "当你需要使用不为【无懈可击】的牌时,你可以观看牌堆底的X+1张牌并使用其中的一张。此牌结算结束时,你依次弃置以下前X个区域中的所有牌:⒈判定区、⒉装备区、⒊手牌区(X为本回合你使用过的牌中包含的类型数)。",
+ olxiaofan_info: "当你需要使用不为【无懈可击】的牌时,你可以观看牌堆底的X+1张牌并使用其中的一张。此牌结算结束时,你依次弃置以下前X个区域中的所有牌:⒈判定区、⒉装备区、⒊手牌区(X为本回合你使用过的牌中包含的类型数)。",
oltuishi: "侻失",
- oltuishi_info:
- "锁定技。①你不能使用【无懈可击】。②当你使用点数为字母的牌时,你令此牌无效并摸一张牌,且你对手牌数小于你的角色使用的下一张牌无距离和次数限制。③当你使用伤害类卡牌结算完毕后,若此牌为你本回合使用的第三张或以上未造成伤害的卡牌,则你令〖器翻〗于本回合失效。",
+ oltuishi_info: "锁定技。①你不能使用【无懈可击】。②当你使用点数为字母的牌时,你令此牌无效并摸一张牌,且你对手牌数小于你的角色使用的下一张牌无距离和次数限制。③当你使用伤害类卡牌结算完毕后,若此牌为你本回合使用的第三张或以上未造成伤害的卡牌,则你令〖器翻〗于本回合失效。",
ol_tw_zhangji: "张既",
skill_zhangji_A: "技能",
- skill_zhangji_A_info:
- "出牌阶段限X次(X为你的体力值),当你使用牌指定一名其他角色为目标后,你可以观看其手牌,然后你选择一项:
1.弃置其一张牌,然后若弃置的牌是能造成火焰伤害的牌,你摸一张牌。
2.重铸其手牌中的所有【杀】和【决斗】。
3.若其没有【闪】,你与其互相对对方造成1点伤害。",
+ skill_zhangji_A_info: "出牌阶段限X次(X为你的体力值),当你使用牌指定一名其他角色为目标后,你可以观看其手牌,然后你选择一项:
1.弃置其一张牌,然后若弃置的牌是能造成火焰伤害的牌,你摸一张牌。
2.重铸其手牌中的所有【杀】和【决斗】。
3.若其没有【闪】,你与其互相对对方造成1点伤害。",
skill_zhangji_B: "技能",
- skill_zhangji_B_info:
- "当你受到1点伤害后,你可令一名手牌数小于体力上限的角色摸三张牌,然后其将手牌数弃置至其体力上限数;当你进入濒死状态时,你可令一名其他角色观看五张魏势力武将牌,其可以选择其中一张代替自己的武将牌(体力和体力上限不变)。",
+ skill_zhangji_B_info: "当你受到1点伤害后,你可令一名手牌数小于体力上限的角色摸三张牌,然后其将手牌数弃置至其体力上限数;当你进入濒死状态时,你可令一名其他角色观看五张魏势力武将牌,其可以选择其中一张代替自己的武将牌(体力和体力上限不变)。",
ol_feiyi: "费祎",
yanru: "宴如",
- yanru_info:
- "出牌阶段各限一次,若你的手牌数为:①奇数,你可以摸三张牌,然后弃置至少一半手牌(向下取整);②偶数,你可以弃置至少一半手牌,然后摸三张牌。",
+ yanru_info: "出牌阶段各限一次,若你的手牌数为:①奇数,你可以摸三张牌,然后弃置至少一半手牌(向下取整);②偶数,你可以弃置至少一半手牌,然后摸三张牌。",
hezhong: "和衷",
- hezhong_info:
- "每回合每项限一次,当你的手牌数变为1后,你可以展示唯一手牌并摸一张牌,然后你选择一项:①本回合使用的下一张点数大于此牌的点数的普通锦囊牌额外结算一次;②本回合使用的下一张点数小于此牌的点数的普通锦囊牌额外结算一次。",
+ hezhong_info: "每回合每项限一次,当你的手牌数变为1后,你可以展示唯一手牌并摸一张牌,然后你选择一项:①本回合使用的下一张点数大于此牌的点数的普通锦囊牌额外结算一次;②本回合使用的下一张点数小于此牌的点数的普通锦囊牌额外结算一次。",
lvboshe: "吕伯奢",
olfushi: "缚豕",
- olfushi_info:
- "①一名角色使用【杀】结算结束后,若你至其的距离不大于1,你将此【杀】对应的所有实体牌置于武将牌上。②当你需要使用一张【杀】时,你可以将任意张“缚豕”牌置入弃牌堆并摸等量的牌,视为使用一张【杀】并选择X项(X为你以此法重铸的牌数且至多为3):1.你为此【杀】额外指定一个目标;2.你选择此【杀】的一个目标角色,此牌对其造成的伤害-1;3.你选择此【杀】的一个目标角色,此【杀】对其造成的伤害+1。当此【杀】指定最后一个目标后,若此牌被选择的效果选项相邻且此牌的目标角色座位连续,则此【杀】不计入次数限制。",
+ olfushi_info: "①一名角色使用【杀】结算结束后,若你至其的距离不大于1,你将此【杀】对应的所有实体牌置于武将牌上。②当你需要使用一张【杀】时,你可以将任意张“缚豕”牌置入弃牌堆并摸等量的牌,视为使用一张【杀】并选择X项(X为你以此法重铸的牌数且至多为3):1.你为此【杀】额外指定一个目标;2.你选择此【杀】的一个目标角色,此牌对其造成的伤害-1;3.你选择此【杀】的一个目标角色,此【杀】对其造成的伤害+1。当此【杀】指定最后一个目标后,若此牌被选择的效果选项相邻且此牌的目标角色座位连续,则此【杀】不计入次数限制。",
oldongdao: "东道",
- oldongdao_info:
- "农民的回合结束时:阴,你可以令地主进行一个额外回合;阳,其可以进行一个额外回合。",
+ oldongdao_info: "农民的回合结束时:阴,你可以令地主进行一个额外回合;阳,其可以进行一个额外回合。",
zhangyan: "张燕",
olsuji: "肃疾",
- olsuji_info:
- "一名角色的出牌阶段开始时,若其已受伤,你可以将一张黑色牌当【杀】使用。若其受到此【杀】的伤害,你获得其一张牌。",
+ olsuji_info: "一名角色的出牌阶段开始时,若其已受伤,你可以将一张黑色牌当【杀】使用。若其受到此【杀】的伤害,你获得其一张牌。",
ollangdao: "狼蹈",
- ollangdao_info:
- "当你使用【杀】指定唯一目标时,你可以与该目标角色同时选择一项:1.令此【杀】伤害基数+1;2.令你可以为此【杀】多选择一个目标;3.令此【杀】不可被响应。然后若没有角色因此【杀】死亡,你移除本次被选择的项。",
+ ollangdao_info: "当你使用【杀】指定唯一目标时,你可以与该目标角色同时选择一项:1.令此【杀】伤害基数+1;2.令你可以为此【杀】多选择一个目标;3.令此【杀】不可被响应。然后若没有角色因此【杀】死亡,你移除本次被选择的项。",
ol_dingshangwan: "OL丁尚涴",
ol_dingshangwan_prefix: "OL",
olfudao: "抚悼",
- olfudao_info:
- "①游戏开始时,你摸三张牌,然后可以将至多三张手牌交给一名其他角色,然后可以弃置任意张手牌,最后记录你的手牌数。②一名角色的回合结束时,若其手牌数和你发动〖抚悼①〗记录的数值相同,则你可以与其各摸一张牌。",
+ olfudao_info: "①游戏开始时,你摸三张牌,然后可以将至多三张手牌交给一名其他角色,然后可以弃置任意张手牌,最后记录你的手牌数。②一名角色的回合结束时,若其手牌数和你发动〖抚悼①〗记录的数值相同,则你可以与其各摸一张牌。",
olfengyan: "讽言",
- olfengyan_info:
- "锁定技。当你受到其他角色造成的伤害后或响应其他角色使用的牌时,你选择一项:①摸一张牌,然后交给其一张牌。②令其摸一张牌,然后其弃置两张牌。",
+ olfengyan_info: "锁定技。当你受到其他角色造成的伤害后或响应其他角色使用的牌时,你选择一项:①摸一张牌,然后交给其一张牌。②令其摸一张牌,然后其弃置两张牌。",
ol_liwan: "OL李婉",
ol_liwan_prefix: "OL",
ollianju: "联句",
- ollianju_info:
- "结束阶段,你可以令一名其他角色获得你本回合使用的最后一张牌A对应的所有位于弃牌堆的实体牌并记录A的牌名,然后其下个结束阶段可以令你获得其本回合使用的最后一张牌B对应的所有位于弃牌堆的实体牌,然后若A与B的牌名相同,则你失去1点体力;若A与B的牌名不同,则你可以视为使用A。",
+ ollianju_info: "结束阶段,你可以令一名其他角色获得你本回合使用的最后一张牌A对应的所有位于弃牌堆的实体牌并记录A的牌名,然后其下个结束阶段可以令你获得其本回合使用的最后一张牌B对应的所有位于弃牌堆的实体牌,然后若A与B的牌名相同,则你失去1点体力;若A与B的牌名不同,则你可以视为使用A。",
olsilv: "思闾",
- olsilv_info:
- "锁定技,每回合每项限一次,当你获得或失去你发动〖联句〗记录的最后一次牌名的同名牌后,你展示这些牌,然后摸一张牌。",
+ olsilv_info: "锁定技,每回合每项限一次,当你获得或失去你发动〖联句〗记录的最后一次牌名的同名牌后,你展示这些牌,然后摸一张牌。",
xueji_old: "血祭",
- xueji_old_info:
- "出牌阶段限一次,你可以弃置一张红色牌并对攻击范围内的至多X名角色各造成1点伤害(X为你已损失的体力值),然后这些角色各摸一张牌。",
+ xueji_old_info: "出牌阶段限一次,你可以弃置一张红色牌并对攻击范围内的至多X名角色各造成1点伤害(X为你已损失的体力值),然后这些角色各摸一张牌。",
oldhuxiao: "虎啸",
oldhuxiao_info: "锁定技,当你使用的【杀】被【闪】抵消后,你令此【杀】不计入使用次数。",
oldwuji: "武继",
- oldwuji_info:
- "觉醒技,结束阶段,若你本回合造成了3点或更多伤害,你加1点体力上限并回复1点体力,并失去技能〖虎啸〗。",
+ oldwuji_info: "觉醒技,结束阶段,若你本回合造成了3点或更多伤害,你加1点体力上限并回复1点体力,并失去技能〖虎啸〗。",
olfeiyang: "飞扬",
//olfeiyang_info:'限定技。准备阶段,你可以弃置两张牌,然后弃置判定区的一张牌。',
olfeiyang_info: "准备阶段,你可以弃置三张牌,然后弃置判定区的一张牌。",
caoyu: "曹宇",
olgongjie: "恭节",
- olgongjie_info:
- "每轮的首个回合开始时,你可以令任意名角色获得你的一张牌,然后你摸X张牌(X为你本次失去的花色数)。",
+ olgongjie_info: "每轮的首个回合开始时,你可以令任意名角色获得你的一张牌,然后你摸X张牌(X为你本次失去的花色数)。",
olxiangxv: "相胥",
- olxiangxv_info:
- "当你的手牌数变为全场最少时,你可以获得以下效果:本回合结束时,将手牌数调整至与当前回合角色手牌数相同(至多摸至五张),然后若你以此法弃置了至少两张手牌,则你回复1点体力。",
+ olxiangxv_info: "当你的手牌数变为全场最少时,你可以获得以下效果:本回合结束时,将手牌数调整至与当前回合角色手牌数相同(至多摸至五张),然后若你以此法弃置了至少两张手牌,则你回复1点体力。",
olxiangzuo: "襄胙",
- olxiangzuo_info:
- "限定技,当你进入濒死状态时,你可以交给一名其他角色任意张牌,然后若你已对其发动过〖恭节〗和〖相胥〗,你回复等量的体力。",
+ olxiangzuo_info: "限定技,当你进入濒死状态时,你可以交给一名其他角色任意张牌,然后若你已对其发动过〖恭节〗和〖相胥〗,你回复等量的体力。",
liyi: "李异",
olchanshuang: "缠双",
- olchanshuang_info:
- "①出牌阶段限一次,你可以选择一名其他角色。你与其依次选择〖缠双③〗的一项,然后你与其依次执行各自选择的项。②结束阶段,若X大于0,你执行〖缠双③〗的前X项(X为你本回合以任意形式执行过的〖缠双③〗的选项数)。③选项:1.重铸一张牌;2.使用一张【杀】;3.弃置两张牌。",
+ olchanshuang_info: "①出牌阶段限一次,你可以选择一名其他角色。你与其依次选择〖缠双③〗的一项,然后你与其依次执行各自选择的项。②结束阶段,若X大于0,你执行〖缠双③〗的前X项(X为你本回合以任意形式执行过的〖缠双③〗的选项数)。③选项:1.重铸一张牌;2.使用一张【杀】;3.弃置两张牌。",
olzhanjin: "蘸金",
olzhanjin_info: "锁定技,若你有空置的武器栏,则你视为装备【贯石斧】。",
tianchou: "田畴",
olshandao: "善刀",
- olshandao_info:
- "出牌阶段限一次,你可以选择任意名角色,你选择这些角色的各一张牌,依次将这些牌放置到牌堆顶,然后你视为对这些角色使用【五谷丰登】,然后你视为对这些角色外的所有其他角色使用【万箭齐发】。",
+ olshandao_info: "出牌阶段限一次,你可以选择任意名角色,你选择这些角色的各一张牌,依次将这些牌放置到牌堆顶,然后你视为对这些角色使用【五谷丰登】,然后你视为对这些角色外的所有其他角色使用【万箭齐发】。",
ol_hujinding: "胡金定",
olqingyuan: "轻缘",
- olqingyuan_info:
- "锁定技。①游戏开始时,或当你于本局游戏首次受到伤害后,你选择一名未以此法选择过的其他角色。②每回合限一次,你发动〖轻缘①〗选择过的角色得到牌后,你随机获得其中一名角色的随机一张手牌。",
+ olqingyuan_info: "锁定技。①游戏开始时,或当你于本局游戏首次受到伤害后,你选择一名未以此法选择过的其他角色。②每回合限一次,你发动〖轻缘①〗选择过的角色得到牌后,你随机获得其中一名角色的随机一张手牌。",
olchongshen: "重身",
olchongshen_info: "你可以将本轮得到的红色手牌当作【闪】使用。",
guotu: "郭图",
olqushi: "趋势",
- olqushi_info:
- "出牌阶段限一次,你可以摸一张牌,然后将一张手牌扣置于一名其他角色的武将牌上,称为“趋”。目标角色于其结束阶段移去武将牌上的所有“趋”,若其于本回合使用过与“趋”相同类别的牌,则你摸X张牌(X为其本回合使用牌指定过的目标数之和且至多为5)。",
+ olqushi_info: "出牌阶段限一次,你可以摸一张牌,然后将一张手牌扣置于一名其他角色的武将牌上,称为“趋”。目标角色于其结束阶段移去武将牌上的所有“趋”,若其于本回合使用过与“趋”相同类别的牌,则你摸X张牌(X为其本回合使用牌指定过的目标数之和且至多为5)。",
olweijie: "诿解",
- olweijie_info:
- "回合外每名角色的回合限一次,当你需要使用或打出一张基本牌时,你可以弃置距离为1的一名角色的一张手牌,若此牌牌名与你需要使用或打出的牌的牌名相同,则视为你使用或打出之。",
+ olweijie_info: "回合外每名角色的回合限一次,当你需要使用或打出一张基本牌时,你可以弃置距离为1的一名角色的一张手牌,若此牌牌名与你需要使用或打出的牌的牌名相同,则视为你使用或打出之。",
liupan: "刘磐",
olpijing: "披荆",
- olpijing_info:
- "每回合限一次,当你使用黑色【杀】或黑色普通锦囊牌指定唯一目标后,你可以令至多X名其他角色成为此牌的额外目标并依次交给你一张牌(X为你已损失的体力值且X至少为1)。这些角色下次使用基本牌或普通锦囊牌指定唯一目标时,其可令你成为此牌的额外目标或摸一张牌。",
+ olpijing_info: "每回合限一次,当你使用【杀】或普通锦囊牌指定唯一目标后,你可以令至多X名其他角色成为或取消成为此牌的额外目标并依次随机交给你一张牌(X为你已损失的体力值且X至少为1)。这些角色下次使用基本牌或普通锦囊牌指定唯一目标时,其可令你成为此牌的额外目标或摸一张牌。",
ol_lukai: "OL陆凯",
ol_lukai_prefix: "OL",
olxuanzhu: "玄注",
- olxuanzhu_info:
- "转换技,每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用:阴,任意基本牌;阳,任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。",
+ olxuanzhu_info: "转换技,每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用:阴,任意基本牌;阳,任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。",
oljiane: "謇谔",
- oljiane_info:
- "锁定技。①当你对其他角色使用的牌生效后,其本回合无法抵消牌。②当你抵消牌后,你本回合无法成为牌的目标。",
+ oljiane_info: "锁定技。①当你对其他角色使用的牌生效后,其本回合无法抵消牌。②当你抵消牌后,你本回合无法成为牌的目标。",
ol_liupi: "刘辟",
olyicheng: "易城",
- olyicheng_info:
- "出牌阶段限一次,你可以亮出牌堆顶的X张牌(X为你的体力上限),然后你可以以任意手牌交换其中等量张牌,若亮出的牌的点数和因此增加,则你可以选择用所有手牌交换亮出的牌。最后你将亮出的牌置于牌堆顶。",
+ olyicheng_info: "出牌阶段限一次,你可以亮出牌堆顶的X张牌(X为你的体力上限),然后你可以以任意手牌交换其中等量张牌,若亮出的牌的点数和因此增加,则你可以选择用所有手牌交换亮出的牌。最后你将亮出的牌置于牌堆顶。",
sp_sunce: "SP孙策",
sp_sunce_prefix: "SP",
olliantao: "连讨",
- olliantao_info:
- "出牌阶段开始时,你可以令一名其他角色选择一个颜色,然后你依次将此颜色的所有手牌当作【决斗】对其使用直到有一方进入濒死状态,然后你摸X张牌(X为你本次以此法造成的伤害数)。若没有角色因本次技能结算受到伤害,你摸三张牌,本回合手牌上限+3且本回合你不能使用【杀】。",
+ olliantao_info: "出牌阶段开始时,你可以令一名其他角色选择一个颜色,然后你依次将此颜色的所有手牌当作【决斗】对其使用直到有一方进入濒死状态,然后你摸X张牌(X为你本次以此法造成的伤害数)。若没有角色因本次技能结算受到伤害,你摸三张牌,本回合手牌上限+3且本回合你不能使用【杀】。",
sp_tianji: "天极·皇室宗亲",
sp_sibi: "四弼·辅国文曲",