调整【榻谟】

This commit is contained in:
157 2024-04-19 22:42:38 +08:00
parent 611714353b
commit d34942b098
1 changed files with 116 additions and 107 deletions

View File

@ -755,9 +755,18 @@ game.import("character", function () {
changeSeat: true,
derivation: "tamo_faq",
async content(event, trigger, player) {
const toSortPlayers = game.filterPlayer((current) => !current.isZhu2());
const toSortPlayers = game.filterPlayer((current) => {
return (
!current.isZhu2() ||
get.mode() == "doudizhu" && current.getSeatNum() == 3
);
});
toSortPlayers.sortBySeat(game.findPlayer2((current) => current.getSeatNum() == 1, true));
const next = player.chooseToMove("榻谟:是否分配所有角色的座次?");
const next = player.chooseToMove("榻谟:是否分配" +
(game.countPlayer() > toSortPlayers.length ?
"除主公" + (get.mode() == "doudizhu" ? "和三号位外" : "外") : "") +
"所有角色的座次?"
);
next.set("list", [
[
"(以下排列的顺序即为发动技能后角色的座次顺序)",
@ -920,8 +929,8 @@ game.import("character", function () {
trigger: { player: "phaseAfter" },
filter(event, player) {
return game.hasPlayer(target => {
if(target==player||target.countCards('h')+player.countCards('h')==0) return false;
return get.mode()=='identity'||target.countCards('h')<=player.countCards('h')+1;
if (target == player || target.countCards('h') + player.countCards('h') == 0) return false;
return get.mode() == 'identity' || target.countCards('h') <= player.countCards('h') + 1;
});
},
direct: true,
@ -933,8 +942,8 @@ game.import("character", function () {
get.prompt("zhimeng"),
"与一名其他角色平分手牌",
(card, player, target) => {
if(target==player||target.countCards('h')+player.countCards('h')==0) return false;
return get.mode()=='identity'||target.countCards('h')<=player.countCards('h')+1;
if (target == player || target.countCards('h') + player.countCards('h') == 0) return false;
return get.mode() == 'identity' || target.countCards('h') <= player.countCards('h') + 1;
}
)
.set("ai", (target) => {
@ -1638,8 +1647,7 @@ game.import("character", function () {
var bodies = _status.event.player
.getStorage("jxzhaoluan_effect")
.filter((i) => i.isIn());
return `选择一名角色,你令${get.translation(bodies)}${
bodies.length > 1 ? "中的一人" : ""
return `选择一名角色,你令${get.translation(bodies)}${bodies.length > 1 ? "中的一人" : ""
}减1点体力上限然后你对选择的角色造成1点伤害`;
},
delay: false,
@ -1835,8 +1843,7 @@ game.import("character", function () {
`<div class="text" data-nature=${get.groupnature(
info[1],
"raw"
)}m style="font-family: ${
lib.config.name_font || "xinwei"
)}m style="font-family: ${lib.config.name_font || "xinwei"
},xinwei">${skillstr}</div>`,
node
);
@ -3602,7 +3609,7 @@ game.import("character", function () {
evt.set("norestore", true);
evt.set("custom", {
add: {},
replace: { window() {} },
replace: { window() { } },
});
} else {
delete evt.result.skill;
@ -10838,12 +10845,14 @@ game.import("character", function () {
tamo: "榻谟",
tamo_info:
"游戏开始时,你可以重新分配除主公外所有角色的座次。",
tamo_info_doudizhu:
"游戏开始时,你可以重新分配除主公和三号位外所有角色的座次。",
tamo_faq: "FAQ",
tamo_faq_info:
"<br><li>Q在一号位不为主公的情况下〖榻谟〗如何结算</li><li>A该角色可以正常进行座次交换。若受此技能影响导致一号位角色发生了变化则以排列后的一号位角色为起始角色开始本局游戏。</li>",
zhimeng: "智盟",
zhimeng_info_identity:'回合结束后,你可以选择一名其他角色。若如此做,你与其将各自所有手牌置于处理区,然后你随机获得这些牌中的一半(向上取整),其获得剩余的牌。',
zhimeng_info:'回合结束后你可以选择一名手牌数不大于Y的其他角色Y为你的手牌数+1。若如此做你与其将各自所有手牌置于处理区然后你随机获得这些牌中的一半向上取整其获得剩余的牌。',
zhimeng_info_identity: '回合结束后,你可以选择一名其他角色。若如此做,你与其将各自所有手牌置于处理区,然后你随机获得这些牌中的一半(向上取整),其获得剩余的牌。',
zhimeng_info: '回合结束后你可以选择一名手牌数不大于Y的其他角色Y为你的手牌数+1。若如此做你与其将各自所有手牌置于处理区然后你随机获得这些牌中的一半向上取整其获得剩余的牌。',
shen_xuzhu: "神许褚",
shen_xuzhu_prefix: "神",
zhengqing: "争擎",