mirror of
https://gitee.com/cssfw/EasyTools.git
synced 2026-03-28 12:01:36 +08:00
feat: 回合结束友伤
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user