From db4d73bf4c7388fb5579e8bedcb17bb027b06e07 Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 12 Jan 2022 15:06:12 +0000 Subject: [PATCH] Add helper function --- .../Helpers/ItemTemplateHelper.cs | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/AssortValidator.Common/Helpers/ItemTemplateHelper.cs b/AssortValidator.Common/Helpers/ItemTemplateHelper.cs index 759df25..f96ed61 100644 --- a/AssortValidator.Common/Helpers/ItemTemplateHelper.cs +++ b/AssortValidator.Common/Helpers/ItemTemplateHelper.cs @@ -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"; + } } } \ No newline at end of file