Add helper function

This commit is contained in:
Chomp 2022-01-12 15:06:12 +00:00
parent e0a194cd61
commit db4d73bf4c

View File

@ -74,5 +74,31 @@ namespace AssortValidator.Common
LoggingHelpers.LogToConsole($"Could not locate item template with id {templateId}", ConsoleColor.Red); LoggingHelpers.LogToConsole($"Could not locate item template with id {templateId}", ConsoleColor.Red);
return null; return null;
} }
public static bool IsMoney(string tplId)
{
if (tplId == "5449016a4bdc2d6f028b456f")
{
return true;
}
if (tplId == "569668774bdc2da2298b4568")
{
return true;
}
if (tplId == "5696686a4bdc2da3298b456a")
{
return true;
}
return false;
}
public static string GetNameById(string id)
{
return Items.ContainsKey(id) ? Items[id]._name : "Unknown item";
}
} }
} }