This commit is contained in:
CWX
2025-02-03 14:26:53 +00:00
2 changed files with 2 additions and 6 deletions
@@ -26,16 +26,12 @@ public class ProfileSptCommand(
* spt profile level 20
* spt profile skill metabolism 10
*/
// TODO: Fix this shit as Valens doesn't know Regex.
protected Regex _commandRegex = new(
@"^spt profile (?<command>level|skill)((?<=.*skill) (?<skill>[\w]+))? (?<quantity>(?!0+)[0-9]+)$"
);
protected Regex _examineRegex = new(@"^spt profile (?<command>examine)");
//
protected SavedCommand _savedCommand = null;
public string GetCommand()
{
return "profile";
+2 -2
View File
@@ -1,4 +1,4 @@
using System.Text;
using System.Text;
using System.Text.RegularExpressions;
using System.Security.Cryptography;
using SptCommon.Annotations;
@@ -92,7 +92,7 @@ public class HashUtil
return Convert.ToHexString(sha1HashData).Replace("-", string.Empty);
}
throw new NotImplementedException("Provided hash algorithm is not supported.");
throw new NotImplementedException($"Provided hash algorithm: {algorithm} is not supported.");
}
/// <summary>