feat: fix description

This commit is contained in:
Niklas 2023-10-25 01:39:53 +02:00
parent a7d9a8bab9
commit eb07e5e12d

View File

@ -22,6 +22,8 @@ with open('gamedata/furnidata.json', 'r', encoding='utf-8') as f:
"description": furnitype['description'], "description": furnitype['description'],
"specialtype": furnitype['specialtype'], "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: with open('gamedata/productdata.json', 'r', encoding='utf-8') as f:
product_data = json.load(f) product_data = json.load(f)
@ -31,6 +33,8 @@ with open('gamedata/productdata.json', 'r', encoding='utf-8') as f:
"name": product['name'], "name": product['name'],
"description": product['description'], "description": product['description'],
} }
if str(furniture_dict[classname]['description']).endswith("desc"):
furniture_dict[classname]['description'] = ""
orig_furniture_data = {} orig_furniture_data = {}
# Load the JSON file # Load the JSON file