mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
1f4a7b586c
commit
634479062a
4 files changed
+13
-6
No files matched your search
@@ -137,6 +137,8 @@ public static class DevManager
|
||||
new("seriouslug#1532", "#FF2400", "ZEN", true), // Zypherus
|
||||
new("potatotall#5573", isUp: true), // V.K
|
||||
new("kamedexter#7241", "#ff0000", "YouTuber", true), // Lean
|
||||
new("faintforge#1505", isUp: true), // hira._.gana
|
||||
new("rarespite#3723", isUp: true), // Buddah2400
|
||||
|
||||
// Sponsor
|
||||
new("recentduct#6068", "#FF00FF", "高冷男模法师", false, true),
|
||||
|
||||
@@ -1521,6 +1521,12 @@ internal static class ExtendedPlayerControl
|
||||
|
||||
target.SetRealKiller(killer, true);
|
||||
|
||||
if (target.PlayerId == Godfather.GodfatherTarget)
|
||||
{
|
||||
var realKiller = Main.PlayerStates.TryGetValue(target.PlayerId, out var state) ? state.RealKiller.ID.GetPlayer() ?? killer : killer;
|
||||
realKiller.RpcSetCustomRole(CustomRoles.Refugee);
|
||||
}
|
||||
|
||||
if (target.Is(CustomRoles.Jackal)) Jackal.Instances.Do(x => x.PromoteSidekick());
|
||||
|
||||
Main.DiedThisRound.Add(target.PlayerId);
|
||||
|
||||
@@ -333,7 +333,7 @@ public static class GameStartManagerPatch
|
||||
if (Timer <= 60) suffix = Utils.ColorString((int)Timer % 2 == 0 ? Color.yellow : Color.red, suffix);
|
||||
|
||||
if (Options.NoGameEnd.GetBool())
|
||||
suffix += Utils.ColorString(Color.yellow, $"\u26a0 <b>{GetString("NoGameEnd").ToUpper()}</b> \u26a0");
|
||||
suffix = suffix.Insert(0, Utils.ColorString(Color.yellow, $"{GetString("NoGameEnd").ToUpper()}") + Utils.ColorString(Color.gray, " | "));
|
||||
|
||||
TextMeshPro tmp = GameStartManagerStartPatch.GameCountdown;
|
||||
|
||||
@@ -530,4 +530,4 @@ public static class GameStartManagerBeginPatch
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -607,7 +607,6 @@ internal static class MurderPlayerPatch
|
||||
if (OverKiller.OverDeadPlayerList.Contains(target.PlayerId)) return;
|
||||
|
||||
PlayerControl killer = __instance; // Alternative variable
|
||||
if (target.PlayerId == Godfather.GodfatherTarget) killer.RpcSetCustomRole(CustomRoles.Refugee);
|
||||
|
||||
PlagueDoctor.OnAnyMurder();
|
||||
|
||||
@@ -1334,9 +1333,9 @@ internal static class FixedUpdatePatch
|
||||
|
||||
// Kick low level people
|
||||
if (!lowLoad && GameStates.IsLobby && !player.AmOwner && Options.KickLowLevelPlayer.GetInt() != 0 && (
|
||||
(player.Data.PlayerLevel != 0 && player.Data.PlayerLevel < Options.KickLowLevelPlayer.GetInt()) ||
|
||||
player.Data.FriendCode == string.Empty
|
||||
))
|
||||
(player.Data.PlayerLevel != 0 && player.Data.PlayerLevel < Options.KickLowLevelPlayer.GetInt()) ||
|
||||
player.Data.FriendCode == string.Empty
|
||||
))
|
||||
{
|
||||
LevelKickBufferTime--;
|
||||
|
||||
|
||||
Reference in new issue
Block a user