OL蒋琬
This commit is contained in:
parent
e24bc7ee85
commit
9dac08db95
|
@ -21,6 +21,7 @@ const characterReplaces = {
|
||||||
sp_jiangqing: ["sp_jiangqing", "tw_jiangqing", "jiangqing"],
|
sp_jiangqing: ["sp_jiangqing", "tw_jiangqing", "jiangqing"],
|
||||||
kongrong: ["dc_kongrong", "sp_kongrong", "jsrg_kongrong", "kongrong"],
|
kongrong: ["dc_kongrong", "sp_kongrong", "jsrg_kongrong", "kongrong"],
|
||||||
dc_mifuren: ["dc_mifuren", "sp_mifuren"],
|
dc_mifuren: ["dc_mifuren", "sp_mifuren"],
|
||||||
|
sp_jiangwan: ["ol_jiangwan", "sp_jiangwan"],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default characterReplaces;
|
export default characterReplaces;
|
||||||
|
|
|
@ -281,7 +281,8 @@ const translates = {
|
||||||
spdifei_info: "锁定技。每回合限一次,当你受到伤害后,你摸一张牌或弃置一张手牌,然后展示所有手牌。若此伤害的渠道为没有花色的牌或你的手牌中没有与此牌花色相同的牌,则你回复1点体力。",
|
spdifei_info: "锁定技。每回合限一次,当你受到伤害后,你摸一张牌或弃置一张手牌,然后展示所有手牌。若此伤害的渠道为没有花色的牌或你的手牌中没有与此牌花色相同的牌,则你回复1点体力。",
|
||||||
spyanjiao: "严教",
|
spyanjiao: "严教",
|
||||||
spyanjiao_info: "出牌阶段限一次。你可以将手牌中一种花色的所有牌交给一名其他角色,对其造成1点伤害。然后你于自己的下回合开始时摸等量的牌。",
|
spyanjiao_info: "出牌阶段限一次。你可以将手牌中一种花色的所有牌交给一名其他角色,对其造成1点伤害。然后你于自己的下回合开始时摸等量的牌。",
|
||||||
sp_jiangwan: "蒋琬",
|
sp_jiangwan: "手杀蒋琬",
|
||||||
|
sp_jiangwan_prefix: "手杀",
|
||||||
spzhenting: "镇庭",
|
spzhenting: "镇庭",
|
||||||
spzhenting_info: "每回合限一次。当你攻击范围内的角色成为【杀】或延时锦囊的目标时,若你不是此牌的使用者且不是此牌的目标,则你可以将此目标改为自己。然后你选择一项:①弃置使用者的一张手牌。②摸一张牌。",
|
spzhenting_info: "每回合限一次。当你攻击范围内的角色成为【杀】或延时锦囊的目标时,若你不是此牌的使用者且不是此牌的目标,则你可以将此目标改为自己。然后你选择一项:①弃置使用者的一张手牌。②摸一张牌。",
|
||||||
spjincui: "尽瘁",
|
spjincui: "尽瘁",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const characters = {
|
const characters = {
|
||||||
|
ol_jiangwan: ["male", "shu", 3, ["olziruo", "olxvfa"]],
|
||||||
caimao: ["male", "wei", 4, ["olzuolian", "oljingzhou"]],
|
caimao: ["male", "wei", 4, ["olzuolian", "oljingzhou"]],
|
||||||
ol_peixiu: ["male", "wei", 4, ["olmaozhu", "oljinlan"]],
|
ol_peixiu: ["male", "wei", 4, ["olmaozhu", "oljinlan"]],
|
||||||
yadan: ["male", "qun", 4, ["olqingya", "oltielun"]],
|
yadan: ["male", "qun", 4, ["olqingya", "oltielun"]],
|
||||||
|
|
|
@ -87,5 +87,9 @@ const dynamicTranslates = {
|
||||||
if (player.storage.olxuanzhu) return '转换技,每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用:阴,任意基本牌;<span class="bluetext">阳,任意普通锦囊牌(须指定目标且仅指定一个目标)</span>。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。';
|
if (player.storage.olxuanzhu) return '转换技,每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用:阴,任意基本牌;<span class="bluetext">阳,任意普通锦囊牌(须指定目标且仅指定一个目标)</span>。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。';
|
||||||
return '转换技,每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用:<span class="bluetext">阴,任意基本牌</span>;阳,任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。';
|
return '转换技,每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用:<span class="bluetext">阴,任意基本牌</span>;阳,任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。';
|
||||||
},
|
},
|
||||||
|
olziruo(player){
|
||||||
|
if (player.storage.olziruo) return '转换技,锁定技。①你不能整理手牌。②当你使用最{阴:左;<span class="bluetext">阳:右</span>}侧的手牌时,你摸一张牌。';
|
||||||
|
return '转换技,锁定技。①你不能整理手牌。②当你使用最{<span class="bluetext">阴:左</span>;阳:右}侧的手牌时,你摸一张牌。';
|
||||||
|
},
|
||||||
};
|
};
|
||||||
export default dynamicTranslates;
|
export default dynamicTranslates;
|
||||||
|
|
|
@ -2,6 +2,159 @@ import { lib, game, ui, get, ai, _status } from "../../noname.js";
|
||||||
|
|
||||||
/** @type { importCharacterConfig['skill'] } */
|
/** @type { importCharacterConfig['skill'] } */
|
||||||
const skills = {
|
const skills = {
|
||||||
|
//蒋济
|
||||||
|
olziruo: {
|
||||||
|
audio: 2,
|
||||||
|
trigger: { player: "useCard" },
|
||||||
|
filter(event, player) {
|
||||||
|
if (!event.olziruo || !event.olziruo[player.playerid]) return false;
|
||||||
|
return event.olziruo[player.playerid][Boolean(player.storage.olziruo) ? 1 : 0];
|
||||||
|
},
|
||||||
|
forced: true,
|
||||||
|
async content(event, trigger, player) {
|
||||||
|
player.changeZhuanhuanji("olziruo");
|
||||||
|
await player.draw();
|
||||||
|
},
|
||||||
|
mark: true,
|
||||||
|
marktext: "☯",
|
||||||
|
zhuanhuanji: true,
|
||||||
|
intro: { content: storage => "当你使用最" + (storage ? "右" : "左") + "边的卡牌时,你摸一张牌,且本回合你不能整理手牌" },
|
||||||
|
global: "olziruo_mark",
|
||||||
|
ai: { noSortCard: true },
|
||||||
|
subSkill: {
|
||||||
|
mark: {
|
||||||
|
charlotte: true,
|
||||||
|
trigger: { player: "useCardBegin" },
|
||||||
|
filter(event, player) {
|
||||||
|
const cards = player.getCards("h");
|
||||||
|
if (!cards.length) return false;
|
||||||
|
return (event.cards || []).some(card => cards[0] == card || cards[cards.length - 1] == card);
|
||||||
|
},
|
||||||
|
forced: true,
|
||||||
|
popup: false,
|
||||||
|
content() {
|
||||||
|
const cards = player.getCards("h");
|
||||||
|
if (!trigger.olziruo) trigger.olziruo = {};
|
||||||
|
trigger.olziruo[player.playerid] = [trigger.cards.some(card => cards[0] == card), trigger.cards.some(card => cards[cards.length - 1] == card)];
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
olxvfa: {
|
||||||
|
audio: 2,
|
||||||
|
enable: "phaseUse",
|
||||||
|
filter(event, player) {
|
||||||
|
return (!player.hasSkill("olxvfa_0") && player.countCards("h")) || (!player.hasSkill("olxvfa_1") && player.getExpansions("olxvfa").length);
|
||||||
|
},
|
||||||
|
chooseButton: {
|
||||||
|
dialog(_, player) {
|
||||||
|
let dialog = ui.create.dialog("蓄发:请选择一项", "hidden");
|
||||||
|
const list = [
|
||||||
|
["0", "将至少一半手牌称为“蓄发”置于武将牌上(向上取整)"],
|
||||||
|
["1", "移去一半“蓄发”牌(向上取整)"],
|
||||||
|
].filter(listx => {
|
||||||
|
if (listx[0] == "0") return !player.hasSkill("olxvfa_0") && player.countCards("h");
|
||||||
|
return !player.hasSkill("olxvfa_1") && player.getExpansions("olxvfa").length;
|
||||||
|
});
|
||||||
|
dialog.add([list, "textbutton"]);
|
||||||
|
if (list.length == 1) dialog.direct = true;
|
||||||
|
return dialog;
|
||||||
|
},
|
||||||
|
filter(button, player) {
|
||||||
|
if (button.link == "0") return !player.hasSkill("olxvfa_0") && player.countCards("h");
|
||||||
|
return !player.hasSkill("olxvfa_1") && player.getExpansions("olxvfa").length;
|
||||||
|
},
|
||||||
|
check: () => 1 + Math.random(),
|
||||||
|
backup: links => get.copy(lib.skill["olxvfa_" + ["put", "remove"][parseInt(links[0])]]),
|
||||||
|
prompt(links) {
|
||||||
|
if (links[0] == "0") return "###蓄发###将至少一半手牌称为“蓄发”置于武将牌上(向上取整)";
|
||||||
|
return "###蓄发###移去一半“蓄发”牌(向上取整)";
|
||||||
|
},
|
||||||
|
},
|
||||||
|
intro: {
|
||||||
|
content: "expansion",
|
||||||
|
markcount: "expansion",
|
||||||
|
},
|
||||||
|
onremove(player, skill) {
|
||||||
|
const cards = player.getExpansions(skill);
|
||||||
|
if (cards.length) player.loseToDiscardpile(cards);
|
||||||
|
},
|
||||||
|
subSkill: {
|
||||||
|
backup: {},
|
||||||
|
0: { charlotte: true },
|
||||||
|
1: { charlotte: true },
|
||||||
|
put: {
|
||||||
|
audio: "olxvfa",
|
||||||
|
filterCard: true,
|
||||||
|
selectCard: () => [Math.ceil(get.event("player").countCards("h") / 2), Infinity],
|
||||||
|
position: "h",
|
||||||
|
check(card) {
|
||||||
|
const player = get.event("player"),
|
||||||
|
value = player.getUseValue(card, true);
|
||||||
|
if (value > 0) return get.type(card) == "trick" ? 20 + value : 0;
|
||||||
|
return 15 - get.value(card) - get.useful(card);
|
||||||
|
},
|
||||||
|
lose: false,
|
||||||
|
discard: false,
|
||||||
|
delay: 0,
|
||||||
|
content() {
|
||||||
|
player.addTempSkill("olxvfa_effect");
|
||||||
|
player.addTempSkill("olxvfa_0", "phaseUseAfter");
|
||||||
|
player.addToExpansion(cards, player, "give").gaintag.add("olxvfa");
|
||||||
|
},
|
||||||
|
},
|
||||||
|
remove: {
|
||||||
|
audio: "olxvfa",
|
||||||
|
filterCard: () => false,
|
||||||
|
selectCard: -1,
|
||||||
|
async content(event, trigger, player) {
|
||||||
|
player.addTempSkill("olxvfa_effect");
|
||||||
|
player.addTempSkill("olxvfa_1", "phaseUseAfter");
|
||||||
|
const cards = player.getExpansions("olxvfa"),
|
||||||
|
num = Math.ceil(cards.length / 2);
|
||||||
|
const result = await player
|
||||||
|
.chooseButton(["蓄发:请移去至少" + get.cnNumber(num) + "张“蓄发”牌", cards], [num, Infinity], true)
|
||||||
|
.set("ai", button => {
|
||||||
|
const player = get.event("player"),
|
||||||
|
value = player.getUseValue(button.link, true);
|
||||||
|
if (value > 0 && get.type(button.link) == "trick") return 0;
|
||||||
|
return 1 / (get.useful(button.link) || 0.5);
|
||||||
|
})
|
||||||
|
.forResult();
|
||||||
|
if (result.bool) await player.loseToDiscardpile(result.links);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
effect: {
|
||||||
|
charlotte: true,
|
||||||
|
trigger: { player: "olxvfa_backupAfter" },
|
||||||
|
filter(event, player) {
|
||||||
|
return player.getExpansions("olxvfa").some(card => get.type(card) == "trick" && player.hasUseTarget({ name: card.name, isCard: true }, true));
|
||||||
|
},
|
||||||
|
forced: true,
|
||||||
|
popup: false,
|
||||||
|
async content(event, trigger, player) {
|
||||||
|
const cards = player.getExpansions("olxvfa");
|
||||||
|
const result = await player
|
||||||
|
.chooseButton(["蓄发:是否视为使用一张“蓄发”牌?", cards])
|
||||||
|
.set("filterButton", button => {
|
||||||
|
const player = get.event("player"),
|
||||||
|
card = button.link;
|
||||||
|
return get.type(card) == "trick" && player.hasUseTarget({ name: card.name, isCard: true }, true);
|
||||||
|
})
|
||||||
|
.set("ai", button => {
|
||||||
|
const player = get.event("player"),
|
||||||
|
card = button.link;
|
||||||
|
return player.getUseValue({ name: card.name, isCard: true }, true);
|
||||||
|
})
|
||||||
|
.forResult();
|
||||||
|
if (result.bool) {
|
||||||
|
const card = result.links[0];
|
||||||
|
await player.chooseUseTarget({ name: card.name, isCard: true }, true, false);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
//蔡瑁
|
//蔡瑁
|
||||||
olzuolian: {
|
olzuolian: {
|
||||||
audio: 2,
|
audio: 2,
|
||||||
|
|
|
@ -1261,6 +1261,11 @@ const translates = {
|
||||||
olzuolian_info: "出牌阶段限一次,你可以选择至多X名有牌的角色(X为你的体力值),你随机展示这些角色的各一张牌,然后你可以将这些牌与牌堆和弃牌堆中的属性【杀】进行交换。",
|
olzuolian_info: "出牌阶段限一次,你可以选择至多X名有牌的角色(X为你的体力值),你随机展示这些角色的各一张牌,然后你可以将这些牌与牌堆和弃牌堆中的属性【杀】进行交换。",
|
||||||
oljingzhou: "精舟",
|
oljingzhou: "精舟",
|
||||||
oljingzhou_info: "当你受到伤害时,你可以选择至多X名角色(X为你的体力值)这些角色中处于/未处于连环状态的角色重置/横置武将牌。",
|
oljingzhou_info: "当你受到伤害时,你可以选择至多X名角色(X为你的体力值)这些角色中处于/未处于连环状态的角色重置/横置武将牌。",
|
||||||
|
ol_jiangwan:'蒋琬',
|
||||||
|
olziruo:'自若',
|
||||||
|
olziruo_info:'转换技,锁定技。①你不能整理手牌。②当你使用最{阴:左;阳:右}侧的手牌时,你摸一张牌。',
|
||||||
|
olxvfa:'蓄发',
|
||||||
|
olxvfa_info:'出牌阶段各限一次:①将至少一半手牌称为“蓄发”置于武将牌上(向上取整);②你可以移去一半“蓄发”牌(向上取整)。然后你可以视为使用“蓄发”牌中的一张普通锦囊牌。',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default translates;
|
export default translates;
|
||||||
|
|
|
@ -2770,7 +2770,7 @@ export class Create {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
ui.sortCard = ui.create.system("整理手牌", function () {
|
ui.sortCard = ui.create.system("整理手牌", function () {
|
||||||
if (!game.me) return;
|
if (!game.me || game.me.hasSkillTag("noSortCard")) return;
|
||||||
var hs = game.me.getCards("h");
|
var hs = game.me.getCards("h");
|
||||||
if (!hs.length) return;
|
if (!hs.length) return;
|
||||||
game.addVideo("lose", game.me, [get.cardsInfo(hs), [], [], []]);
|
game.addVideo("lose", game.me, [get.cardsInfo(hs), [], [], []]);
|
||||||
|
|
Loading…
Reference in New Issue