From 8d09b81aafa7573cfd4af5a957c3231bba19c1e4 Mon Sep 17 00:00:00 2001 From: thunderdog1138 <58536412+thunderdog1138@users.noreply.github.com> Date: Sun, 15 Dec 2019 19:16:04 -0500 Subject: [PATCH] Update armor.lua --- mods/minetest-3d_armor/3d_armor/armor.lua | 146 ++++------------------ 1 file changed, 26 insertions(+), 120 deletions(-) diff --git a/mods/minetest-3d_armor/3d_armor/armor.lua b/mods/minetest-3d_armor/3d_armor/armor.lua index 85d120a1..478a4fd8 100644 --- a/mods/minetest-3d_armor/3d_armor/armor.lua +++ b/mods/minetest-3d_armor/3d_armor/armor.lua @@ -81,65 +81,34 @@ if armor.materials.wood then }) end -if armor.materials.cactus then - armor:register_armor("3d_armor:helmet_cactus", { - description = S("Cactus Helmet"), - inventory_image = "3d_armor_inv_helmet_cactus.png", - groups = {armor_head=1, armor_heal=0, armor_use=1000}, - armor_groups = {fleshy=5}, - damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1}, - }) - armor:register_armor("3d_armor:chestplate_cactus", { - description = S("Cactus Chestplate"), - inventory_image = "3d_armor_inv_chestplate_cactus.png", - groups = {armor_torso=1, armor_heal=0, armor_use=1000}, - armor_groups = {fleshy=10}, - damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1}, - }) - armor:register_armor("3d_armor:leggings_cactus", { - description = S("Cactus Leggings"), - inventory_image = "3d_armor_inv_leggings_cactus.png", - groups = {armor_legs=1, armor_heal=0, armor_use=1000}, - armor_groups = {fleshy=10}, - damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1}, - }) - armor:register_armor("3d_armor:boots_cactus", { - description = S("Cactus Boots"), - inventory_image = "3d_armor_inv_boots_cactus.png", - groups = {armor_feet=1, armor_heal=0, armor_use=1000}, - armor_groups = {fleshy=5}, - damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1}, - }) -end - -if armor.materials.steel then - armor:register_armor("3d_armor:helmet_steel", { - description = S("Steel Helmet"), - inventory_image = "3d_armor_inv_helmet_steel.png", +if armor.materials.durasteel then + armor:register_armor("3d_armor:helmet_durasteel", { + description = S("Durasteel Helmet"), + inventory_image = "3d_armor_inv_helmet_durasteel.png", groups = {armor_head=1, armor_heal=0, armor_use=800, physics_speed=-0.01, physics_gravity=0.01}, armor_groups = {fleshy=10}, damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2}, }) - armor:register_armor("3d_armor:chestplate_steel", { - description = S("Steel Chestplate"), - inventory_image = "3d_armor_inv_chestplate_steel.png", + armor:register_armor("3d_armor:chestplate_durasteel", { + description = S("Durasteel Chestplate"), + inventory_image = "3d_armor_inv_chestplate_durasteel.png", groups = {armor_torso=1, armor_heal=0, armor_use=800, physics_speed=-0.04, physics_gravity=0.04}, armor_groups = {fleshy=15}, damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2}, }) - armor:register_armor("3d_armor:leggings_steel", { - description = S("Steel Leggings"), - inventory_image = "3d_armor_inv_leggings_steel.png", + armor:register_armor("3d_armor:leggings_durasteel", { + description = S("Durasteel Leggings"), + inventory_image = "3d_armor_inv_leggings_durasteel.png", groups = {armor_legs=1, armor_heal=0, armor_use=800, physics_speed=-0.03, physics_gravity=0.03}, armor_groups = {fleshy=15}, damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2}, }) - armor:register_armor("3d_armor:boots_steel", { - description = S("Steel Boots"), - inventory_image = "3d_armor_inv_boots_steel.png", + armor:register_armor("3d_armor:boots_durasteel", { + description = S("Durasteel Boots"), + inventory_image = "3d_armor_inv_boots_durasteel.png", groups = {armor_feet=1, armor_heal=0, armor_use=800, physics_speed=-0.01, physics_gravity=0.01}, armor_groups = {fleshy=10}, @@ -182,31 +151,31 @@ if armor.materials.bronze then }) end -if armor.materials.diamond then - armor:register_armor("3d_armor:helmet_diamond", { - description = S("Diamond Helmet"), - inventory_image = "3d_armor_inv_helmet_diamond.png", +if armor.materials.beskar then + armor:register_armor("3d_armor:helmet_mandalorian", { + description = S("Mandalorian Helmet"), + inventory_image = "3d_armor_inv_helmet_mandalorian.png", groups = {armor_head=1, armor_heal=12, armor_use=200}, armor_groups = {fleshy=15}, damage_groups = {cracky=2, snappy=1, choppy=1, level=3}, }) - armor:register_armor("3d_armor:chestplate_diamond", { - description = S("Diamond Chestplate"), - inventory_image = "3d_armor_inv_chestplate_diamond.png", + armor:register_armor("3d_armor:chestplate_mandalorian", { + description = S("Mandalorian Chestplate"), + inventory_image = "3d_armor_inv_chestplate_mandalorian.png", groups = {armor_torso=1, armor_heal=12, armor_use=200}, armor_groups = {fleshy=20}, damage_groups = {cracky=2, snappy=1, choppy=1, level=3}, }) - armor:register_armor("3d_armor:leggings_diamond", { - description = S("Diamond Leggings"), - inventory_image = "3d_armor_inv_leggings_diamond.png", + armor:register_armor("3d_armor:leggings_mandalorian", { + description = S("Mandalorian Leggings"), + inventory_image = "3d_armor_inv_leggings_mandalorian.png", groups = {armor_legs=1, armor_heal=12, armor_use=200}, armor_groups = {fleshy=20}, damage_groups = {cracky=2, snappy=1, choppy=1, level=3}, }) - armor:register_armor("3d_armor:boots_diamond", { - description = S("Diamond Boots"), - inventory_image = "3d_armor_inv_boots_diamond.png", + armor:register_armor("3d_armor:boots_mandalorian", { + description = S("Mandalorian Boots"), + inventory_image = "3d_armor_inv_boots_mandalorian.png", groups = {armor_feet=1, armor_heal=12, armor_use=200}, armor_groups = {fleshy=15}, damage_groups = {cracky=2, snappy=1, choppy=1, level=3}, @@ -248,69 +217,6 @@ if armor.materials.gold then }) end -if armor.materials.mithril then - armor:register_armor("3d_armor:helmet_mithril", { - description = S("Mithril Helmet"), - inventory_image = "3d_armor_inv_helmet_mithril.png", - groups = {armor_head=1, armor_heal=12, armor_use=100}, - armor_groups = {fleshy=15}, - damage_groups = {cracky=2, snappy=1, level=3}, - }) - armor:register_armor("3d_armor:chestplate_mithril", { - description = S("Mithril Chestplate"), - inventory_image = "3d_armor_inv_chestplate_mithril.png", - groups = {armor_torso=1, armor_heal=12, armor_use=100}, - armor_groups = {fleshy=20}, - damage_groups = {cracky=2, snappy=1, level=3}, - }) - armor:register_armor("3d_armor:leggings_mithril", { - description = S("Mithril Leggings"), - inventory_image = "3d_armor_inv_leggings_mithril.png", - groups = {armor_legs=1, armor_heal=12, armor_use=100}, - armor_groups = {fleshy=20}, - damage_groups = {cracky=2, snappy=1, level=3}, - }) - armor:register_armor("3d_armor:boots_mithril", { - description = S("Mithril Boots"), - inventory_image = "3d_armor_inv_boots_mithril.png", - groups = {armor_feet=1, armor_heal=12, armor_use=100}, - armor_groups = {fleshy=15}, - damage_groups = {cracky=2, snappy=1, level=3}, - }) -end - -if armor.materials.crystal then - armor:register_armor("3d_armor:helmet_crystal", { - description = S("Crystal Helmet"), - inventory_image = "3d_armor_inv_helmet_crystal.png", - groups = {armor_head=1, armor_heal=12, armor_use=100, armor_fire=1}, - armor_groups = {fleshy=15}, - damage_groups = {cracky=2, snappy=1, level=3}, - }) - armor:register_armor("3d_armor:chestplate_crystal", { - description = S("Crystal Chestplate"), - inventory_image = "3d_armor_inv_chestplate_crystal.png", - groups = {armor_torso=1, armor_heal=12, armor_use=100, armor_fire=1}, - armor_groups = {fleshy=20}, - damage_groups = {cracky=2, snappy=1, level=3}, - }) - armor:register_armor("3d_armor:leggings_crystal", { - description = S("Crystal Leggings"), - inventory_image = "3d_armor_inv_leggings_crystal.png", - groups = {armor_legs=1, armor_heal=12, armor_use=100, armor_fire=1}, - armor_groups = {fleshy=20}, - damage_groups = {cracky=2, snappy=1, level=3}, - }) - armor:register_armor("3d_armor:boots_crystal", { - description = S("Crystal Boots"), - inventory_image = "3d_armor_inv_boots_crystal.png", - groups = {armor_feet=1, armor_heal=12, armor_use=100, physics_speed=1, - physics_jump=0.5, armor_fire=1}, - armor_groups = {fleshy=15}, - damage_groups = {cracky=2, snappy=1, level=3}, - }) -end - for k, v in pairs(armor.materials) do minetest.register_craft({ output = "3d_armor:helmet_"..k,