diff --git a/Patches/ChatCommandPatch.cs b/Patches/ChatCommandPatch.cs index e7402499d..e005f5389 100644 --- a/Patches/ChatCommandPatch.cs +++ b/Patches/ChatCommandPatch.cs @@ -1063,7 +1063,6 @@ internal class ChatCommands Utils.SendMessage("\n", player.PlayerId, settings.ToString()); Utils.SendMessage(sb.ToString(), player.PlayerId, string.Empty); - _ = new LateTask(() => { }, 0.5f, log: false); } else Utils.SendMessage(GetString("Message.CanNotUseInLobby"), player.PlayerId); diff --git a/Patches/HudPatch.cs b/Patches/HudPatch.cs index d0a950875..bac48b110 100644 --- a/Patches/HudPatch.cs +++ b/Patches/HudPatch.cs @@ -179,6 +179,9 @@ class HudManagerPatch switch (player.GetCustomRole()) { + case CustomRoles.Sentry: + __instance.PetButton?.OverrideText(GetString("SentryPetButtonText")); + break; case CustomRoles.FireWorks: __instance.AbilityButton?.OverrideText((Main.PlayerStates[player.PlayerId].Role as FireWorks).nowFireWorksCount == 0 ? GetString("FireWorksExplosionButtonText") : GetString("FireWorksInstallAtionButtonText")); break; diff --git a/Patches/HudSpritePatch.cs b/Patches/HudSpritePatch.cs index 042948193..349820ec2 100644 --- a/Patches/HudSpritePatch.cs +++ b/Patches/HudSpritePatch.cs @@ -58,6 +58,9 @@ public static class HudSpritePatch switch (player.GetCustomRole()) { + case CustomRoles.Sentry: + newPetButton = CustomButton.Get("Sentry"); + break; case CustomRoles.Commander: newAbilityButton = CustomButton.Get("Commander"); break; diff --git a/Resources/Images/Skills/Sentry.png b/Resources/Images/Skills/Sentry.png new file mode 100644 index 000000000..4aaf688c6 Binary files /dev/null and b/Resources/Images/Skills/Sentry.png differ diff --git a/Resources/Lang/en_US.json b/Resources/Lang/en_US.json index 5073a64c1..719b30ff9 100644 --- a/Resources/Lang/en_US.json +++ b/Resources/Lang/en_US.json @@ -2307,6 +2307,7 @@ "InfectiousKillButtonText": "Infect", "MonarchKillButtonText": "Knight", "FarseerKillButtonText": "Reveal", + "SentryPetButtonText": "Monitor", "DisabledBySettings": "Disabled by Settings", "Disabled": "Disabled", "FailToTrack": "Failed To Track", diff --git a/Resources/Lang/pt_BR.json b/Resources/Lang/pt_BR.json index cc840894a..fa5bf1719 100644 --- a/Resources/Lang/pt_BR.json +++ b/Resources/Lang/pt_BR.json @@ -2296,6 +2296,7 @@ "InfectiousKillButtonText": "Infectar", "MonarchKillButtonText": "Nomear", "FarseerKillButtonText": "Revelar", + "SentryPetButtonText": "Monitor", "DisabledBySettings": "Desabilitado pelas Configurações", "Disabled": "Desabilitado", "FailToTrack": "Falha ao Localizar", diff --git a/Resources/Lang/ru_RU.json b/Resources/Lang/ru_RU.json index 77f5b2fee..ea22d7f9e 100644 --- a/Resources/Lang/ru_RU.json +++ b/Resources/Lang/ru_RU.json @@ -2307,6 +2307,7 @@ "InfectiousKillButtonText": "Заразить", "MonarchKillButtonText": "Посвятить", "FarseerKillButtonText": "Раскрыть", + "SentryPetButtonText": "контролировать", "DisabledBySettings": "Выключено настройками", "Disabled": "Выключено", "FailToTrack": "Не удалось отследить",