mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-05-30 07:09:39 +03:00
Move edshipyard.py slot_map into data.py
This commit is contained in:
parent
02d1a8cf45
commit
b961ca814a
26
data.py
26
data.py
@ -25,8 +25,26 @@ companion_category_map = {
|
|||||||
# Map Coriolis's names to names displayed in the in-game shipyard.
|
# Map Coriolis's names to names displayed in the in-game shipyard.
|
||||||
coriolis_ship_map = {
|
coriolis_ship_map = {
|
||||||
'Cobra Mk III': 'Cobra MkIII',
|
'Cobra Mk III': 'Cobra MkIII',
|
||||||
'Cobra Mk IV' : 'Cobra MkIV',
|
'Cobra Mk IV': 'Cobra MkIV',
|
||||||
'Krait Mk II' : 'Krait MkII',
|
'Krait Mk II': 'Krait MkII',
|
||||||
'Viper' : 'Viper MkIII',
|
'Viper': 'Viper MkIII',
|
||||||
'Viper Mk IV' : 'Viper MkIV',
|
'Viper Mk IV': 'Viper MkIV',
|
||||||
|
}
|
||||||
|
|
||||||
|
# Map API slot names to E:D Shipyard slot names
|
||||||
|
edshipyard_slot_map = {
|
||||||
|
'hugehardpoint': 'H',
|
||||||
|
'largehardpoint': 'L',
|
||||||
|
'mediumhardpoint': 'M',
|
||||||
|
'smallhardpoint': 'S',
|
||||||
|
'tinyhardpoint': 'U',
|
||||||
|
'armour': 'BH',
|
||||||
|
'powerplant': 'RB',
|
||||||
|
'mainengines': 'TM',
|
||||||
|
'frameshiftdrive': 'FH',
|
||||||
|
'lifesupport': 'EC',
|
||||||
|
'powerdistributor': 'PC',
|
||||||
|
'radar': 'SS',
|
||||||
|
'fueltank': 'FS',
|
||||||
|
'military': 'MC',
|
||||||
}
|
}
|
||||||
|
@ -8,43 +8,13 @@ import re
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
from config import config
|
from config import config
|
||||||
|
from data import edshipyard_slot_map as slot_map
|
||||||
import outfitting
|
import outfitting
|
||||||
import util_ships
|
import util_ships
|
||||||
|
|
||||||
from typing import Dict, Union, List
|
from typing import Dict, Union, List
|
||||||
__Module = Dict[str, Union[str, List[str]]]
|
__Module = Dict[str, Union[str, List[str]]]
|
||||||
|
|
||||||
# Map API ship names to E:D Shipyard ship names
|
|
||||||
ship_map = util_ships.ship_map.copy()
|
|
||||||
|
|
||||||
ship_map.update(
|
|
||||||
{
|
|
||||||
'cobramkiii': 'Cobra Mk III',
|
|
||||||
'cobramkiv' : 'Cobra Mk IV',
|
|
||||||
'viper' : 'Viper',
|
|
||||||
'viper_mkiv': 'Viper Mk IV',
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# Map API slot names to E:D Shipyard slot names
|
|
||||||
slot_map = {
|
|
||||||
'hugehardpoint' : 'H',
|
|
||||||
'largehardpoint' : 'L',
|
|
||||||
'mediumhardpoint' : 'M',
|
|
||||||
'smallhardpoint' : 'S',
|
|
||||||
'tinyhardpoint' : 'U',
|
|
||||||
'armour' : 'BH',
|
|
||||||
'powerplant' : 'RB',
|
|
||||||
'mainengines' : 'TM',
|
|
||||||
'frameshiftdrive' : 'FH',
|
|
||||||
'lifesupport' : 'EC',
|
|
||||||
'powerdistributor' : 'PC',
|
|
||||||
'radar' : 'SS',
|
|
||||||
'fueltank' : 'FS',
|
|
||||||
'military' : 'MC',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Ship masses
|
# Ship masses
|
||||||
# TODO: prefer something other than pickle for this storage (dev readability, security)
|
# TODO: prefer something other than pickle for this storage (dev readability, security)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user