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

@ -26,7 +26,7 @@ ARMOR_LEVEL_MULTIPLIER = 1
-- You can use this to increase or decrease overall armor healing,
-- eg: ARMOR_HEAL_MULTIPLIER = 0 will disable healing altogether.
ARMOR_HEAL_MULTIPLIER = 0
ARMOR_HEAL_MULTIPLIER = 1
-- You can also use this file to execute arbitary lua code
-- eg: Dumb the armor down if using Simple Mobs

View File

@ -33,25 +33,25 @@ if ARMOR_MATERIALS.cactus then
minetest.register_tool("3d_armor:helmet_cactus", {
description = "Cactuc Helmet",
inventory_image = "3d_armor_inv_helmet_cactus.png",
groups = {armor_head=1.5, armor_heal=0, armor_use=1000},
groups = {armor_head=3, armor_heal=0, armor_use=1000},
wear = 0,
})
minetest.register_tool("3d_armor:chestplate_cactus", {
description = "Cactus Chestplate",
inventory_image = "3d_armor_inv_chestplate_cactus.png",
groups = {armor_torso=4, armor_heal=0, armor_use=1000},
groups = {armor_torso=5, armor_heal=0, armor_use=1000},
wear = 0,
})
minetest.register_tool("3d_armor:leggings_cactus", {
description = "Cactus Leggings",
inventory_image = "3d_armor_inv_leggings_cactus.png",
groups = {armor_legs=4, armor_heal=0, armor_use=1000},
groups = {armor_legs=5, armor_heal=0, armor_use=1000},
wear = 0,
})
minetest.register_tool("3d_armor:boots_cactus", {
description = "Cactus Boots",
inventory_image = "3d_armor_inv_boots_cactus.png",
groups = {armor_feet=1.5, armor_heal=0, armor_use=1000},
groups = {armor_feet=3, armor_heal=0, armor_use=1000},
wear = 0,
})
end
@ -60,25 +60,25 @@ if ARMOR_MATERIALS.steel then
minetest.register_tool("3d_armor:helmet_steel", {
description = "Steel Helmet",
inventory_image = "3d_armor_inv_helmet_steel.png",
groups = {armor_head=2, armor_heal=0, armor_use=500},
groups = {armor_head=4, armor_heal=0, armor_use=500},
wear = 0,
})
minetest.register_tool("3d_armor:chestplate_steel", {
description = "Steel Chestplate",
inventory_image = "3d_armor_inv_chestplate_steel.png",
groups = {armor_torso=5, armor_heal=0, armor_use=500},
groups = {armor_torso=8, armor_heal=0, armor_use=500},
wear = 0,
})
minetest.register_tool("3d_armor:leggings_steel", {
description = "Steel Leggings",
inventory_image = "3d_armor_inv_leggings_steel.png",
groups = {armor_legs=5, armor_heal=0, armor_use=500},
groups = {armor_legs=8, armor_heal=0, armor_use=500},
wear = 0,
})
minetest.register_tool("3d_armor:boots_steel", {
description = "Steel Boots",
inventory_image = "3d_armor_inv_boots_steel.png",
groups = {armor_feet=2, armor_heal=0, armor_use=500},
groups = {armor_feet=4, armor_heal=0, armor_use=500},
wear = 0,
})
end
@ -87,25 +87,25 @@ if ARMOR_MATERIALS.bronze then
minetest.register_tool("3d_armor:helmet_bronze", {
description = "Bronze Helmet",
inventory_image = "3d_armor_inv_helmet_bronze.png",
groups = {armor_head=2.5, armor_heal=0, armor_use=250},
groups = {armor_head=5, armor_heal=0, armor_use=250},
wear = 0,
})
minetest.register_tool("3d_armor:chestplate_bronze", {
description = "Bronze Chestplate",
inventory_image = "3d_armor_inv_chestplate_bronze.png",
groups = {armor_torso=5.5, armor_heal=0, armor_use=250},
groups = {armor_torso=9, armor_heal=0, armor_use=250},
wear = 0,
})
minetest.register_tool("3d_armor:leggings_bronze", {
description = "Bronze Leggings",
inventory_image = "3d_armor_inv_leggings_bronze.png",
groups = {armor_legs=5.5, armor_heal=0, armor_use=250},
groups = {armor_legs=9, armor_heal=0, armor_use=250},
wear = 0,
})
minetest.register_tool("3d_armor:boots_bronze", {
description = "Bronze Boots",
inventory_image = "3d_armor_inv_boots_bronze.png",
groups = {armor_feet=2.5, armor_heal=0, armor_use=250},
groups = {armor_feet=5, armor_heal=0, armor_use=250},
wear = 0,
})
end
@ -114,25 +114,25 @@ if ARMOR_MATERIALS.diamond then
minetest.register_tool("3d_armor:helmet_diamond", {
description = "Diamond Helmet",
inventory_image = "3d_armor_inv_helmet_diamond.png",
groups = {armor_head=4, armor_heal=0, armor_use=100},
groups = {armor_head=7, armor_heal=0, armor_use=100},
wear = 0,
})
minetest.register_tool("3d_armor:chestplate_diamond", {
description = "Diamond Chestplate",
inventory_image = "3d_armor_inv_chestplate_diamond.png",
groups = {armor_torso=8, armor_heal=0, armor_use=100},
groups = {armor_torso=13, armor_heal=0, armor_use=100},
wear = 0,
})
minetest.register_tool("3d_armor:leggings_diamond", {
description = "Diamond Leggings",
inventory_image = "3d_armor_inv_leggings_diamond.png",
groups = {armor_legs=8, armor_heal=0, armor_use=100},
groups = {armor_legs=13, armor_heal=0, armor_use=100},
wear = 0,
})
minetest.register_tool("3d_armor:boots_diamond", {
description = "Diamond Boots",
inventory_image = "3d_armor_inv_boots_diamond.png",
groups = {armor_feet=4, armor_heal=0, armor_use=100},
groups = {armor_feet=7, armor_heal=0, armor_use=100},
wear = 0,
})
end
@ -141,25 +141,25 @@ if ARMOR_MATERIALS.gold then
minetest.register_tool("3d_armor:helmet_gold", {
description = "Gold Helmet",
inventory_image = "3d_armor_inv_helmet_gold.png",
groups = {armor_head=3, armor_heal=0, armor_use=200},
groups = {armor_head=5, armor_heal=0, armor_use=200},
wear = 0,
})
minetest.register_tool("3d_armor:chestplate_gold", {
description = "Gold Chestplate",
inventory_image = "3d_armor_inv_chestplate_gold.png",
groups = {armor_torso=7, armor_heal=0, armor_use=200},
groups = {armor_torso=11, armor_heal=0, armor_use=200},
wear = 0,
})
minetest.register_tool("3d_armor:leggings_gold", {
description = "Gold Leggings",
inventory_image = "3d_armor_inv_leggings_gold.png",
groups = {armor_legs=7, armor_heal=0, armor_use=200},
groups = {armor_legs=11, armor_heal=0, armor_use=200},
wear = 0,
})
minetest.register_tool("3d_armor:boots_gold", {
description = "Gold Boots",
inventory_image = "3d_armor_inv_boots_gold.png",
groups = {armor_feet=3, armor_heal=0, armor_use=200},
groups = {armor_feet=5, armor_heal=0, armor_use=200},
wear = 0,
})
end
@ -168,25 +168,25 @@ if ARMOR_MATERIALS.mithril then
minetest.register_tool("3d_armor:helmet_mithril", {
description = "Mithril Helmet",
inventory_image = "3d_armor_inv_helmet_mithril.png",
groups = {armor_head=5, armor_heal=0, armor_use=50},
groups = {armor_head=9, armor_heal=0, armor_use=50},
wear = 0,
})
minetest.register_tool("3d_armor:chestplate_mithril", {
description = "Mithril Chestplate",
inventory_image = "3d_armor_inv_chestplate_mithril.png",
groups = {armor_torso=11, armor_heal=0, armor_use=50},
groups = {armor_torso=15, armor_heal=0, armor_use=50},
wear = 0,
})
minetest.register_tool("3d_armor:leggings_mithril", {
description = "Mithril Leggings",
inventory_image = "3d_armor_inv_leggings_mithril.png",
groups = {armor_legs=11, armor_heal=0, armor_use=50},
groups = {armor_legs=15, armor_heal=0, armor_use=50},
wear = 0,
})
minetest.register_tool("3d_armor:boots_mithril", {
description = "Mithril Boots",
inventory_image = "3d_armor_inv_boots_mithril.png",
groups = {armor_feet=5, armor_heal=0, armor_use=50},
groups = {armor_feet=9, armor_heal=0, armor_use=50},
wear = 0,
})
end

