Jump to content

Missile Flight Time

From pr0game Wiki
This is the approved revision of this page, as well as being the most recent.
En/Raketenflugzeit

Missile Flight Time

Interceptor Missiles and Interplanetary Missiles don't fly according to the normal Flight Time formula, but use their own, simpler calculation — src/Core/FleetFunctions.php (getMIPDuration()). Unlike normal fleets, neither ship speed nor galaxy or planet position play any role here — only the system distance.

Formula

Distance (systems) = distance between origin and target system

 Ring universe (galaxy_type 2): fixed distance 2
 Linear universe (galaxy_type 1): min(system distance, max_system − system distance)
 Standard: direct system distance

Flight time = max(round((30 + 60 * distance) / game speed), 5)

The game speed is the same fleet_speed / 2500 used for normal Flight Time. The minimum flight time is also the same fixed constant MIN_FLEET_TIME = 5 seconds.

All current pr0game universes are configured as linear (galaxy_type = 1) — so the min(...) branch applies, not a fixed ring distance.

Universe-Specific Peculiarities

Since the formula depends solely on the system distance (max_system), the same peculiarity as with normal Flight Time applies here: Universe 7 has only half as many systems with max_system = 200 compared to all other universes (max_system = 400) — the maximum possible system distance, and thus the maximum missile flight time, is structurally smaller in Universe 7.