minor fix

This commit is contained in:
erik 2025-05-08 19:39:29 +00:00
parent 4e2bb68e86
commit aede9d8bdd
4 changed files with 12 additions and 4 deletions

View file

@ -22,7 +22,7 @@ namespace MosswartMassacre
{
// Remove the /mm prefix and trim
string[] args = commandText.Length > 3
? commandText.Substring(3).Trim().Split(' ', StringSplitOptions.RemoveEmptyEntries)
? commandText.Substring(3).Trim().Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
: Array.Empty<string>();
if (args.Length == 0)
{

View file

@ -48,6 +48,9 @@
<EmbedInteropTypes>False</EmbedInteropTypes>
<HintPath>lib\Decal.Interop.Inject.dll</HintPath>
</Reference>
<Reference Include="System.Configuration">
<HintPath>$(FrameworkPathOverride)\System.Configuration.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>

View file

@ -175,7 +175,10 @@ namespace MosswartMassacre
}
private bool IsKilledByMeMessage(string text)
/// <summary>
/// Determines if the chat text indicates a kill by this character.
/// </summary>
public static bool IsKilledByMeMessage(string text)
{
// Check each precompiled kill message pattern
foreach (var regex in KillRegexes)
@ -185,7 +188,10 @@ namespace MosswartMassacre
}
return false;
}
private bool IsRareDiscoveryMessage(string text, out string rareTextOnly)
/// <summary>
/// Determines if the chat text indicates a rare discovery by this character.
/// </summary>
public static bool IsRareDiscoveryMessage(string text, out string rareTextOnly)
{
rareTextOnly = null;

View file

@ -25,7 +25,6 @@ namespace MosswartMassacre
private bool _remoteCommandsEnabled = false;
private bool _rareMetaEnabled = true;
private bool _httpServerEnabled = false;
private bool _telemetryEnabled = false;
private bool _webSocketEnabled = false;
private string _charTag = "default";