Loading

Revision differences

Old revision #pkj6pnebdNew revision #p8fx5g6cz
10    local days_in_transit = WrightAI.GetEngineDaysInTransit(engine_id, fakedist);  10    local days_in_transit = WrightAI.GetEngineDaysInTransit(engine_id, fakedist);  
11    local income = capacity * AICargo.GetCargoIncome(cargo, fakedist, days_in_transit) - running_cost * days_in_transit / 365;  11    local income = capacity * AICargo.GetCargoIncome(cargo, fakedist, days_in_transit) - running_cost * days_in_transit / 365;  
12    return income;  12    return income;  
13} 13}
   14
   15/* Somewhere else */
   16(...)
   17    engine_list.Valuate(WrightAI.GetEngineRouteIncome, this.cargoId, dist);
   18(...)