Skip to content

Commit

Permalink
Don't use both stations in lspenalty scoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 24, 2014
1 parent b829fe5 commit ab7715e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tradecalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,12 +515,12 @@ def getBestHops(self, routes, restrictTo=None):
tdenv.DEBUG3("No trade")
continue

# Calculate total K-lightseconds supercruise time to 1dp.
# Calculate total K-lightseconds supercruise time.
# This will amortize for the start/end stations
score = trade.gainCr
if lsPenalty:
supercruiseKls = int((srcStation.lsFromStar + dstStation.lsFromStar) / 100) / 10
score *= (1 - lsPenalty * supercruiseKls)
supercruiseKls = dstStation.lsFromStar / 1000
score *= (1 - (lsPenalty * supercruiseKls))
dstID = dstStation.ID
try:
# See if there is already a candidate for this destination
Expand Down

0 comments on commit ab7715e

Please sign in to comment.