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
|
2017-04-08 18:23:57 +02:00
|
|
|
pclasses.api.util.on_update(pname)
|
2015-12-24 20:36:17 +01:00
|
|
|
end,
|
|
|
|
on_unassigned = function(pname)
|
2016-07-14 23:32:42 +02:00
|
|
|
end,
|
2017-04-08 18:23:57 +02:00
|
|
|
on_update = function(pname)
|
|
|
|
end,
|
2016-09-22 21:10:01 +02:00
|
|
|
informations = pclasses.api.textify("Adventurer, the casual players, or hardcore players. Whatever end of the spectrum\n" ..
|
|
|
|
"you're in, adventurer will bring you what you want : no advantages, no help. Maybe you\n" ..
|
|
|
|
"don't want that if you just began playing. If that's the case.. just pick another tab and\n" ..
|
|
|
|
"read what's in it. You'll still be able to come back to this boilerplate class whenever you\n" ..
|
|
|
|
"want to (minus actual cooldown regulation of.. an hour between two changes) if you like\n" ..
|
|
|
|
"being hurt, or hardcore gaming, which, from afar, look alike.... The pedestal has a backpack\n" ..
|
2016-09-24 15:12:45 +02:00
|
|
|
"over it, because, yay adventures!") .. "image[2.4,5.6;6,4;pclasses_showcase_adventurer.png]"
|
2015-07-27 19:13:30 +02:00
|
|
|
})
|
|
|
|
|