Skip to content

Commit

Permalink
1.3 Fixes
Browse files Browse the repository at this point in the history
Add new ships.
    DiamondBack
    DiamondBackXL
    Empire_Courier
Deal with demand better.
Ignore "Salvage"
  • Loading branch information
tlund committed Jun 5, 2015
1 parent 44a4ec6 commit 10657ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/edapi_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
'Anaconda': 'Anaconda',
'Asp': 'Asp',
'CobraMkIII': 'Cobra',
'DiamondBack': 'Diamondback Scout',
'DiamondBackXL': 'Diamondback Explorer',
'Eagle': 'Eagle',
'Empire_Courier': 'Imperial Courier',
'Empire_Fighter': 'Empire_Fighter',
'Empire_Trader': 'Clipper',
'Federation_Dropship': 'Dropship',
Expand All @@ -51,6 +54,7 @@
# Categories to ignore. Drones end up here. No idea what they are.
cat_ignore = [
'NonMarketable',
'Salvage',
]

# TD has different names for these.
Expand Down Expand Up @@ -500,7 +504,9 @@ def run(self):
commodity['stock'] = str(int(commodity['stock']))+demand

# If demand is zero, zero out the sell price.
if commodity['demand'] == 0:
if (commodity['demand'] == 0 or
commodity['demandBracket'] == 0
):
commodity['demand'] = '?'
commodity['sellPrice'] = 0
else:
Expand Down

0 comments on commit 10657ea

Please sign in to comment.