feat: 回合结束友伤

This commit is contained in:
3cxc
2026-02-12 23:44:59 +08:00
parent 0777192d57
commit 86367839ac
2 changed files with 10 additions and 0 deletions

View File

@@ -102,5 +102,9 @@ namespace EasyTools.Configs
/// ///////////////////////////////////////////////// /// /////////////////////////////////////////////////
[Description("开启硬币抽卡?")] [Description("开启硬币抽卡?")]
public bool Coin { get; set; } = true; public bool Coin { get; set; } = true;
/// /////////////////////////////////////////////////
[Description("开启回合结束友伤?")]
public bool EnableFriendFire { get; set; } = true;
} }
} }

View File

@@ -67,6 +67,12 @@ namespace EasyTools.Events
{ {
Timing.KillCoroutines(Badge_Coroutine); Timing.KillCoroutines(Badge_Coroutine);
} }
if (Config.EnableFriendFire)
{
Server.FriendlyFire = true;
Server.SendBroadcast($"\n<b><size=25><color=#00CC00>🎉 回合结束,友伤已开启~</color></size></b>", 5);
}
} }
public override void OnPlayerJoined(PlayerJoinedEventArgs ev) public override void OnPlayerJoined(PlayerJoinedEventArgs ev)