From bc8e8b591c64747e94ee5cd234ca5329319765a9 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 9 May 2024 22:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=8E=E4=B8=B0=E3=80=90=E5=9B=A4=E5=82=A8?= =?UTF-8?q?=E3=80=91=E6=95=88=E6=9E=9C=E5=B0=8F=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/huicui/skill.js | 14 ++++++++++++++ character/huicui/translate.js | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/character/huicui/skill.js b/character/huicui/skill.js index 0ff964e32..7c9d7d41e 100644 --- a/character/huicui/skill.js +++ b/character/huicui/skill.js @@ -5,6 +5,7 @@ const skills = { //李丰 dctunchu: { audio: 2, + /* trigger: { global: "gameDrawBegin" }, forced: true, content() { @@ -15,6 +16,19 @@ const skills = { return player == me ? sum : typeof numx == "function" ? numx(player) : numx; }; }, + */ + trigger: { + global: "phaseBefore", + player: "enterGame", + }, + filter(event, player) { + const sum = game.players.slice().concat(game.dead).length * 4; + return player.countCards("h") < sum && (event.name != "phase" || game.phaseNumber == 0); + }, + forced: true, + content() { + player.drawTo(game.players.slice().concat(game.dead).length * 4); + }, mod: { cardDiscardable(card, player) { if (get.position(card) == "h") return false; diff --git a/character/huicui/translate.js b/character/huicui/translate.js index 382e6baa5..8bf97bdf0 100644 --- a/character/huicui/translate.js +++ b/character/huicui/translate.js @@ -531,7 +531,8 @@ const translates = { dcshicao_info: "出牌阶段,你可以声明一种类型,然后选择从牌堆顶或牌堆底摸一张牌。若此牌类型与你声明的类型不同,你观看牌堆另一端的两张牌,此技能本回合失效。", dc_lifeng: "李丰", dctunchu: "囤储", - dctunchu_info: "锁定技。①你的起始手牌数为游戏人数的四倍。②你的手牌不能被弃置。③准备阶段,若你的手牌数大于你的体力上限,则你本回合至多使用三张牌。", + //dctunchu_info: "锁定技。①你的起始手牌数为游戏人数的四倍。②你的手牌不能被弃置。③准备阶段,若你的手牌数大于你的体力上限,则你本回合至多使用三张牌。", + dctunchu_info: "锁定技。①游戏开始时,你将手牌数摸至游戏人数的四倍。②你的手牌不能被弃置。③准备阶段,若你的手牌数大于你的体力上限,则你本回合至多使用三张牌。", dcshuliang: "输粮", dcshuliang_info: "一名角色的回合结束时,你可以将任意张手牌交给任意名没有手牌的角色各一张,然后本次获得可以指定自己为目标的牌的角色可以依次选择是否选择本次获得的牌。", };