Old revision #pjzwj6cj6 | New revision #pex5dlqpr | ||
---|---|---|---|
1 | function 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 | |||
1 | function WrightAI::GetEngineOptimalDaysInTransit(engine_id, cargo, days_int, valuator = false) | 8 | function 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); |