mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-03 17:10:27 +01:00
743507564f
- Moved the holographic item's name as a field in switch_params (pclasses.api.register_class) - Added wizard class' skeleton for later - Fixed a few bugs in nodes, inventory and api - Splitted tick function to bury items in two - Items from 3d_armor's armor inventory are also affected by inventory vacuuming (from tick function). The player's static armor inventory is first cleared, then copied to the detached one, then armor updates everything else (rendering, model, etc) - Fixed itemname of admin shield to reserve it properly - Return graveyard inventory if it already exists. Do not create it every two seconds
23 lines
481 B
Lua
23 lines
481 B
Lua
------------------
|
|
-- Wizard class --
|
|
------------------
|
|
|
|
--
|
|
-- No Issue Yet
|
|
--
|
|
|
|
pclasses.api.register_class("wizard", {
|
|
on_assigned = function(pname)
|
|
-- minetest.sound_play("pclasses_full_wizard")
|
|
minetest.chat_send_player(pname, "You are now a wizard.")
|
|
-- Add specs here
|
|
minetest.log("action", "[PClasses] Player " .. pname .. " becomes a wizard")
|
|
end,
|
|
switch_params = {
|
|
color = {r = 230, g = 230, b = 0},
|
|
holo_item = "default:book"
|
|
}
|
|
})
|
|
|
|
-- Reserved items here
|