From 4d18e3d072ba178d4853ea8712cf6bf2f2f50fd9 Mon Sep 17 00:00:00 2001 From: milimoe Date: Wed, 30 Oct 2024 21:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=A2=E9=98=9F=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E8=A7=92=E8=89=B2=E4=BF=A1=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E5=9B=9E=E6=89=A7=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OshimaCore/Utils/FunGameUtil.cs | 39 ++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/OshimaCore/Utils/FunGameUtil.cs b/OshimaCore/Utils/FunGameUtil.cs index a0cae00..671492e 100644 --- a/OshimaCore/Utils/FunGameUtil.cs +++ b/OshimaCore/Utils/FunGameUtil.cs @@ -578,10 +578,43 @@ namespace Oshima.Core.Utils // 显示每个角色的信息 if (isWeb) { - for (i = actionQueue.Eliminated.Count - 1; i >= 0; i--) + if (isTeam) { - Character character = actionQueue.Eliminated[i]; - result.Add($"=== 角色 [ {character} ] ===\r\n{character.GetInfo()}"); + top = 1; + for (i = actionQueue.EliminatedTeams.Count - 1; i >= 0; i--) + { + Team team = actionQueue.EliminatedTeams[i]; + string topTeam = ""; + if (top == 1) + { + topTeam = "冠军"; + } + if (top == 2) + { + topTeam = "亚军"; + } + if (top == 3) + { + topTeam = "季军"; + } + if (top > 3) + { + topTeam = $"第 {top} 名"; + } + foreach (Character character in team.Members) + { + result.Add($"== {topTeam}团队 [ {team.Name} ] ==\r\n== 角色:[ {character} ] ==\r\n{character.GetInfo()}"); + } + top++; + } + } + else + { + for (i = actionQueue.Eliminated.Count - 1; i >= 0; i--) + { + Character character = actionQueue.Eliminated[i]; + result.Add($"=== 角色 [ {character} ] ===\r\n{character.GetInfo()}"); + } } }