From 6c6a9891e6c4635459c9a93d0e167454e173dc65 Mon Sep 17 00:00:00 2001 From: data-bomb Date: Sun, 8 Sep 2024 08:14:30 -0700 Subject: [PATCH] Adjust Surrender Feedback Text - Adjusts the feedback text to account for Surrender_CommanderImmediate. If this is set to false then it will no longer say 1 commander is needed --- Si_SurrenderCommand/Si_SurrenderCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Si_SurrenderCommand/Si_SurrenderCommand.cs b/Si_SurrenderCommand/Si_SurrenderCommand.cs index a0aa453..e1d66f0 100644 --- a/Si_SurrenderCommand/Si_SurrenderCommand.cs +++ b/Si_SurrenderCommand/Si_SurrenderCommand.cs @@ -34,7 +34,7 @@ You should have received a copy of the GNU General Public License using UnityEngine; using System.Collections.Generic; -[assembly: MelonInfo(typeof(SurrenderCommand), "Surrender Command", "1.4.0", "databomb", "https://github.com/data-bomb/Silica")] +[assembly: MelonInfo(typeof(SurrenderCommand), "Surrender Command", "1.4.1", "databomb", "https://github.com/data-bomb/Silica")] [assembly: MelonGame("Bohemia Interactive", "Silica")] [assembly: MelonOptionalDependencies("Admin Mod")] @@ -132,7 +132,7 @@ public static void Command_Surrender(Player? callerPlayer, String args) // did the player already vote for surrender? if (votesToSurrender[team.Index].Contains(callerPlayer)) { - HelperMethods.SendChatMessageToPlayer(callerPlayer, HelperMethods.chatPrefix, " Already voted for surrender. ", MoreSurrenderVotesNeeded(team).ToString(), " more players or 1 commander needed."); + HelperMethods.SendChatMessageToPlayer(callerPlayer, HelperMethods.chatPrefix, " Already voted for surrender. ", MoreSurrenderVotesNeeded(team).ToString(), " more players " + (Pref_Surrender_CommanderImmediate.Value ? "or 1 commander" : "") + " needed."); return; }