mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 08:40:34 +03:00
Handle special Starter Sidewinder modules
This commit is contained in:
parent
234a40bc47
commit
deb0380e8c
@ -221,6 +221,7 @@ standard_map = {
|
|||||||
# 'planetapproachsuite' : handled separately
|
# 'planetapproachsuite' : handled separately
|
||||||
'powerdistributor' : 'Power Distributor',
|
'powerdistributor' : 'Power Distributor',
|
||||||
'powerplant' : 'Power Plant',
|
'powerplant' : 'Power Plant',
|
||||||
|
('powerplant', 'highheatweight') : 'Enhanced Power Plant', # Not seen
|
||||||
'sensors' : 'Sensors',
|
'sensors' : 'Sensors',
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -349,6 +350,8 @@ def lookup(module, ship_map, entitled=False):
|
|||||||
else:
|
else:
|
||||||
if name[1] == 'dronecontrol': # e.g. Int_DroneControl_Collection_Size1_Class1
|
if name[1] == 'dronecontrol': # e.g. Int_DroneControl_Collection_Size1_Class1
|
||||||
name.pop(0)
|
name.pop(0)
|
||||||
|
elif name[-1] == 'free': # Starter Sidewinder or Freagle modules - just treat them like vanilla modules
|
||||||
|
name.pop()
|
||||||
|
|
||||||
if name[1] in standard_map: # e.g. Int_Engine_Size2_Class1, Int_ShieldGenerator_Size8_Class5_Strong
|
if name[1] in standard_map: # e.g. Int_Engine_Size2_Class1, Int_ShieldGenerator_Size8_Class5_Strong
|
||||||
new['category'] = 'standard'
|
new['category'] = 'standard'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user