From 8bf47aa81ee6a1f3aeac3cb7e77594ddd616c92e Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 30 May 2024 17:05:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=90=E7=A6=BB=E9=AA=9A?= =?UTF-8?q?=E3=80=91=E5=87=BA=E9=A2=98=E5=8F=AA=E5=87=BA=E4=B8=8B=E5=8D=8A?= =?UTF-8?q?=E5=8F=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/collab/skill.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/character/collab/skill.js b/character/collab/skill.js index b3dee2420..94224588d 100644 --- a/character/collab/skill.js +++ b/character/collab/skill.js @@ -224,7 +224,7 @@ const skills = { gaifa = targets.slice(); //该罚 let question = []; const sentences = _status.lisao_text.randomGets(2).randomSort(); - const goon = Math.floor(Math.random()); + const goon = Math.round(Math.random()); question.addArray(["请回答《离骚》中“" + sentences[0].split(",")[goon] + "”的" + (goon ? "上" : "下") + "句", [sentences[0].split(",")[1 - goon], sentences[1].split(",")[1 - goon]].randomSort()]); //人类和AI //AI随机排序一下,模拟不同顺序回答 @@ -316,7 +316,7 @@ const skills = { next.set("prompt", question[0]); next.set("id", eventId); next.set("_global_waiting", true); - next.set("ai", () => Math.floor(Math.random())); + next.set("ai", () => Math.round(Math.random())); return next; }, init() {