From fc92c73791b0be8c390fb8503c696e86ada95d1a Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 10 Sep 2021 13:29:58 +0100 Subject: [PATCH] Handle money items --- .../Helpers/ItemTemplateHelper.cs | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/QuestValidator.Common/Helpers/ItemTemplateHelper.cs b/QuestValidator.Common/Helpers/ItemTemplateHelper.cs index ac2b531..904aeea 100644 --- a/QuestValidator.Common/Helpers/ItemTemplateHelper.cs +++ b/QuestValidator.Common/Helpers/ItemTemplateHelper.cs @@ -33,6 +33,39 @@ namespace QuestValidator.Common public static Item GetTemplateById(string templateId) { + if (templateId == "5449016a4bdc2d6f028b456f") + { + return new Item + { + _id = templateId, + _name = "Roubles", + _parent = "543be5dd4bdc2deb348b4569", + _type = "" + }; + } + + if (templateId == "569668774bdc2da2298b4568") + { + return new Item + { + _id = templateId, + _name = "Euros", + _parent = "543be5dd4bdc2deb348b4569", + _type = "" + }; + } + + if (templateId == "5696686a4bdc2da3298b456a") + { + return new Item + { + _id = templateId, + _name = "Dollars", + _parent = "543be5dd4bdc2deb348b4569", + _type = "" + }; + } + if (Items.ContainsKey(templateId)) { return Items[templateId];