Add helper function
This commit is contained in:
parent
e0a194cd61
commit
db4d73bf4c
@ -74,5 +74,31 @@ namespace AssortValidator.Common
|
||||
LoggingHelpers.LogToConsole($"Could not locate item template with id {templateId}", ConsoleColor.Red);
|
||||
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";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user