From ade7ef289d9f8bf428727de065283344fff11537 Mon Sep 17 00:00:00 2001 From: PHGaming121 <76562427+PHGaming121@users.noreply.github.com> Date: Fri, 12 Jan 2024 05:24:48 -0300 Subject: [PATCH] Add Strings to Weapon Master and fix string typo (#18) * Change to string and fix typo * add string (en_Us) * also add pt_Br string --- Resources/Lang/en_US.json | 3 ++- Resources/Lang/pt_BR.json | 1 + Roles/Neutral/WeaponMaster.cs | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Resources/Lang/en_US.json b/Resources/Lang/en_US.json index 6ae13b9b8..037f5c695 100644 --- a/Resources/Lang/en_US.json +++ b/Resources/Lang/en_US.json @@ -2748,6 +2748,7 @@ "Axe": "Axe", "Lance": "Lance", "Shield": "Shield", + "WMMode": "Mode: {0}", "Eclipse": "Eclipse", "EclipseInfo": "Your vision increases with each kill you get", "EclipseInfoLong": "(Neutral):\\nAs the Eclipse, your job is to kill everyone and be the last one standing to win.\\nYou start with a low vision, and with each kill you get, it slowly increases.", @@ -3489,4 +3490,4 @@ "ForceEnd": "Aborted", "EveryoneDied": "Everyone died", "ForceEndText": "Host has aborted the game" -} \ No newline at end of file +} diff --git a/Resources/Lang/pt_BR.json b/Resources/Lang/pt_BR.json index 4241d0e2a..2eeacbf28 100644 --- a/Resources/Lang/pt_BR.json +++ b/Resources/Lang/pt_BR.json @@ -2783,6 +2783,7 @@ "Axe": "Machado", "Lance": "Lança", "Shield": "Escudo", + "WMMode": "Modo: {0}", "Eclipse": "Eclipse", "EclipseInfo": "Sua visão aumenta com cada abate", "EclipseInfoLong": "(Neutros):\\nComo Eclipse, sua missão é matar todos e ser o ultimo sobrevivente.\\nVocê começa com uma visão baixa, e a cada abate, ela aumenta lentamente.", diff --git a/Roles/Neutral/WeaponMaster.cs b/Roles/Neutral/WeaponMaster.cs index f1f4d7998..7099f73ff 100644 --- a/Roles/Neutral/WeaponMaster.cs +++ b/Roles/Neutral/WeaponMaster.cs @@ -165,7 +165,7 @@ public static class WeaponMaster } public static string GetHudAndProgressText() { - return $"Mode: {ModeToText(Mode)}"; + return string.Format(GetString("WMMode"), ModeToText(Mode)); } public static string ModeToText(byte mode) { @@ -173,7 +173,7 @@ public static class WeaponMaster { 0 => GetString("Sword"), 1 => GetString("Axe"), - 2 => GetString("lance"), + 2 => GetString("Lance"), 3 => GetString("Shield"), _ => string.Empty, };