View File

@ -36,13 +36,13 @@ if ARMOR_MATERIALS.cactus then
minetest.register_tool("shields:shield_cactus", {
description = "Cactus Shield",
inventory_image = "shields_inv_shield_cactus.png",
groups = {armor_shield=3, armor_heal=0, armor_use=1000},
groups = {armor_shield=5, armor_heal=0, armor_use=1000},
wear = 0,
})
minetest.register_tool("shields:shield_enhanced_cactus", {
description = "Enhanced Cactus Shield",
inventory_image = "shields_inv_shield_enhanced_cactus.png",
groups = {armor_shield=4, armor_heal=0, armor_use=500},
groups = {armor_shield=6, armor_heal=0, armor_use=500},
wear = 0,
})
minetest.register_craft({
@ -59,7 +59,7 @@ if ARMOR_MATERIALS.steel then
minetest.register_tool("shields:shield_steel", {
description = "Steel Shield",
inventory_image = "shields_inv_shield_steel.png",
groups = {armor_shield=4, armor_heal=0, armor_use=500},
groups = {armor_shield=7, armor_heal=0, armor_use=500},
wear = 0,
})
end
@ -68,7 +68,7 @@ if ARMOR_MATERIALS.bronze then
minetest.register_tool("shields:shield_bronze", {
description = "Bronze Shield",
inventory_image = "shields_inv_shield_bronze.png",
groups = {armor_shield=5, armor_heal=0, armor_use=250},
groups = {armor_shield=8, armor_heal=0, armor_use=250},
wear = 0,
})
end
@ -77,7 +77,7 @@ if ARMOR_MATERIALS.diamond then
minetest.register_tool("shields:shield_diamond", {
description = "Diamond Shield",
inventory_image = "shields_inv_shield_diamond.png",
groups = {armor_shield=7, armor_heal=0, armor_use=100},
groups = {armor_shield=11, armor_heal=0, armor_use=100},
wear = 0,
})
end
@ -86,7 +86,7 @@ if ARMOR_MATERIALS.gold then
minetest.register_tool("shields:shield_gold", {
description = "Gold Shield",
inventory_image = "shields_inv_shield_gold.png",
groups = {armor_shield=6, armor_heal=0, armor_use=200},
groups = {armor_shield=9, armor_heal=0, armor_use=200},
wear = 0,
})
end
@ -95,7 +95,7 @@ if ARMOR_MATERIALS.mithril then
minetest.register_tool("shields:shield_mithril", {
description = "Mithril Shield",
inventory_image = "shields_inv_shield_mithril.png",
groups = {armor_shield=9, armor_heal=0, armor_use=50},
groups = {armor_shield=13, armor_heal=1, armor_use=50},
wear = 0,
})
end

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 :

0
other_things/World Edit schems/ferme_arbre.we Normal file → Executable file
View File

0
other_things/World Edit schems/lastspawn_oldmapgen.we Normal file → Executable file
View File

0
other_things/World Edit schems/maison_arbre.we Normal file → Executable file
View File