1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 15:27:14 +03:00

[2176] Fix Outfitting Split

Fixes a bug introduced in e268c24
This commit is contained in:
David Sangrey 2024-03-23 11:29:24 -04:00
parent 4cf7ccb9e3
commit b25249ad8f
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -67,7 +67,7 @@ def lookup(module, ship_map, entitled=False) -> dict | None: # noqa: C901, CCR0
# Armour - e.g. Federation_Dropship_Armour_Grade2
if name[-2] == 'armour':
# Armour is ship-specific, and ship names can have underscores
ship_name, armour_grade = module["name"].lower().rsplit("_", 2)[0:2]
ship_name, armour, armour_grade = module["name"].lower().rsplit("_", 2)[0:3]
if ship_name not in ship_map:
raise AssertionError(f"Unknown ship: {ship_name}")
new['category'] = 'standard'