[pclasses & mff_pclasses] Misc. fixes

- PClasses : Fix adventurer to not reset stats
 - MFF PClasses : Fix hunter to flush bonus ownership data upon leaving
   the game
This commit is contained in:
LeMagnesium 2017-04-19 23:57:30 +02:00
parent f6341038af
commit 8c0a0a5547
No known key found for this signature in database
GPG Key ID: A54DDB5272C51E8B
2 changed files with 3 additions and 4 deletions

View File

@ -54,6 +54,9 @@ pclasses.api.register_class("hunter", {
"you need to fight a super strong mob, but it's just details...)") .. "image[2.4,5.6;6,4;pclasses_showcase_hunter.png]"
})
minetest.register_on_leaveplayer(function(player)
tmp[player:get_player_name()] = false
end)
pclasses.api.reserve_item("hunter", "throwing:bow_minotaur_horn")
pclasses.api.reserve_item("hunter", "throwing:bow_minotaur_horn_loaded")

View File

@ -17,10 +17,6 @@ pclasses.api.register_class("adventurer", {
on_unassigned = function(pname)
end,
on_update = function(pname)
local staminavalue = 10
local manavalue = 100
sprint.set_maxstamina(pname, staminavalue)
mana.setmax(pname, manavalue)
end,
informations = pclasses.api.textify("Adventurer, the casual players, or hardcore players. Whatever end of the spectrum\n" ..
"you're in, adventurer will bring you what you want : no advantages, no help. Maybe you\n" ..