Tweak armor values

This commit is contained in:
N-Nachtigal 2025-07-26 16:19:03 +02:00
parent c1e648877d
commit 71a53fbef8
12 changed files with 89 additions and 69 deletions

View file

@ -6,7 +6,7 @@ local S = minetest.get_translator(rainbow_ore.modname)
minetest.register_tool("rainbow_ore:rainbow_ore_helmet", {
description = S("Rainbow Helmet"),
inventory_image = "rainbow_ore_helmet_inv.png",
groups = {armor_head=20, armor_heal=17, armor_use=40, armor_fire=1},
groups = {armor_head=20, armor_heal=17, armor_use=70, armor_fire=1, armor_radiation=9},
armor_groups = {fleshy=20},
wear = 0,
damage_groups = {cracky=2, snappy=1, level=3},
@ -14,7 +14,7 @@ minetest.register_tool("rainbow_ore:rainbow_ore_helmet", {
minetest.register_tool("rainbow_ore:rainbow_ore_chestplate", {
description = S("Rainbow Chestplate"),
inventory_image = "rainbow_ore_chestplate_inv.png",
groups = {armor_torso=25, armor_heal=17, armor_use=40, armor_fire=1},
groups = {armor_torso=25, armor_heal=17, armor_use=70, armor_fire=1, armor_radiation=31},
armor_groups = {fleshy=25},
damage_groups = {cracky=2, snappy=1, level=3},
wear = 0,
@ -22,7 +22,7 @@ minetest.register_tool("rainbow_ore:rainbow_ore_chestplate", {
minetest.register_tool("rainbow_ore:rainbow_ore_leggings", {
description = S("Rainbow Leggings"),
inventory_image = "rainbow_ore_leggings_inv.png",
groups = {armor_legs=25, armor_heal=17, armor_use=40, armor_fire=1},
groups = {armor_legs=25, armor_heal=17, armor_use=70, armor_fire=1, armor_radiation=11},
armor_groups = {fleshy=25},
damage_groups = {cracky=2, snappy=1, level=3},
wear = 0,
@ -31,7 +31,7 @@ minetest.register_tool("rainbow_ore:rainbow_ore_leggings", {
minetest.register_tool("rainbow_ore:rainbow_ore_boots", {
description = S("Rainbow Boots"),
inventory_image = "rainbow_ore_boots_inv.png",
groups = {armor_feet=20, armor_heal=17, armor_use=40, physics_speed=1, physics_jump=0.5, armor_fire=1},
groups = {armor_feet=20, armor_heal=17, armor_use=70, physics_speed=1, physics_jump=0.5, armor_fire=1, armor_radiation=9},
wear = 0,
damage_groups = {cracky=2, snappy=1, level=3},
armor_groups = {fleshy=20},

View file

@ -1,22 +1,28 @@
local S = minetest.get_translator(rainbow_ore.modname)
--Define Rainbow shield
minetest.register_tool("rainbow_ore:rainbow_ore_shield", {
description = S("Rainbow Shield"),
inventory_image = "rainbow_ore_shield_inv.png",
groups = {armor_shield=20, armor_heal=17, armor_use=40, armor_fire=1},
groups = { armor_shield = 20, armor_heal = 17, armor_use = 70, armor_fire = 1 },
armor_groups = { fleshy = 20 },
damage_groups = { cracky = 2, snappy = 1, level = 3 },
reciprocate_damage = true,
on_damage = function(player, index, stack)
play_sound_effect(player, "default_glass_footstep")
end,
on_destroy = function(player, index, stack)
play_sound_effect(player, "default_break_glass")
end,
wear = 0,
})
--Define Rainbow shield crafting recipe
minetest.register_craft({
output = "rainbow_ore:rainbow_ore_shield",
recipe = {
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
{"", "rainbow_ore:rainbow_ore_ingot", ""},
{ "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot" },
{ "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot" },
{ "", "rainbow_ore:rainbow_ore_ingot", "" },
},
})
})