static */
| 104 | } |
| 105 | |
| 106 | /* static */ SQInteger ScriptEngine::GetReliability(EngineID engine_id) |
| 107 | { |
| 108 | if (!IsValidEngine(engine_id)) return -1; |
| 109 | if (GetVehicleType(engine_id) == ScriptVehicle::VT_RAIL && IsWagon(engine_id)) return -1; |
| 110 | |
| 111 | return ::ToPercent16(::Engine::Get(engine_id)->reliability); |
| 112 | } |
| 113 | |
| 114 | /* static */ SQInteger ScriptEngine::GetMaxSpeed(EngineID engine_id) |
| 115 | { |
nothing calls this directly
no test coverage detected