2015-07-27 19:13:30 +02:00
|
|
|
-----------------------------
|
2015-07-31 21:47:55 +02:00
|
|
|
-- Boilerplate class
|
2015-07-27 19:13:30 +02:00
|
|
|
--
|
|
|
|
|
|
|
|
pclasses.api.register_class("adventurer", {
|
2015-08-17 10:53:13 +02:00
|
|
|
switch_params = {
|
|
|
|
color = { r = 142, g = 64, b = 00},
|
|
|
|
tile = "wool_white.png",
|
2015-08-20 17:11:46 +02:00
|
|
|
holo_item = "unified_inventory:bag_large"
|
2015-08-17 10:53:13 +02:00
|
|
|
},
|
2016-01-03 23:01:40 +01:00
|
|
|
on_assigned = function(pname, inform)
|
|
|
|
if inform then
|
|
|
|
minetest.chat_send_player(pname, "You are now an adventurer")
|
|
|
|
end
|
2015-12-24 20:36:17 +01:00
|
|
|
end,
|
|
|
|
on_unassigned = function(pname)
|
2015-07-27 19:13:30 +02:00
|
|
|
end
|
|
|
|
})
|
|
|
|
|