Tweak armor values
This commit is contained in:
parent
c1e648877d
commit
71a53fbef8
12 changed files with 89 additions and 69 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
-- Use 3d_armor translator to take advantage of existing translations for armor parts
|
||||
local S = minetest.get_translator("3d_armor")
|
||||
|
||||
|
@ -11,7 +10,7 @@ if minetest.get_modpath("technic_worldgen") then
|
|||
armor = 1.6,
|
||||
heal = 0,
|
||||
use = 500,
|
||||
radiation = 88
|
||||
radiation = 88,
|
||||
}
|
||||
materials.brass = {
|
||||
name = S("Brass"),
|
||||
|
@ -19,7 +18,7 @@ if minetest.get_modpath("technic_worldgen") then
|
|||
armor = 1.8,
|
||||
heal = 0,
|
||||
use = 650,
|
||||
radiation = 43
|
||||
radiation = 43,
|
||||
}
|
||||
materials.cast = {
|
||||
name = S("Cast Iron"),
|
||||
|
@ -27,7 +26,7 @@ if minetest.get_modpath("technic_worldgen") then
|
|||
armor = 2.5,
|
||||
heal = 8,
|
||||
use = 200,
|
||||
radiation = 40
|
||||
radiation = 40,
|
||||
}
|
||||
materials.carbon = {
|
||||
name = S("Carbon Steel"),
|
||||
|
@ -35,7 +34,7 @@ if minetest.get_modpath("technic_worldgen") then
|
|||
armor = 2.7,
|
||||
heal = 10,
|
||||
use = 100,
|
||||
radiation = 40
|
||||
radiation = 40,
|
||||
}
|
||||
materials.stainless = {
|
||||
name = S("Stainless Steel"),
|
||||
|
@ -43,7 +42,7 @@ if minetest.get_modpath("technic_worldgen") then
|
|||
armor = 2.7,
|
||||
heal = 10,
|
||||
use = 75,
|
||||
radiation = 40
|
||||
radiation = 40,
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -54,7 +53,7 @@ if minetest.get_modpath("moreores") then
|
|||
armor = 1.8,
|
||||
heal = 6,
|
||||
use = 650,
|
||||
radiation = 53
|
||||
radiation = 53,
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -65,7 +64,7 @@ if minetest.get_modpath("default") then
|
|||
armor = 1.6,
|
||||
heal = 0,
|
||||
use = 750,
|
||||
radiation = 37
|
||||
radiation = 37,
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -75,29 +74,29 @@ local parts = {
|
|||
place = "head",
|
||||
level = 5,
|
||||
radlevel = 0.10,
|
||||
craft = {{1, 1, 1}, {1, 0, 1}}
|
||||
craft = { { 1, 1, 1 }, { 1, 0, 1 } },
|
||||
},
|
||||
chestplate = {
|
||||
name = S("Chestplate"),
|
||||
place = "torso",
|
||||
level = 8,
|
||||
radlevel = 0.35,
|
||||
craft = {{1, 0, 1}, {1, 1, 1}, {1, 1, 1}}
|
||||
craft = { { 1, 0, 1 }, { 1, 1, 1 }, { 1, 1, 1 } },
|
||||
},
|
||||
leggings = {
|
||||
name = S("Leggings"),
|
||||
place = "legs",
|
||||
level = 7,
|
||||
radlevel = 0.15,
|
||||
craft = {{1, 1, 1}, {1, 0, 1}, {1, 0, 1}}
|
||||
craft = { { 1, 1, 1 }, { 1, 0, 1 }, { 1, 0, 1 } },
|
||||
},
|
||||
boots = {
|
||||
name = S("Boots"),
|
||||
place = "feet",
|
||||
level = 4,
|
||||
radlevel = 0.10,
|
||||
craft = {{1, 0, 1}, {1, 0, 1}}
|
||||
}
|
||||
craft = { { 1, 0, 1 }, { 1, 0, 1 } },
|
||||
},
|
||||
}
|
||||
|
||||
if minetest.get_modpath("shields") then
|
||||
|
@ -106,7 +105,7 @@ if minetest.get_modpath("shields") then
|
|||
place = "shield",
|
||||
level = 5,
|
||||
radlevel = 0.00,
|
||||
craft = {{1, 1, 1}, {1, 1, 1}, {0, 1, 0}}
|
||||
craft = { { 1, 1, 1 }, { 1, 1, 1 }, { 0, 1, 0 } },
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -123,16 +122,21 @@ end
|
|||
|
||||
for material, m in pairs(materials) do
|
||||
for part, p in pairs(parts) do
|
||||
local name = "technic_armor:"..part.."_"..material
|
||||
local name = "technic_armor:" .. part .. "_" .. material
|
||||
armor:register_armor(name, {
|
||||
description = S("@1 @2", m.name, p.name),
|
||||
inventory_image = "technic_armor_inv_"..part.."_"..material..".png",
|
||||
inventory_image = "technic_armor_inv_" .. part .. "_" .. material .. ".png",
|
||||
groups = {
|
||||
["armor_"..p.place] = math.floor(p.level * m.armor),
|
||||
["armor_" .. p.place] = math.floor(p.level * m.armor),
|
||||
armor_heal = m.heal,
|
||||
armor_use = m.use,
|
||||
armor_radiation = math.floor(p.radlevel * m.radiation)
|
||||
}
|
||||
armor_radiation = math.floor(p.radlevel * m.radiation),
|
||||
},
|
||||
armor_groups = {
|
||||
["fleshy"] = math.floor(p.level * m.armor),
|
||||
},
|
||||
--damage_groups =
|
||||
--{ ["level"] = math.floor(p.level * m.armor), },
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = name,
|
||||
|
@ -140,3 +144,8 @@ for material, m in pairs(materials) do
|
|||
})
|
||||
end
|
||||
end
|
||||
|
||||
-- groups = {armor_legs=25, armor_heal=17, armor_use=40, armor_fire=1},
|
||||
-- armor_groups = {fleshy=25},
|
||||
--damage_groups = {cracky=2, snappy=1, level=3},
|
||||
-- wear = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue