Prevent impossibly-high skill requirements for contracts.

This commit is contained in:
cim 2013-10-11 22:08:18 +01:00
parent 786a136bd0
commit 656e213beb
2 changed files with 8 additions and 0 deletions

View File

@ -121,6 +121,10 @@ this._addParcelToSystem = function(parcel)
{
parcel.skill = 0;
}
else if (parcel.skill > 70)
{
parcel.skill = 70;
}
this.$parcels.push(parcel);
this._updateMainStationInterfacesList();

View File

@ -123,6 +123,10 @@ this._addPassengerToSystem = function(passenger)
{
passenger.skill = 0;
}
else if (passenger.skill > 70)
{
passenger.skill = 70;
}
this.$passengers.push(passenger);
this._updateMainStationInterfacesList();