Skip to content

Commit

Permalink
Added station list to ships
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Aug 22, 2014
1 parent b54b9fa commit 3b2a0d1
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,28 +142,20 @@ def str(self):
def __repr__(self):
return '%s %s' % (self.system.str().upper(), self.station)

class Ship(namedtuple('Ship', [ 'name', 'capacity', 'maxJump', 'maxJumpFull' ])):
class Ship(namedtuple('Ship', [ 'name', 'capacity', 'maxJump', 'maxJumpFull', 'stations' ])):
pass

class TradeDB(object):
normalizeRe = re.compile(r'[ \t\'\"\.\-_]')
ships = [
# Aulin, Beagle2
Ship('Sidewinder', 4, 8.13, 7.25),
# Aulin, Azeban
Ship('Eagle', 6, 6.59, 6.00),
# Aulin, Beagle2
Ship('Hauler', 16, 8.74, 6.10),
# Aulin, Beagle 2, Chango
Ship('Viper', 8, 13.49, 9.16),
# Aulin, Chango
Ship('Cobra', 36, 9.94, 7.30),
# Aulin, Chango, Vonarburg
Ship('Lakon Type 6', 100, 29.36, 15.64),
# Chango
Ship('Lakon Type 9', 440, 18.22, 13.34),
# Loius De Lacaille
Ship('Anaconda', 228, 19.70, 17.60),
Ship('Sidewinder', 4, 8.13, 7.25, [ 'Aulin Enterprise', 'Beagle2' ]),
Ship('Eagle', 6, 6.59, 6.00, [ 'Aulin Enterprise', 'Beagle2' ]),
Ship('Hauler', 16, 8.74, 6.10, [ 'Aulin Enterprise', 'Beagle2' ]),
Ship('Viper', 8, 13.49, 9.16, [ 'Aulin Enterprise', 'Beagle2', 'Chango Dock' ]),
Ship('Cobra', 36, 9.94, 7.30, [ 'Aulin Enterprise', 'Chango Dock' ]),
Ship('Lakon Type 6', 100, 29.36, 15.64, [ 'Aulin Enterprise', 'Chango Dock', 'Vonarburg Co-op' ]),
Ship('Lakon Type 9', 440, 18.22, 13.34, [ 'Chango Dock' ]),
Ship('Anaconda', 228, 19.70, 17.60, [ 'Louis De Lacaille Prospect' ]),
]

def __init__(self, path='.\\TradeDangerous.accdb', debug=0):
Expand Down

0 comments on commit 3b2a0d1

Please sign in to comment.