mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-11 04:50:17 +01:00
93139c8db7
- Add wands and scrolls to reserved items list for wizards - Add spontaneous inflaming (spontafire) glyph and scroll - Add information wand
34 lines
858 B
Lua
Executable File
34 lines
858 B
Lua
Executable File
------------------
|
|
-- Wizard class --
|
|
------------------
|
|
|
|
--
|
|
-- No Issue Yet
|
|
--
|
|
|
|
pclasses.api.register_class("wizard", {
|
|
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
|
|
-- Add specs here
|
|
minetest.log("action", "[PClasses] Player " .. pname .. " becomes a wizard")
|
|
end,
|
|
on_unassigned = function(pname)
|
|
end,
|
|
switch_params = {
|
|
color = {r = 230, g = 230, b = 0},
|
|
holo_item = "default:book"
|
|
}
|
|
})
|
|
|
|
-- Reserved items here
|
|
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
|