1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Improved the armors values + add a small life regeneration on the mithril shield for test + fix a bug on the hardened armor for hunters

This commit is contained in:
Ombridride
2015-07-15 00:38:56 +02:00
parent 4b7ba47446
commit e0a3e5cec7
22 changed files with 74 additions and 74 deletions

View File

@ -0,0 +1,40 @@
if ARMOR_MATERIALS.hardened_leather then
-- Register helmets :
minetest.register_tool(":3d_armor:helmet_hardened_leather_hunter", {
description = "Hunter's Hardened Leather Helmet",
inventory_image = "3d_armor_inv_helmet_hardened_leather_hunter.png",
groups = {armor_head = 5, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register chestplates :
minetest.register_tool(":3d_armor:chestplate_hardened_leather_hunter", {
description = "Hunter's Hardened Leather Chestplate",
inventory_image = "3d_armor_inv_chestplate_hardened_leather_hunter.png",
groups = {armor_torso = 8, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register leggings :
minetest.register_tool(":3d_armor:leggings_hardened_leather_hunter", {
description = "Hunter's Hardened Leather Leggings",
inventory_image = "3d_armor_inv_leggings_hardened_leather_hunter.png",
groups = {armor_legs = 8, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register boots :
minetest.register_tool(":3d_armor:boots_hardened_leather_hunter", {
description = "Hunter's Hardened Leather Boots",
inventory_image = "3d_armor_inv_boots_hardened_leather_hunter.png",
groups = {armor_feet = 5, armor_heal = 0, armor_use = 250},
wear = 0,
})
end
-- Hardened Leather craft recipe
minetest.register_craft({
output = "3d_armor:hardened_leather",
recipe = {
{"default:steel_ingot", "mobs:leather", "default:bronze_ingot" },
{"mobs:leather", "mobs:leather", "mobs:leather" },
{"default:bronze_ingot", "mobs:leather", "default:steel_ingot" },
}
})

View File

@ -1,40 +0,0 @@
if ARMOR_MATERIALS.hardened_leather then
-- Register helmets :
minetest.register_tool(":3d_armor:helmet_leather_hunter", {
description = "Hunter's Leather Helmet",
inventory_image = "3d_armor_inv_helmet_leather_hunter.png",
groups = {armor_head = 5, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register chestplates :
minetest.register_tool(":3d_armor:chestplate_leather_hunter", {
description = "Hunter's Leather Chestplate",
inventory_image = "3d_armor_inv_chestplate_leather_hunter.png",
groups = {armor_torso = 9, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register leggings :
minetest.register_tool(":3d_armor:leggings_leather_hunter", {
description = "Hunter's Leather Leggings",
inventory_image = "3d_armor_inv_leggings_leather_hunter.png",
groups = {armor_legs = 9, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register boots :
minetest.register_tool(":3d_armor:boots_leather_hunter", {
description = "Hunter's Leather Boots",
inventory_image = "3d_armor_inv_boots_leather_hunter.png",
groups = {armor_feet = 5, armor_heal = 0, armor_use = 250},
wear = 0,
})
end
-- Hardened Leather craft recipe
minetest.register_craft({
output = "3d_armor:hardened_leather",
recipe = {
{"default:steel_ingot", "mobs:leather", "default:bronze_ingot" },
{"mobs:leather", "mobs:leather", "mobs:leather" },
{"default:bronze_ingot", "mobs:leather", "default:steel_ingot" },
}
})

View File

@ -10,14 +10,14 @@ if ARMOR_MATERIALS.reinforced_leather then
minetest.register_tool(":3d_armor:chestplate_reinforced_leather_hunter", {
description = "Hunter's Reinforced Leather Chestplate",
inventory_image = "3d_armor_inv_chestplate_reinforced_leather_hunter.png",
groups = {armor_torso = 10, armor_heal = 0, armor_use = 40},
groups = {armor_torso = 11, armor_heal = 0, armor_use = 40},
wear = 0,
})
-- Register leggings :
minetest.register_tool(":3d_armor:leggings_reinforced_leather_hunter", {
description = "Hunter's Reinforced Leather Leggings",
inventory_image = "3d_armor_inv_leggings_reinforced_leather_hunter.png",
groups = {armor_legs = 10, armor_heal = 0, armor_use = 40},
groups = {armor_legs = 11, armor_heal = 0, armor_use = 40},
wear = 0,
})
-- Register boots :