From 73829c09d60f333f9bb570927ea3f4050bb1e862 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Sun, 21 Apr 2024 09:54:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=8F=E9=92=9F=E7=B9=87=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/clan.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/character/clan.js b/character/clan.js index 6c9b05290..4eaddce5c 100644 --- a/character/clan.js +++ b/character/clan.js @@ -160,6 +160,9 @@ game.import("character", function () { }, }; }, + prompt(links, player) { + return "将至少两张牌当作" + get.translation(links[0][3] || "") + "【" + get.translation(links[0][2]) + "】使用"; + }, }, ai: { order(item, player) { @@ -293,9 +296,13 @@ game.import("character", function () { } } else { - const topCards = get.cards(num, true); - game.updateRoundNumber(); - const content = [get.translation(target) + "牌名字数最多的手牌", cards, "牌堆顶", topCards]; + let content = ['
' + get.translation(target) + "牌名字数最多的手牌
", cards]; + if (num > 0) { + const topCards = get.cards(num, true); + game.updateRoundNumber(); + content.push('
牌堆顶
'); + content.push(topCards); + } await player.chooseControl("ok").set("dialog", content); } },