Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1c52fa7 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Avoid accumulating too many flags on single-body systems.

- Increase sightseeing time to 15 seconds
- Increase launch thrust time to 5 seconds
- Decrease flag lifetime to 15 minutes

Change-Id: I2e85142a1d56acb684ff1750094f61b9e230444f
Fixes: 320695719
Test: adb shell am start -n com.android.egg/.landroid.MainActivity
Flag: com.android.egg.flags.flag_flag
parent a956e72a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -21,7 +21,8 @@ import kotlin.math.sign

class Autopilot(val ship: Spacecraft, val universe: Universe) : Entity {
    val BRAKING_TIME = 5f
    val SIGHTSEEING_TIME = 10f
    val SIGHTSEEING_TIME = 15f
    val LAUNCH_THRUST_TIME = 5f
    val STRATEGY_MIN_TIME = 0.5f

    var enabled = false
@@ -73,7 +74,7 @@ class Autopilot(val ship: Spacecraft, val universe: Universe) : Entity {

                strategy = "LAUNCHING"
                debug = ""
                nextStrategyTime = sim.now + 2f
                nextStrategyTime = sim.now + LAUNCH_THRUST_TIME
            }
        } else {
            // select new target
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ const val CRAFT_SPEED_LIMIT = 5_000f
const val MAIN_ENGINE_ACCEL = 1000f // thrust effect, pixels per second squared
const val LAUNCH_MECO = 2f // how long to suspend gravity when launching

const val LANDING_REMOVAL_TIME = 3600f // one hour of simulation time
const val LANDING_REMOVAL_TIME = 60 * 15f // 15 min of simulation time

const val SCALED_THRUST = true