コード例 #1
0
 public static void Postfix(ExileController __instance, [HarmonyArgument(0)] GameData.Nested_1 exiled)
 {
     CustomRoles.TryGetValue(exiled.FMAAJCIEMEH, out var isJester);
     if (isJester)
     {
         __instance.ImpostorText.Text = "But they were the Jester.";
     }
 }
コード例 #2
0
ファイル: Jester.cs プロジェクト: ottomated/AmongUsJester
 public static void Postfix([HarmonyArgument(0)] GameData.Nested_1 player, ref PlayerVoteArea __result)
 {
     if (player.IBJBIALCEKB.AmOwner && CustomRoles.ContainsKey(player.FMAAJCIEMEH))
     {
         var role = CustomRoles[PlayerControl.LocalPlayer.PlayerId];
         if (role)
         {
             __result.NameText.Color = JesterRole.Color;
         }
     }
 }