1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-09 20:02:11 +03:00

Don't send Planetary Approach Suite to EDDN

This commit is contained in:
Jonathan Harris 2016-03-25 03:51:17 +00:00
parent 4ffa54365d
commit a0e65e0bd8

View File

@ -250,8 +250,7 @@ def lookup(module, ship_map, entitled=False):
# return None # return None
# Shouldn't be listing player-specific paid stuff in outfitting, other than Horizons # Shouldn't be listing player-specific paid stuff in outfitting, other than Horizons
elif not entitled and module.get('sku') and module['sku'] != 'ELITE_HORIZONS_V_PLANETARY_LANDINGS': elif not entitled and module.get('sku') and (module['sku'] != 'ELITE_HORIZONS_V_PLANETARY_LANDINGS' or name[1] == 'planetapproachsuite'):
# raise AssertionError('%s: Unexpected sku "%s"' % (module['id'], module['sku']))
return None return None
# Hardpoints - e.g. Hpt_Slugshot_Fixed_Medium # Hardpoints - e.g. Hpt_Slugshot_Fixed_Medium
@ -332,12 +331,12 @@ def lookup(module, ship_map, entitled=False):
new['enabled'], new['priority'] = module['on'], module['priority'] # priority is zero-based new['enabled'], new['priority'] = module['on'], module['priority'] # priority is zero-based
# Entitlements # Entitlements
if not entitled or not module.get('sku'): if not module.get('sku'):
pass pass
elif module['sku'].startswith('ELITE_SPECIFIC_V_POWER'): elif module['sku'].startswith('ELITE_SPECIFIC_V_POWER'):
new['entitlement'] = 'powerplay' new['entitlement'] = 'powerplay'
elif module['sku'] != 'ELITE_HORIZONS_V_PLANETARY_LANDINGS': else:
assert False, '%s: Unknown sku "%s"' % (module['id'], module['sku']) assert module['sku'] == 'ELITE_HORIZONS_V_PLANETARY_LANDINGS', '%s: Unknown sku "%s"' % (module['id'], module['sku'])
# Extra module data # Extra module data
key = (new['name'], 'ship' in new and companion.ship_map.get(name[0]) or None, new['class'], new['rating']) key = (new['name'], 'ship' in new and companion.ship_map.get(name[0]) or None, new['class'], new['rating'])