1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-17 23:20:23 +02:00

Reorganized pclasses and tweaked sprint bar

- Tweaked sprint bar in order to change its maximum value according to the one defined for each player
 - Reorganized pclasses into multiple files (api, init, one for each class). Next thing to do : document/simplify api
This commit is contained in:
LeMagnesium
2015-07-27 19:13:30 +02:00
parent 403895e8e4
commit 0754d7a5aa
7 changed files with 258 additions and 218 deletions

View File

@ -0,0 +1,11 @@
-----------------------------
-- Default class assignment
--
pclasses.api.register_class("adventurer", {
determination = function() return true end,
on_assigned = function(pname)
minetest.chat_send_player(pname, "You are now an adventurer")
end
})