Avoid parcel contracts which are likely to expire before the player even enters the system.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5547 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Chris Morris 2012-11-27 20:08:44 +00:00
parent 5092374e77
commit 8a1a34a492

View File

@ -279,8 +279,9 @@ this._initialiseParcelContractsForSystem = function()
// time allowed for delivery is time taken by "fewest jumps"
// route, plus 10-110%, plus one day
parcel.deadline = clock.seconds + Math.floor((routeToDestination.time * 3600 * (1.1+(Math.random())))) + 86400;
// route, plus 10-110%, plus two days (because this is
// calculated on system entry, before the clock is adjusted)
parcel.deadline = clock.seconds + Math.floor((routeToDestination.time * 3600 * (1.1+(Math.random())))) + (86400*2);
// total payment is small for these items.
parcel.payment = Math.floor(