From eb07e5e12d356c94055e2175654450ba8548bec6 Mon Sep 17 00:00:00 2001 From: Gurkengewuerz Date: Wed, 25 Oct 2023 01:39:53 +0200 Subject: [PATCH] feat: fix description --- assets/translation/FurnitureDataTranslator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/translation/FurnitureDataTranslator.py b/assets/translation/FurnitureDataTranslator.py index a7231db..b8e4df0 100644 --- a/assets/translation/FurnitureDataTranslator.py +++ b/assets/translation/FurnitureDataTranslator.py @@ -22,6 +22,8 @@ with open('gamedata/furnidata.json', 'r', encoding='utf-8') as f: "description": furnitype['description'], "specialtype": furnitype['specialtype'], } + if str(furniture_dict[classname]['description']).endswith("desc"): + furniture_dict[classname]['description'] = "" with open('gamedata/productdata.json', 'r', encoding='utf-8') as f: product_data = json.load(f) @@ -31,6 +33,8 @@ with open('gamedata/productdata.json', 'r', encoding='utf-8') as f: "name": product['name'], "description": product['description'], } + if str(furniture_dict[classname]['description']).endswith("desc"): + furniture_dict[classname]['description'] = "" orig_furniture_data = {} # Load the JSON file