diff options
| author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-11-24 06:19:34 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-23 19:19:34 +0000 |
| commit | e1fe34c586f7050674a0e75c113b9306898e67ac (patch) | |
| tree | 7062ba67df95e509864ecd2f2cc11832967680ac | |
| parent | 0f87c51915f1885101e6b2008525846e9240e37b (diff) | |
| download | NotEnoughUpdates-REPO-e1fe34c586f7050674a0e75c113b9306898e67ac.tar.gz NotEnoughUpdates-REPO-e1fe34c586f7050674a0e75c113b9306898e67ac.tar.bz2 NotEnoughUpdates-REPO-e1fe34c586f7050674a0e75c113b9306898e67ac.zip | |
Add notice to museum file, stop items being in special category if already somewhere else (#1461)
| -rw-r--r-- | .github/scripts/updateMuseum.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/scripts/updateMuseum.py b/.github/scripts/updateMuseum.py index ce86de91..0e3f7806 100644 --- a/.github/scripts/updateMuseum.py +++ b/.github/scripts/updateMuseum.py @@ -124,11 +124,12 @@ if __name__ == '__main__': for item in items: itemId = item['id'] - if 'museum' in item: - special.add(itemId) - if 'museum_data' in item: processMuseumData(itemId, item['museum_data']) + continue + + if 'museum' in item: + special.add(itemId) for armorSet in armorSets: findAppropriateId(armorSet) @@ -140,6 +141,7 @@ if __name__ == '__main__': maxValues['total'] = maxValues['weapons'] + maxValues['armor'] + maxValues['rarities'] outputJson = { + "notice": "This file is automatically generated and should not be modified manually. Please edit the `updatedMuseum.py` file instead.", "weapons": sorted(list(weapons), key=lambda item: (itemToXp.get(item, 0), item)), "armor": sorted(list(armor), key=lambda item: (itemToXp.get(item, 0), item)), "rarities": sorted(list(rarities), key=lambda item: (itemToXp.get(item, 0), item)), |
