谋韩当弓骑同步正式版

This commit is contained in:
copcap 2024-05-21 15:01:08 +08:00
parent 6870dba218
commit 026cd4bd3c
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
2 changed files with 7 additions and 6 deletions

View File

@ -140,14 +140,15 @@ const skills = {
const targets = game.filterPlayer(current => {
return current.inRange(target);
});
if (!targets.length) {
const count = Math.min(2, targets.length);
if (!count) {
target.chat("没人打得到我喔!");
return;
}
const controls = ["选项一", "选项二", "背水!"];
const control = await target
.chooseControl(controls)
.set("choiceList", [`令所有攻击范围内含有你的角色依次弃置一张牌(${get.translation(targets)}`, `你摸等同于攻击范围内含有你的角色数的牌(${get.cnNumber(targets.length)}张牌)`, `背水!令${get.translation(player)}的〖解烦〗失效直到其杀死一名角色,然后你依次执行上述所有选项`])
.set("choiceList", [`令所有攻击范围内含有你的角色依次弃置一张牌(${get.translation(targets)}`, `你摸等同于攻击范围内含有你的角色数的牌(${get.cnNumber(count)}张牌)`, `背水!令${get.translation(player)}的〖解烦〗失效直到其杀死一名角色,然后你依次执行上述所有选项`])
.set("ai", () => {
return get.event("choice");
})
@ -161,7 +162,7 @@ const skills = {
return get.effect(current, { name: "guohe", position }, target, target);
})
.reduce((p, c) => p + c, 0);
const eff2 = (get.effect(target, { name: "wuzhong" }, target) * targets.length) / 2;
const eff2 = (get.effect(target, { name: "wuzhong" }, target) * count) / 2;
if (
game.hasPlayer(current => {
const att1 = get.attitude(player, current),
@ -191,7 +192,7 @@ const skills = {
}
}
if (control !== "选项一") {
target.draw(targets.length);
target.draw(count);
}
},
ai: {
@ -201,7 +202,7 @@ const skills = {
const targets = game.filterPlayer(current => {
return current.inRange(target);
});
return targets.length / 2;
return Math.min(2, targets.length) / 2;
},
}
}

View File

@ -275,7 +275,7 @@ const translates = {
sbgongqi: "弓骑",
sbgongqi_info: "①出牌阶段开始时,你可以弃置一张牌,然后本阶段你获得如下效果:当你使用牌时,你令所有其他角色不能使用或打出与你弃置牌颜色不同的手牌响应此牌。②你的攻击范围+4。",
sbjiefan: "解烦",
sbjiefan_info: "出牌阶段限一次。你可以令一名角色选择一项:⒈令所有攻击范围内含有其的角色依次弃置一张牌;⒉其摸等同于攻击范围内含有其的角色数的牌;⒊背水:此技能失效直到你杀死一名角色,然后依次执行上述所有选项。",
sbjiefan_info: "出牌阶段限一次。你可以令一名角色选择一项:⒈令所有攻击范围内含有其的角色依次弃置一张牌;⒉其摸等同于攻击范围内含有其的角色数的牌(至多两张);⒊背水:此技能失效直到你杀死一名角色,然后依次执行上述所有选项。",
sb_gongsunzan: "谋公孙瓒",
sb_gongsunzan_prefix: "谋",
sbyicong: "义从",