mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
a
This commit is contained in:
1 parent
6b40ca1920
commit
1cacb86478
2 files changed
+3
-3
No files matched your search
@@ -277,7 +277,7 @@ public static class CaptureTheFlag
|
||||
{
|
||||
PlayerControl pc = key.GetPlayer();
|
||||
|
||||
if (pc != null && outfit != null)
|
||||
if (pc && outfit != null)
|
||||
Utils.RpcChangeSkin(pc, outfit);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -644,7 +644,7 @@ public static class KingOfTheZones
|
||||
}
|
||||
}
|
||||
|
||||
void ResetSkins() => DefaultOutfits.Select(x => (pc: x.Key.GetPlayer(), outfit: x.Value)).DoIf(x => x.pc != null && x.outfit != null, x => Utils.RpcChangeSkin(x.pc, x.outfit));
|
||||
void ResetSkins() => DefaultOutfits.Select(x => (pc: x.Key.GetPlayer(), outfit: x.Value)).DoIf(x => x.pc && x.outfit != null, x => Utils.RpcChangeSkin(x.pc, x.outfit));
|
||||
}
|
||||
|
||||
public static bool IsNotInLocalPlayersTeam(PlayerControl pc)
|
||||
@@ -897,7 +897,7 @@ public static class KingOfTheZones
|
||||
{
|
||||
if (tie) return;
|
||||
GameGoing = false;
|
||||
DefaultOutfits.Select(x => (pc: x.Key.GetPlayer(), outfit: x.Value)).DoIf(x => x.pc != null && x.outfit != null, x => Utils.RpcChangeSkin(x.pc, x.outfit));
|
||||
DefaultOutfits.Select(x => (pc: x.Key.GetPlayer(), outfit: x.Value)).DoIf(x => x.pc && x.outfit != null, x => Utils.RpcChangeSkin(x.pc, x.outfit));
|
||||
KOTZTeam winner = Points.GetKeyByValue(highestPoints);
|
||||
CustomWinnerHolder.WinnerIds = PlayerTeams.Where(x => x.Value == winner).Select(x => x.Key).ToHashSet();
|
||||
Color color = winner.GetColor();
|
||||
|
||||
Reference in new issue
Block a user