From 012dfa94283d1c808878867f9fc36ac68e84a414 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Thu, 14 Jul 2016 23:32:42 +0200 Subject: [PATCH] [pclasses & mff_pclasses] Add some explanations - For #473 --- mods/mff/mff_pclasses/admin.lua | 3 ++- mods/mff/mff_pclasses/hunter.lua | 13 ++++++++++++- mods/mff/mff_pclasses/warrior.lua | 11 ++++++++++- mods/mff/mff_pclasses/wizard.lua | 20 +++++++++++++++++++- mods/pclasses/adventurer.lua | 8 +++++++- 5 files changed, 50 insertions(+), 5 deletions(-) diff --git a/mods/mff/mff_pclasses/admin.lua b/mods/mff/mff_pclasses/admin.lua index 9155121d..822fa268 100755 --- a/mods/mff/mff_pclasses/admin.lua +++ b/mods/mff/mff_pclasses/admin.lua @@ -17,7 +17,8 @@ pclasses.api.register_class("admin", { switch_params = { color = {r = 255, g = 00, b = 224}, holo_item = "maptools:pick_admin" - } + }, + informations = "There's not much to say" }) pclasses.api.reserve_item("admin", "3d_armor:helmet_admin") diff --git a/mods/mff/mff_pclasses/hunter.lua b/mods/mff/mff_pclasses/hunter.lua index 9193f235..6ff6750d 100755 --- a/mods/mff/mff_pclasses/hunter.lua +++ b/mods/mff/mff_pclasses/hunter.lua @@ -27,7 +27,18 @@ pclasses.api.register_class("hunter", { color = {r = 30, g = 170, b = 00}, tile = "default_wood.png", holo_item = "throwing:bow_minotaur_horn_improved" - } + }, + informations = "Being a hunter is mostly being tactical, or just kicking in and firing arrows like madness. " .. + "Being a hunter, you're in the only class which member can use remote attack weapons, like spears, " .. + "arbalests and bows. Your stamina is increased to 40, you're a sport person, able to sprint for a long " .. + "time, which is found to be useful when you hunt down animals and mobs who can't run faster than you " .. + "walk.. and even more when you need to cowardly run away... anyway. The point is, being a hunter is " .. + "great, since you can access new and exclusive weapons, and leather armors, crafted from leather ingots. " .. + "Yet, 'ingots'. Because.. reasons. Those clothes are pretty strong, and will protect you more than wooden " .. + "pieces, with the satation consumption of wearing nothing.\n" .. + "If you want to risk it and become a hunter, you should look for a green pedestal with a bow so fancy over it " .. + "that you can already tell that we're gonna make you use loads of ores for it. (actually you need to fight a " .. + "super strong mob, but it's just details...) }) diff --git a/mods/mff/mff_pclasses/warrior.lua b/mods/mff/mff_pclasses/warrior.lua index 8a0c9fa0..6f3cd9bf 100755 --- a/mods/mff/mff_pclasses/warrior.lua +++ b/mods/mff/mff_pclasses/warrior.lua @@ -22,7 +22,16 @@ pclasses.api.register_class("warrior", { color = {r = 06, g = 06, b = 30}, tile = "default_steel_block.png", holo_item = "default:dungeon_master_s_blood_sword" - } + }, + informations = "'Warriors' is a class of players designed to improve fighting parameters of players " .. + "who chose to belong to it. You become a big tank, of human shape. Not only can you wear stronger " .. + "protections (like the Black Mithril armor's pieces, because Black Mithril is a thing here), and " .. + "use more powerful weapons (such as the Dungeon Master's blood sword, because yes, you are going " .. + "to fight Dungeon Masters and drain their blood), but your stamina bar is boosted up to 20! Trust us, " .. + "running away is an important part of fighting a Dungeon Master. Being a warrior, you regenerate " .. + "health faster, which is, again, quite handy, at the cost of needing to eat more frequently (less handy).\n" .. + "The pedestal tied to the Warriors' includes the strongest sword, available only to Warriors : the " .. + "Dungeon Master's Blood Sword. It just looks like what you imagine, just more pixel-ish." }) pclasses.api.reserve_item("warrior", "default:sword_mithril") diff --git a/mods/mff/mff_pclasses/wizard.lua b/mods/mff/mff_pclasses/wizard.lua index 8f19fe3d..52ea9668 100755 --- a/mods/mff/mff_pclasses/wizard.lua +++ b/mods/mff/mff_pclasses/wizard.lua @@ -13,14 +13,32 @@ pclasses.api.register_class("wizard", { minetest.chat_send_player(pname, "You are now a wizard.") end -- Add specs here + mana.setmax(pname, mana.getmax(pname)+100) minetest.log("action", "[PClasses] Player " .. pname .. " becomes a wizard") end, on_unassigned = function(pname) + mana.setmax(pname, mana.getmax(pname)-100) end, switch_params = { color = {r = 230, g = 230, b = 0}, holo_item = "default:book" - } + }, + informations = "'Wizards' is a class of players aimed at enhancing magic abilities. Basically, " .. + "you become a wizard. Or a witch. Whichever one you prefer. You can then use magic, which is nice. " .. + "But since this magic was implemented by the people coding for this server (well, one of them, mostly), " .. + "you should expect a few things to not.. work.. If you have comments, complaints and threats, " .. + "contact us, well, me.. Being a wizard means you will need energy, or 'mana', to cast spells, " .. + "or rather, to use our ugly wands. This energy is recharged by.. waiting. You use it every time " .. + "you cast a spell or engrave a rune with a wand, to charge it, and not have you throw zillions of " .. + "spell in a minute. Once your mana charger has dropped down to 0, or too low for that cool shape " .. + "shift spell (not implemented (yet?)), just wait a bit and it will come back on its own. At least it should. " .. + "The maximum mana capacity is significantly higher in Wizards (and Witches) than in any other class.\n" .. + "Since this class is still a work in progress, the following things are not implemented yet. Note : " .. + "poking at the developers could help us bring you the content, it's motivating!\n" .. + "Wizards can wear silk robes (not there yet) to add in maximum mana levels and mana regeneration if worn entirely. " .. + "It is interesting to note that those robes do not make you hungry faster, contrary to most armors.\n" .. + "Finally, the pedestal to use in order to become a member of this class has a book floating over it, " .. + "to symbolize wisdom." }) -- Reserved items here diff --git a/mods/pclasses/adventurer.lua b/mods/pclasses/adventurer.lua index 25717867..4aca2c2f 100755 --- a/mods/pclasses/adventurer.lua +++ b/mods/pclasses/adventurer.lua @@ -14,6 +14,12 @@ pclasses.api.register_class("adventurer", { end end, on_unassigned = function(pname) - end + end, + informations = "Adventurer, the casual players, or hardcore players. Whatever end of the spectrum " .. + "you're in, adventurer will bring you what you want : no advantages, no help. Maybe you don't want " .. + "that if you just began playing. If that's the case.. just pick another tab and read what's in it. " .. + "You'll still be able to come back to this boilerplate class whenever you want to (minus actual " .. + "cooldown regulation of.. an hour between two changes) if you like being hurt, or hardcore gaming, " .. + "which, from afar, look alike.... The pedestal has a backpack over it, because, yay adventures!" })