From a9b8bc4dddfc9c2739c3c02c40497bc7ba1a75b0 Mon Sep 17 00:00:00 2001 From: Dirkfried <90919714+GreenDirkfried@users.noreply.github.com> Date: Sat, 5 Feb 2022 13:33:41 +0100 Subject: [PATCH] Enhance mithril armor (#70) * Enhance mithril armor Mithril armor should be (at least) tougher than diamond armor. Mithril is found rarer and deeper than diamond and mithril tools are already better than diamond tools. * Enhance mithril shield Mithril armor should be (at least) tougher than diamond armor. Mithril is found rarer and deeper than diamond and mithril tools are already better than diamond tools. * Correct armor_use Now this enhance the durability by a factor 3 (instead of a factor 2) compared to diamond. Which can be justified by the ore generation update in moreores (deeper and rarer (but less scattered)). * Correct armor_use Now this enhance the durability by a factor 3 (instead of a factor 2) compared to diamond. Which can be justified by the ore generation update in moreores (deeper and rarer (but less scattered)). * correct typo --- 3d_armor/armor.lua | 16 ++++++++-------- shields/init.lua | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index 7a364ad..1832d52 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -718,8 +718,8 @@ 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}, + groups = {armor_head=1, armor_heal=13, armor_use=66}, + armor_groups = {fleshy=16}, damage_groups = {cracky=2, snappy=1, level=3}, }) --- Mithril Chestplate @@ -736,8 +736,8 @@ if armor.materials.mithril then 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}, + groups = {armor_torso=1, armor_heal=13, armor_use=66}, + armor_groups = {fleshy=21}, damage_groups = {cracky=2, snappy=1, level=3}, }) --- Mithril Leggings @@ -754,8 +754,8 @@ if armor.materials.mithril then 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}, + groups = {armor_legs=1, armor_heal=13, armor_use=66}, + armor_groups = {fleshy=21}, damage_groups = {cracky=2, snappy=1, level=3}, }) --- Mithril Boots @@ -772,8 +772,8 @@ if armor.materials.mithril then 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}, + groups = {armor_feet=1, armor_heal=13, armor_use=66}, + armor_groups = {fleshy=16}, damage_groups = {cracky=2, snappy=1, level=3}, }) end diff --git a/shields/init.lua b/shields/init.lua index 63b4e22..3b2b43c 100644 --- a/shields/init.lua +++ b/shields/init.lua @@ -328,8 +328,8 @@ if armor.materials.mithril then armor:register_armor("shields:shield_mithril", { description = S("Mithril Shield"), inventory_image = "shields_inv_shield_mithril.png", - groups = {armor_shield=1, armor_heal=12, armor_use=100}, - armor_groups = {fleshy=15}, + groups = {armor_shield=1, armor_heal=13, armor_use=66}, + armor_groups = {fleshy=16}, damage_groups = {cracky=2, snappy=1, level=3}, reciprocate_damage = true, on_damage = function(player, index, stack)