From 583040c63addbadc2b29446a134239c5ab9664f6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 14 Feb 2015 02:37:03 +0100 Subject: [PATCH] Set regen_timer to 0.2 --- README.txt | 4 ++-- init.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.txt b/README.txt index e020397..048d74b 100644 --- a/README.txt +++ b/README.txt @@ -9,7 +9,7 @@ Description This mod adds basic support for mana to Minetest. It provides a simple API to set, get, add and subtract the mana (and maximum) mana of any player. The mod also automatically allows for regenerating Mana automatically. -By default, each player spawns with 0/200 mana, and regenerates 1 mana per tenth of a second. All +By default, each player spawns with 0/200 mana, and regenerates 1 mana per fifth of a second. All these values can be configured with the server settings (`minetest.conf`) and it is highly advised to do so if you plan to integrate this mod into a subgame. @@ -28,7 +28,7 @@ This mod can be configured with minetest.conf! The following settings are accept * `mana_default_max`: Initial max. mana given to new players. Default: `200`. This value must be non-negative. * `mana_default_regen`: Initial regenerated mana per “mana tick”. Default: `1`. This value must be non-negative. * `mana_regen_timer`: The length of a “mana tick” in seconds. Each player will get his/her mana increased by the current - regen value per mana tick. Default: `0.1`. This value must be positive, also try to avoid very small values + regen value per mana tick. Default: `0.2`. This value must be positive, also try to avoid very small values as those could probably stress your machine a lot. diff --git a/init.lua b/init.lua index 268b665..e3c8644 100644 --- a/init.lua +++ b/init.lua @@ -15,7 +15,7 @@ mana.playerlist = {} mana.settings = {} mana.settings.default_max = 200 mana.settings.default_regen = 1 -mana.settings.regen_timer = 0.1 +mana.settings.regen_timer = 0.2 do local default_max = tonumber(minetest.setting_get("mana_default_max"))