2015-08-20 17:11:46 +02:00
|
|
|
------------------
|
|
|
|
-- Wizard class --
|
|
|
|
------------------
|
|
|
|
|
|
|
|
--
|
|
|
|
-- No Issue Yet
|
|
|
|
--
|
|
|
|
|
|
|
|
pclasses.api.register_class("wizard", {
|
2016-01-03 23:01:40 +01:00
|
|
|
on_assigned = function(pname, inform)
|
|
|
|
if inform then
|
|
|
|
-- minetest.sound_play("pclasses_full_wizard", {to_player=pname, gain=1})
|
|
|
|
minetest.chat_send_player(pname, "You are now a wizard.")
|
|
|
|
end
|
2015-08-20 17:11:46 +02:00
|
|
|
-- Add specs here
|
|
|
|
minetest.log("action", "[PClasses] Player " .. pname .. " becomes a wizard")
|
|
|
|
end,
|
2015-12-24 20:36:17 +01:00
|
|
|
on_unassigned = function(pname)
|
|
|
|
end,
|
2015-08-20 17:11:46 +02:00
|
|
|
switch_params = {
|
|
|
|
color = {r = 230, g = 230, b = 0},
|
|
|
|
holo_item = "default:book"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Reserved items here
|