1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-18 00:08:25 +01:00

Tweak the warrior life regen

This commit is contained in:
Ombridride 2015-07-27 21:08:07 +02:00
parent 951346643c
commit b4bf593874

View File

@ -113,9 +113,9 @@ minetest.register_globalstep(function(dtime)
local timerquot = 1 -- By default regen 0.5 hearth every 10sec
if pclasses.api.get_player_class(name) == "warrior" then
timerquot = 2 -- Black_Mithril armor = 0.5 hearth every 5sec
timerquot = 2 -- Black_Mithril armor = 0.5 hearth every 5.0sec
elseif pclasses.api.util.does_wear_full_armor(name, "mithril", false) then
timerquot = 1.5 -- Mithril armor = 0.5 hearth every 7.5sec
timerquot = 1.33 -- Mithril armor = 0.5 hearth every 7.5sec
end