public static void Postfix(PlayerControl __instance) { if (AmongUsClient.Instance.GameState != InnerNet.InnerNetClient.GameStates.Started) { return; } // Child and Morphling shrink playerSizeUpdate(__instance); if (PlayerControl.LocalPlayer == __instance) { // Update player outlines setBasePlayerOutlines(); // Update Role Description Helpers.refreshRoleDescription(__instance); // Update Player Info updatePlayerInfo(); // Time Master bendTimeUpdate(); // Morphling morphlingSetTarget(); // Medic medicSetTarget(); // Shifter shifterSetTarget(); // Sheriff sheriffSetTarget(); // Detective detectiveUpdateFootPrints(); // Tracker trackerSetTarget(); // Vampire vampireSetTarget(); Garlic.UpdateAll(); // Eraser eraserSetTarget(); // Engineer engineerUpdate(); // Tracker trackerUpdate(); // Jackal jackalSetTarget(); // Sidekick sidekickSetTarget(); // Impostor impostorSetTarget(); // Warlock warlockSetTarget(); // Check for sidekick promotion on Jackal disconnect sidekickCheckPromotion(); // SecurityGuard securityGuardSetTarget(); // Arsonist arsonistSetTarget(); } }
public static void Postfix(PlayerControl __instance) { if (AmongUsClient.Instance.GameState != InnerNet.InnerNetClient.CJDCOJJNIGL.Started) { return; } // Update Role Description Helpers.refreshRoleDescription(__instance); // Child and Morphling shrink playerSizeUpdate(__instance); if (PlayerControl.LocalPlayer == __instance) { // Time Master bendTimeUpdate(); // Morphling morphlingSetTarget(); // Medic medicSetTarget(); // Shifter shifterSetTarget(); // Sheriff sheriffSetTarget(); // Detective detectiveUpdateFootPrints(); // Tracker trackerSetTarget(); // Vampire vampireSetTarget(); Garlic.UpdateAll(); // Eraser eraserSetTarget(); // Engineer engineerUpdate(); // Tracker trackerUpdate(); // Jackal jackalSetTarget(); // Sidekick sidekickSetTarget(); // Impostor impostorSetTarget(); } }