forked from Mineclonia/Mineclonia
Add help texts for armor
This commit is contained in:
parent
2441e9e54e
commit
14a5d7803f
|
@ -2,8 +2,13 @@ dofile(minetest.get_modpath(minetest.get_current_modname()).."/armor.lua")
|
|||
|
||||
-- Regisiter Head Armor
|
||||
|
||||
local longdesc = "This is a piece of equippable armor which reduces the amount of damage you receive."
|
||||
local usage = "To equip it, put it on the corresponding armor slot in your inventory menu."
|
||||
|
||||
minetest.register_tool("3d_armor:helmet_leather", {
|
||||
description = "Leather Cap",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_helmet_leather.png",
|
||||
groups = {armor_head=5, armor_heal=0, armor_use=100},
|
||||
wear = 0,
|
||||
|
@ -11,6 +16,8 @@ minetest.register_tool("3d_armor:helmet_leather", {
|
|||
|
||||
minetest.register_tool("3d_armor:helmet_iron", {
|
||||
description = "Iron Helmet",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_helmet_iron.png",
|
||||
groups = {armor_head=10, armor_heal=5, armor_use=250},
|
||||
wear = 0,
|
||||
|
@ -18,6 +25,8 @@ minetest.register_tool("3d_armor:helmet_iron", {
|
|||
|
||||
minetest.register_tool("3d_armor:helmet_gold", {
|
||||
description = "Golden Helmet",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_helmet_gold.png",
|
||||
groups = {armor_head=15, armor_heal=10, armor_use=500},
|
||||
wear = 0,
|
||||
|
@ -25,6 +34,8 @@ minetest.register_tool("3d_armor:helmet_gold", {
|
|||
|
||||
minetest.register_tool("3d_armor:helmet_diamond",{
|
||||
description = "Diamond Helmet",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_helmet_diamond.png",
|
||||
groups = {armor_head=20, armor_heal=15, armor_use=750},
|
||||
wear = 0,
|
||||
|
@ -32,6 +43,8 @@ minetest.register_tool("3d_armor:helmet_diamond",{
|
|||
|
||||
minetest.register_tool("3d_armor:helmet_chain", {
|
||||
description = "Chain Helmet",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_helmet_chain.png",
|
||||
groups = {armor_head=15, armor_heal=10, armor_use=500},
|
||||
wear = 0,
|
||||
|
@ -41,6 +54,8 @@ minetest.register_tool("3d_armor:helmet_chain", {
|
|||
|
||||
minetest.register_tool("3d_armor:chestplate_leather", {
|
||||
description = "Leather Tunic",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_chestplate_leather.png",
|
||||
groups = {armor_torso=15, armor_heal=0, armor_use=100},
|
||||
wear = 0,
|
||||
|
@ -48,6 +63,8 @@ minetest.register_tool("3d_armor:chestplate_leather", {
|
|||
|
||||
minetest.register_tool("3d_armor:chestplate_iron", {
|
||||
description = "Iron Chestplate",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_chestplate_iron.png",
|
||||
groups = {armor_torso=20, armor_heal=5, armor_use=250},
|
||||
wear = 0,
|
||||
|
@ -55,6 +72,8 @@ minetest.register_tool("3d_armor:chestplate_iron", {
|
|||
|
||||
minetest.register_tool("3d_armor:chestplate_gold", {
|
||||
description = "Golden Chestplate",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_chestplate_gold.png",
|
||||
groups = {armor_torso=25, armor_heal=10, armor_use=500},
|
||||
wear = 0,
|
||||
|
@ -62,6 +81,8 @@ minetest.register_tool("3d_armor:chestplate_gold", {
|
|||
|
||||
minetest.register_tool("3d_armor:chestplate_diamond",{
|
||||
description = "Diamond Chestplate",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_chestplate_diamond.png",
|
||||
groups = {armor_torso=30, armor_heal=15, armor_use=750},
|
||||
wear = 0,
|
||||
|
@ -69,6 +90,8 @@ minetest.register_tool("3d_armor:chestplate_diamond",{
|
|||
|
||||
minetest.register_tool("3d_armor:chestplate_chain", {
|
||||
description = "Chain Chestplate",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_chestplate_chain.png",
|
||||
groups = {armor_torso=25, armor_heal=10, armor_use=500},
|
||||
wear = 0,
|
||||
|
@ -78,6 +101,8 @@ minetest.register_tool("3d_armor:chestplate_chain", {
|
|||
|
||||
minetest.register_tool("3d_armor:leggings_leather", {
|
||||
description = "Leather Pants",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_leggings_leather.png",
|
||||
groups = {armor_legs=10, armor_heal=0, armor_use=100},
|
||||
wear = 0,
|
||||
|
@ -85,6 +110,8 @@ minetest.register_tool("3d_armor:leggings_leather", {
|
|||
|
||||
minetest.register_tool("3d_armor:leggings_iron", {
|
||||
description = "Iron Leggings",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_leggings_iron.png",
|
||||
groups = {armor_legs=15, armor_heal=5, armor_use=250},
|
||||
wear = 0,
|
||||
|
@ -92,6 +119,8 @@ minetest.register_tool("3d_armor:leggings_iron", {
|
|||
|
||||
minetest.register_tool("3d_armor:leggings_gold", {
|
||||
description = "Golden Leggings",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_leggings_gold.png",
|
||||
groups = {armor_legs=20, armor_heal=10, armor_use=500},
|
||||
wear = 0,
|
||||
|
@ -99,6 +128,8 @@ minetest.register_tool("3d_armor:leggings_gold", {
|
|||
|
||||
minetest.register_tool("3d_armor:leggings_diamond",{
|
||||
description = "Diamond Leggins",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_leggings_diamond.png",
|
||||
groups = {armor_legs=25, armor_heal=15, armor_use=750},
|
||||
wear = 0,
|
||||
|
@ -106,6 +137,8 @@ minetest.register_tool("3d_armor:leggings_diamond",{
|
|||
|
||||
minetest.register_tool("3d_armor:leggings_chain", {
|
||||
description = "Chain Leggings",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_leggings_chain.png",
|
||||
groups = {armor_legs=20, armor_heal=10, armor_use=500},
|
||||
wear = 0,
|
||||
|
@ -114,6 +147,8 @@ minetest.register_tool("3d_armor:leggings_chain", {
|
|||
|
||||
minetest.register_tool("3d_armor:boots_leather", {
|
||||
description = "Leather Boots",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_boots_leather.png",
|
||||
groups = {armor_feet=5, armor_heal=0, armor_use=100},
|
||||
wear = 0,
|
||||
|
@ -121,6 +156,8 @@ minetest.register_tool("3d_armor:boots_leather", {
|
|||
|
||||
minetest.register_tool("3d_armor:boots_iron", {
|
||||
description = "Iron Boots",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_boots_iron.png",
|
||||
groups = {armor_feet=10, armor_heal=5, armor_use=250},
|
||||
wear = 0,
|
||||
|
@ -128,6 +165,8 @@ minetest.register_tool("3d_armor:boots_iron", {
|
|||
|
||||
minetest.register_tool("3d_armor:boots_gold", {
|
||||
description = "Golden Boots",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_boots_gold.png",
|
||||
groups = {armor_feet=15, armor_heal=10, armor_use=500},
|
||||
wear = 0,
|
||||
|
@ -135,6 +174,8 @@ minetest.register_tool("3d_armor:boots_gold", {
|
|||
|
||||
minetest.register_tool("3d_armor:boots_diamond",{
|
||||
description = "Diamond Boots",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_boots_diamond.png",
|
||||
groups = {armor_feet=20, armor_heal=15, armor_use=750},
|
||||
wear = 0,
|
||||
|
@ -142,6 +183,8 @@ minetest.register_tool("3d_armor:boots_diamond",{
|
|||
|
||||
minetest.register_tool("3d_armor:boots_chain", {
|
||||
description = "Chain Boots",
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usage,
|
||||
inventory_image = "3d_armor_inv_boots_chain.png",
|
||||
groups = {armor_feet=15, armor_heal=10, armor_use=500},
|
||||
wear = 0,
|
||||
|
|
Loading…
Reference in New Issue