Loading

Revision differences

Old revision #pjzwj6cj6New revision #pex5dlqpr
  1function WrightAI::GetEngineOptimalRealFakeDist(engine_id, days_in_transit)  
  2{  
  3    /* Assuming going in axis, it is the same as distancemanhattan */  
  4    local realfakedist = (AIEngine.GetMaxSpeed(engine_id) * 2 * 74 * days_in_transit / 256) / 16;  
  5    return realfakedist;  
  6}  
  7  
1function WrightAI::GetEngineOptimalDaysInTransit(engine_id, cargo, days_int, valuator = false)  8function WrightAI::GetEngineOptimalDaysInTransit(engine_id, cargo, days_int, valuator = false)  
2{  9{  
3    local distance = WrightAI.GetEngineOptimalRealFakeDist(engine_id, 1000);  10    local distance = WrightAI.GetEngineOptimalRealFakeDist(engine_id, 1000);