From 5624e1c88e4d6583231c4582218fc224b92ddd3b Mon Sep 17 00:00:00 2001 From: ivy <119665497+lvlvllvlvllvlvl@users.noreply.github.com> Date: Sat, 11 Nov 2023 10:08:11 +0700 Subject: [PATCH] Repopulate cosmetic_type and cosmetic_theme --- PyPoE/cli/exporter/wiki/parsers/item.py | 29 ++++++++++++++----------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/PyPoE/cli/exporter/wiki/parsers/item.py b/PyPoE/cli/exporter/wiki/parsers/item.py index 5f0c1e9b..29f46b8a 100644 --- a/PyPoE/cli/exporter/wiki/parsers/item.py +++ b/PyPoE/cli/exporter/wiki/parsers/item.py @@ -3138,20 +3138,23 @@ def _currency_extra(self, infobox, base_item_type, currency): ) _type_microtransaction = _type_factory( - data_file="BaseItemTypes.dat64", + data_file="CurrencyItems.dat64", data_mapping=( - # This field was removed in 3.17. - # ('ItemShopType', { - # 'template': 'cosmetic_type', - # 'format': lambda v: v['Name'], - # 'condition': lambda v: v, - # }), - # This field was also removed in 3.17. - # ('ItemThemesKey', { - # 'template': 'cosmetic_theme', - # 'format': lambda v: v['Name'], - # 'condition': lambda v: v, - # }), + ( + "CosmeticTypeName", + { + "template": "cosmetic_type", + "condition": lambda v: v, + }, + ), + ( + "ShopTagKey", + { + "template": "cosmetic_theme", + "format": lambda v: v["Name"], + "condition": lambda v: v, + }, + ), ), )