IdleClock
class IdleClock() : Component()on_input<DeveloperCommandInput> { player -> if (name != "idle") return@on_input val clock = player.getComponent<IdleClock>() player.message("You have been idle for ${clock.idleCycles / IdleClock.MINUTE_CYCLES} minutes.")}idleCycles
Section titled “idleCycles”val idleCycles: Intfun touch()backdate
Section titled “backdate”fun backdate(cycles: Int)MINUTE_CYCLES
Section titled “MINUTE_CYCLES”const val MINUTE_CYCLES: Int = 60_000 / GraphicDurations.GAME_CYCLE_MS