add back armor slowing and melting down

This commit is contained in:
Elkien3 2018-05-12 10:10:33 -05:00
parent 4d6154e8b7
commit 9be8f71066

View File

@ -117,7 +117,7 @@ if armor.materials.steel then
description = S("Steel Helmet"),
inventory_image = "3d_armor_inv_helmet_steel.png",
groups = {armor_head=1, armor_heal=0, armor_use=800,
physics_speed=-0.01, physics_gravity=0.01},
physics_speed=-0.05},
armor_groups = {fleshy=10},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
})
@ -125,7 +125,7 @@ if armor.materials.steel then
description = S("Steel Chestplate"),
inventory_image = "3d_armor_inv_chestplate_steel.png",
groups = {armor_torso=1, armor_heal=0, armor_use=800,
physics_speed=-0.04, physics_gravity=0.04},
physics_speed=-0.1},
armor_groups = {fleshy=15},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
})
@ -133,7 +133,7 @@ if armor.materials.steel then
description = S("Steel Leggings"),
inventory_image = "3d_armor_inv_leggings_steel.png",
groups = {armor_legs=1, armor_heal=0, armor_use=800,
physics_speed=-0.03, physics_gravity=0.03},
physics_speed=-0.1},
armor_groups = {fleshy=15},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
})
@ -141,7 +141,7 @@ if armor.materials.steel then
description = S("Steel Boots"),
inventory_image = "3d_armor_inv_boots_steel.png",
groups = {armor_feet=1, armor_heal=0, armor_use=800,
physics_speed=-0.01, physics_gravity=0.01},
physics_speed=-0.05},
armor_groups = {fleshy=10},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
})
@ -152,7 +152,7 @@ if armor.materials.bronze then
description = S("Bronze Helmet"),
inventory_image = "3d_armor_inv_helmet_bronze.png",
groups = {armor_head=1, armor_heal=6, armor_use=400,
physics_speed=-0.01, physics_gravity=0.01},
physics_speed=-0.06, physics_gravity=0.01},
armor_groups = {fleshy=10},
damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2},
})
@ -160,7 +160,7 @@ if armor.materials.bronze then
description = S("Bronze Chestplate"),
inventory_image = "3d_armor_inv_chestplate_bronze.png",
groups = {armor_torso=1, armor_heal=6, armor_use=400,
physics_speed=-0.04, physics_gravity=0.04},
physics_speed=-0.11, physics_gravity=0.04},
armor_groups = {fleshy=15},
damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2},
})
@ -168,7 +168,7 @@ if armor.materials.bronze then
description = S("Bronze Leggings"),
inventory_image = "3d_armor_inv_leggings_bronze.png",
groups = {armor_legs=1, armor_heal=6, armor_use=400,
physics_speed=-0.03, physics_gravity=0.03},
physics_speed=-0.06, physics_gravity=0.03},
armor_groups = {fleshy=15},
damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2},
})
@ -176,7 +176,7 @@ if armor.materials.bronze then
description = S("Bronze Boots"),
inventory_image = "3d_armor_inv_boots_bronze.png",
groups = {armor_feet=1, armor_heal=6, armor_use=400,
physics_speed=-0.01, physics_gravity=0.01},
physics_speed=-0.11, physics_gravity=0.01},
armor_groups = {fleshy=10},
damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2},
})
@ -218,7 +218,7 @@ if armor.materials.gold then
description = S("Gold Helmet"),
inventory_image = "3d_armor_inv_helmet_gold.png",
groups = {armor_head=1, armor_heal=6, armor_use=300,
physics_speed=-0.02, physics_gravity=0.02},
physics_speed=-0.1},
armor_groups = {fleshy=10},
damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2},
})
@ -226,7 +226,7 @@ if armor.materials.gold then
description = S("Gold Chestplate"),
inventory_image = "3d_armor_inv_chestplate_gold.png",
groups = {armor_torso=1, armor_heal=6, armor_use=300,
physics_speed=-0.05, physics_gravity=0.05},
physics_speed=-0.15},
armor_groups = {fleshy=15},
damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2},
})
@ -234,7 +234,7 @@ if armor.materials.gold then
description = S("Gold Leggings"),
inventory_image = "3d_armor_inv_leggings_gold.png",
groups = {armor_legs=1, armor_heal=6, armor_use=300,
physics_speed=-0.04, physics_gravity=0.04},
physics_speed=-0.15},
armor_groups = {fleshy=15},
damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2},
})
@ -242,7 +242,7 @@ if armor.materials.gold then
description = S("Gold Boots"),
inventory_image = "3d_armor_inv_boots_gold.png",
groups = {armor_feet=1, armor_heal=6, armor_use=300,
physics_speed=-0.02, physics_gravity=0.02},
physics_speed=-0.1},
armor_groups = {fleshy=10},
damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2},
})
@ -343,4 +343,31 @@ for k, v in pairs(armor.materials) do
{v, "", v},
},
})
end
--MELTING DOWN
if v ~= "group:wood" then
minetest.register_craft({
output = v .. " 5",
type = "cooking",
cooktime = 14,
recipe = "3d_armor:helmet_"..k
})
minetest.register_craft({
output = v .. " 8",
type = "cooking",
cooktime = 14,
recipe = "3d_armor:chestplate_"..k
})
minetest.register_craft({
output = v .. " 7",
type = "cooking",
cooktime = 14,
recipe = "3d_armor:leggings_"..k
})
minetest.register_craft({
output = v .. " 4",
type = "cooking",
cooktime = 14,
recipe = "3d_armor:boots_"..k
})
end
end