mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
[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:
parent
f6341038af
commit
8c0a0a5547
@ -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")
|
||||
|
@ -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" ..
|
||||
|
Loading…
Reference in New Issue
Block a user