예제 #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
 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;
         }
     }
 }