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
|
2016-06-28 19:20:06 +02:00
|
|
|
pclasses.api.reserve_item("wizard", "runes:info_wand")
|
|
|
|
pclasses.api.reserve_item("wizard", "runes:recharge_wand")
|
|
|
|
pclasses.api.reserve_item("wizard", "runes:stylus")
|
|
|
|
|
|
|
|
for scroll, _ in pairs(runes.scrolls) do
|
|
|
|
pclasses.api.reserve_item("wizard", "runes:scroll_" .. scroll)
|
|
|
|
end
|