Handle money items

This commit is contained in:
Chomp 2021-09-10 13:29:58 +01:00
parent 3493f27b6f
commit fc92c73791

View File

@ -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];