From 86367839ac77a11772ef886da45a565943c1ddb1 Mon Sep 17 00:00:00 2001 From: 3cxc <81449257+3cxc@users.noreply.github.com> Date: Thu, 12 Feb 2026 23:44:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=9E=E5=90=88=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E5=8F=8B=E4=BC=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Configs/Config.cs | 4 ++++ Events/CustomEventHandler.cs | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/Configs/Config.cs b/Configs/Config.cs index 12623f8..80cfff5 100644 --- a/Configs/Config.cs +++ b/Configs/Config.cs @@ -102,5 +102,9 @@ namespace EasyTools.Configs /// ///////////////////////////////////////////////// [Description("开启硬币抽卡?")] public bool Coin { get; set; } = true; + + /// ///////////////////////////////////////////////// + [Description("开启回合结束友伤?")] + public bool EnableFriendFire { get; set; } = true; } } diff --git a/Events/CustomEventHandler.cs b/Events/CustomEventHandler.cs index a7ea44f..2a0865d 100644 --- a/Events/CustomEventHandler.cs +++ b/Events/CustomEventHandler.cs @@ -67,6 +67,12 @@ namespace EasyTools.Events { Timing.KillCoroutines(Badge_Coroutine); } + + if (Config.EnableFriendFire) + { + Server.FriendlyFire = true; + Server.SendBroadcast($"\n🎉 回合结束,友伤已开启~", 5); + } } public override void OnPlayerJoined(PlayerJoinedEventArgs ev)