mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 15:57:14 +03:00
Add 3.4 modules
This commit is contained in:
parent
569bb0d834
commit
2f8b04db87
@ -1 +1 @@
|
||||
Subproject commit 4e928021564105b18736e49eedca8e9e57ae13ea
|
||||
Subproject commit a493df6f6b558c4d43e61781c5c40024e3b38b43
|
@ -80,6 +80,10 @@ if __name__ == "__main__":
|
||||
add(modules, 'int_stellarbodydiscoveryscanner_intermediate', { 'mass': 2 })
|
||||
add(modules, 'int_stellarbodydiscoveryscanner_advanced', { 'mass': 2 })
|
||||
|
||||
# Missing
|
||||
add(modules, 'hpt_mining_subsurfdispmisle_fixed_small', { 'mass': 2 })
|
||||
add(modules, 'hpt_mining_subsurfdispmisle_fixed_medium', { 'mass': 4 })
|
||||
|
||||
modules = OrderedDict([(k,modules[k]) for k in sorted(modules)]) # sort for easier diffing
|
||||
cPickle.dump(modules, open('modules.p', 'wb'))
|
||||
|
||||
|
@ -277,10 +277,13 @@ fighter_rating_map = {
|
||||
|
||||
misc_internal_map = {
|
||||
('detailedsurfacescanner', 'tiny') : ('Detailed Surface Scanner', 'C'),
|
||||
('dockingcomputer', 'advanced') : ('Advanced Docking Computer', 'E'),
|
||||
('dockingcomputer', 'standard') : ('Standard Docking Computer', 'E'),
|
||||
'planetapproachsuite' : ('Planetary Approach Suite', 'I'),
|
||||
('stellarbodydiscoveryscanner', 'standard') : ('Basic Discovery Scanner', 'E'),
|
||||
('stellarbodydiscoveryscanner', 'intermediate') : ('Intermediate Discovery Scanner', 'D'),
|
||||
('stellarbodydiscoveryscanner', 'advanced') : ('Advanced Discovery Scanner', 'C'),
|
||||
'supercruiseassist' : ('Supercruise Assist', 'E'),
|
||||
}
|
||||
|
||||
standard_map = {
|
||||
@ -421,14 +424,11 @@ def lookup(module, ship_map, entitled=False):
|
||||
elif name[0]!='int':
|
||||
raise AssertionError('%s: Unknown prefix "%s"' % (module['id'], name[0]))
|
||||
|
||||
# Horizons Planetary Approach Suite - only listed in outfitting if the user is *playing* Horizons
|
||||
elif name[1] == 'planetapproachsuite':
|
||||
new['category'] = 'standard'
|
||||
new['name'] = 'Planetary Approach Suite'
|
||||
# Miscellaneous Class 1 - e.g. Int_PlanetApproachSuite, Int_StellarBodyDiscoveryScanner_Advanced, Int_DockingComputer_Standard
|
||||
elif name[1] in misc_internal_map:
|
||||
new['category'] = 'internal'
|
||||
new['name'], new['rating'] = misc_internal_map[name[1]]
|
||||
new['class'] = '1'
|
||||
new['rating'] = 'I'
|
||||
|
||||
# Miscellaneous Class 1 - e.g. Int_StellarBodyDiscoveryScanner_Advanced, Int_DockingComputer_Standard
|
||||
elif len(name) > 2 and (name[1],name[2]) in misc_internal_map:
|
||||
# Reported category is not necessarily helpful. e.g. "Int_DockingComputer_Standard" has category "utility"
|
||||
new['category'] = 'internal'
|
||||
|
Loading…
x
Reference in New Issue
Block a user