diff --git a/utils/Weapon.py b/utils/Weapon.py index 47b3604..dabc02f 100644 --- a/utils/Weapon.py +++ b/utils/Weapon.py @@ -60,7 +60,9 @@ def __init__(self, uuid: str, cost: int = 0, discount: int = 0, discountPersenta level['displayName'] = level['displayName'].replace(self.name, '').replace('\n', '').replace( '(', '').replace(')', '').replace(' / ', '').replace('/', '/').replace('(', '').replace(')', '').replace(':', '').replace(' - ', '').replace('。', '') for descr in dict(description_to_del).values(): - level['displayName'] = level['displayName'].replace(descr, '') + for subdescr in descr: + level['displayName'] = level['displayName'].replace( + subdescr, '') try: if level['levelItem'] == None: level['levelItem'] = levelup_info['EEquippableSkinLevelItem::VFX'] @@ -120,7 +122,6 @@ def __init__(self, uuid: str, name: str, cost: int = 0, discount: int = 0, disco self.per = discountPersentage for level in self.levels: level['uuid'] = level['uuid'].upper() - # level['displayName'] = level['displayName'].replace(self.name, '').replace('.', '').replace('。', '') level['displayName'] = level['displayName'].replace(self.name, '').replace('\n', '').replace( '(', '').replace(')', '').replace(' / ', '').replace('/', '/').replace('(', '').replace(')', '').replace(':', '').replace(' - ', '').replace('。', '') for descr in dict(description_to_del).values():