Skip to content

Commit

Permalink
Adjust Surrender Feedback Text
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
data-bomb committed Sep 8, 2024
1 parent 744822d commit 6c6a989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Si_SurrenderCommand/Si_SurrenderCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 6c6a989

Please sign in to comment.