Move sprint time fix to settings

This commit is contained in:
rubenwardy 2018-01-27 00:07:07 +00:00
parent d5f6296c11
commit c371887f68
2 changed files with 2 additions and 2 deletions

View file

@ -1,12 +1,12 @@
give_initial_stuff = true give_initial_stuff = true
enable_pvp = true enable_pvp = true
mg_name = singlenode mg_name = singlenode
map_generation_limit = 160
vote.kick_vote = false vote.kick_vote = false
barrier = 106 barrier = 106
regen_interval = 6 regen_interval = 6
regen_amount = 1 regen_amount = 1
random_messages_interval = 60 random_messages_interval = 60
sprint_stamina = 5
# #
# CTF_PVP_ENGINE # CTF_PVP_ENGINE

View file

@ -4,7 +4,7 @@
-- Config, see README.md -- Config, see README.md
local MOD_WALK = tonumber(minetest.settings:get("sprint_speed") or 1.8) local MOD_WALK = tonumber(minetest.settings:get("sprint_speed") or 1.8)
local MOD_JUMP = tonumber(minetest.settings:get("sprint_jump") or 1.1) local MOD_JUMP = tonumber(minetest.settings:get("sprint_jump") or 1.1)
local STAMINA_MAX = tonumber(minetest.settings:get("sprint_stamina") or 5) local STAMINA_MAX = tonumber(minetest.settings:get("sprint_stamina") or 20)
local HEAL_RATE = tonumber(minetest.settings:get("sprint_heal_rate") or 0.5) local HEAL_RATE = tonumber(minetest.settings:get("sprint_heal_rate") or 0.5)
local MIN_SPRINT = tonumber(minetest.settings:get("sprint_min") or 0.5) local MIN_SPRINT = tonumber(minetest.settings:get("sprint_min") or 0.5)
local SPRINT_MODIFIERS = { local SPRINT_MODIFIERS = {