mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-19 15:51:58 +00:00
a
This commit is contained in:
1 parent
4f96739606
commit
5e2cc0fbea
3 files changed
+4
-4
No files matched your search
@@ -43,7 +43,7 @@ public class Main : BasePlugin
|
||||
public const string PluginGuid = "com.gurge44.endlesshostroles";
|
||||
public const string PluginVersion = "8.0.0";
|
||||
public const string PluginDisplayVersion = "8.0.0";
|
||||
public const bool TestBuild = true;
|
||||
public const int TestBuildNumber = 2; // 0 = Release
|
||||
|
||||
public const string NeutralColor = "#ffab1b";
|
||||
public const string ImpostorColor = "#ff1919";
|
||||
@@ -1012,7 +1012,7 @@ public class Main : BasePlugin
|
||||
Modules.AutoHaunt.Start();
|
||||
|
||||
Logger.Msg("========= EHR loaded! =========", "Plugin Load");
|
||||
Logger.Msg($"EHR Version: {PluginVersion}, Test Build: {TestBuild}", "Plugin Load");
|
||||
Logger.Msg($"EHR Version: {PluginVersion}, Test Build Number: {TestBuildNumber}", "Plugin Load");
|
||||
};
|
||||
|
||||
try
|
||||
|
||||
@@ -1124,7 +1124,7 @@ internal static class ChatCommands
|
||||
PollCommand(player, msg, msg.Split(' '));
|
||||
}
|
||||
|
||||
public static void PresetPollCommand(PlayerControl player, string text, string[] args)
|
||||
private static void PresetPollCommand(PlayerControl player, string text, string[] args)
|
||||
{
|
||||
var presetConfigs = new[] { Main.Preset1, Main.Preset2, Main.Preset3, Main.Preset4, Main.Preset5, Main.Preset6, Main.Preset7, Main.Preset8, Main.Preset9, Main.Preset10, Main.Preset11, Main.Preset12, Main.Preset13, Main.Preset14, Main.Preset15, Main.Preset16, Main.Preset17, Main.Preset18, Main.Preset19, Main.Preset20 };
|
||||
string presetNames = string.Join(' ', presetConfigs.Select((cfg, i) => (cfg.Value == (string)cfg.DefaultValue ? GetString($"Preset_{i + 1}") : cfg.Value).Replace(' ', '_')));
|
||||
|
||||
@@ -138,7 +138,7 @@ internal static class VersionShowerStartPatch
|
||||
{
|
||||
#pragma warning disable CS0162 // Unreachable code detected
|
||||
// ReSharper disable once HeuristicUnreachableCode
|
||||
string testBuildIndicator = Main.TestBuild ? " <#ff0000>TEST</color>" : string.Empty;
|
||||
string testBuildIndicator = Main.TestBuildNumber > 0 ? $" <#ff0000>TEST <#bb0000>{Main.TestBuildNumber}</color></color>" : string.Empty;
|
||||
#pragma warning restore CS0162 // Unreachable code detected
|
||||
|
||||
Main.CredentialsText = $"<color={Main.ModColor}>Endless Host Roles</color> v{Main.PluginDisplayVersion}{testBuildIndicator} <color=#a54aff>by</color> <color=#ffff00>Gurge44</color>";
|
||||
|
||||
Reference in new issue
Block a user