Allow faster game speeds (#306)

This commit is contained in:
2024-07-27 01:06:08 +09:00
committed by GitHub
parent 2cb33fc4b5
commit 8b30e64b35

View File

@@ -7,7 +7,7 @@ local Commands = require 'expcore.commands' --- @dep expcore.commands
require 'config.expcore.command_general_parse' require 'config.expcore.command_general_parse'
Commands.new_command('game-speed', 'Set game speed') Commands.new_command('game-speed', 'Set game speed')
:add_param('amount', 'number-range', 0.2, 1) :add_param('amount', 'number-range', 0.2, 8)
:set_flag('admin_only') :set_flag('admin_only')
:register(function(player, amount) :register(function(player, amount)
game.speed = math.round(amount, 3) game.speed = math.round(amount, 3)