mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
some changes
This commit is contained in:
1 parent
ac31a8c79b
commit
736235fbb3
23 files changed
+195
-89
No files matched your search
@@ -106,7 +106,7 @@ internal static class ExtendedPlayerControl
|
||||
|
||||
public static void RpcSetVentInteraction(this PlayerControl player)
|
||||
{
|
||||
var ventilationSystem = ShipStatus.Instance.Systems[SystemTypes.Ventilation].TryCast<VentilationSystem>();
|
||||
var ventilationSystem = ShipStatus.Instance.Systems[SystemTypes.Ventilation].CastFast<VentilationSystem>();
|
||||
if (ventilationSystem != null) VentilationSystemDeterioratePatch.SerializeV2(ventilationSystem, player);
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ internal static class ExtendedPlayerControl
|
||||
(byte, byte) key = (player.PlayerId, GetClientById(clientId).Character.PlayerId);
|
||||
StartGameHostPatch.RpcSetRoleReplacer.RoleMap[key] = (role, StartGameHostPatch.RpcSetRoleReplacer.RoleMap[key].CustomRole);
|
||||
}
|
||||
|
||||
|
||||
if (AmongUsClient.Instance.ClientId == clientId)
|
||||
{
|
||||
player.SetRole(role);
|
||||
|
||||
Reference in new issue
Block a user