diff --git a/mods/mff/mff_pclasses/admin.lua b/mods/mff/mff_pclasses/admin.lua index 822fa268..4c44ef4f 100755 --- a/mods/mff/mff_pclasses/admin.lua +++ b/mods/mff/mff_pclasses/admin.lua @@ -14,6 +14,9 @@ pclasses.api.register_class("admin", { end, on_unassigned = function(pname) end, + on_update = function(pname) + -- No specific armor changes, no code + end, switch_params = { color = {r = 255, g = 00, b = 224}, holo_item = "maptools:pick_admin" diff --git a/mods/mff/mff_pclasses/hunter.lua b/mods/mff/mff_pclasses/hunter.lua index 392408a1..e066776c 100755 --- a/mods/mff/mff_pclasses/hunter.lua +++ b/mods/mff/mff_pclasses/hunter.lua @@ -14,11 +14,11 @@ pclasses.api.register_class("hunter", { minetest.chat_send_player(pname, "You are now a hunter") minetest.sound_play("pclasses_full_hunter", {to_player=pname, gain=1}) end - sprint.increase_maxstamina(pname, 10) + sprint.increase_maxstamina(pname, 20) minetest.log("action", "[PClasses] Player " .. pname .. " become a hunter") end, on_unassigned = function(pname) - sprint.decrease_maxstamina(pname, 10) + sprint.decrease_maxstamina(pname, 20) if tmp[pname] then sprint.decrease_maxstamina(pname, 10) tmp[pname] = nil diff --git a/mods/pclasses/adventurer.lua b/mods/pclasses/adventurer.lua index 3e72a6ee..0a569265 100755 --- a/mods/pclasses/adventurer.lua +++ b/mods/pclasses/adventurer.lua @@ -12,7 +12,6 @@ pclasses.api.register_class("adventurer", { if inform then minetest.chat_send_player(pname, "You are now an adventurer") end - pclasses.api.util.on_update(pname) end, on_unassigned = function(pname) end,