Skip to content

Commit

Permalink
DmgSys: Min Integration: add poison for silver. Closes #1636
Browse files Browse the repository at this point in the history
  • Loading branch information
alek13 committed Sep 10, 2024
1 parent 0758a6b commit d40ddf5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 33 deletions.
61 changes: 30 additions & 31 deletions mods/lord/Tools/lord_armor/src/armor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,137 +7,126 @@ minetest.register_tool(":lottarmor:helmet_wood", {
groups = {armor_head=1, defense_fleshy=3, damage_avoid_chance=1, armor_use=2000, physics_speed=0.05, wooden = 1},
wear = 0,
})

minetest.register_tool(":lottarmor:chestplate_wood", {
description = S("Training Chestplate"),
inventory_image = "lottarmor_inv_chestplate_wood.png",
groups = {armor_torso=1, defense_fleshy=3, damage_avoid_chance=2, armor_use=2000, physics_speed=0.06, wooden = 1},
wear = 0,
})

minetest.register_tool(":lottarmor:leggings_wood", {
description = S("Training Leggings"),
inventory_image = "lottarmor_inv_leggings_wood.png",
groups = {armor_legs=1, defense_fleshy=3, damage_avoid_chance=1.5, armor_use=2000, physics_speed=0.07, wooden = 1},
wear = 0,
})

minetest.register_tool(":lottarmor:boots_wood", {
description = S("Training Boots"),
inventory_image = "lottarmor_inv_boots_wood.png",
groups = {armor_feet=1, defense_fleshy=3, damage_avoid_chance=1, armor_use=2100, physics_speed=0.08, wooden = 1},
wear = 0,
})


-- Tin Armor
minetest.register_tool(":lottarmor:helmet_tin", {
description = S("Tin Helmet"),
inventory_image = "lottarmor_inv_helmet_tin.png",
groups = {armor_head=1, defense_fleshy=4, damage_avoid_chance=3, armor_use=1500, physics_speed=0.02, tin_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:chestplate_tin", {
description = S("Tin Chestplate"),
inventory_image = "lottarmor_inv_chestplate_tin.png",
groups = {armor_torso=1, defense_fleshy=6, damage_avoid_chance=4, armor_use=1500, physics_speed=0.02, tin_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:leggings_tin", {
description = S("Tin Leggings"),
inventory_image = "lottarmor_inv_leggings_tin.png",
groups = {armor_legs=1, defense_fleshy=3, damage_avoid_chance=1.5, armor_use=1500, physics_speed=0.03, tin_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:boots_tin", {
description = S("Tin Boots"),
inventory_image = "lottarmor_inv_boots_tin.png",
groups = {armor_feet=1, defense_fleshy=2, damage_avoid_chance=2, armor_use=2000, physics_speed=0.03, tin_item=1},
wear = 0,
})


--Copper Armor
minetest.register_tool(":lottarmor:helmet_copper", {
description = S("Copper Helmet"),
inventory_image = "lottarmor_inv_helmet_copper.png",
groups = {armor_head=1, defense_fleshy=8, damage_avoid_chance=6, armor_use=1500, physics_speed=0.02, copper_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:chestplate_copper", {
description = S("Copper Chestplate"),
inventory_image = "lottarmor_inv_chestplate_copper.png",
groups = {armor_torso=1, defense_fleshy=10, damage_avoid_chance=7, armor_use=1500, physics_speed=0.025, copper_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:leggings_copper", {
description = S("Copper Leggings"),
inventory_image = "lottarmor_inv_leggings_copper.png",
groups = {armor_legs=1, defense_fleshy=7, damage_avoid_chance=4.5, armor_use=1500, physics_speed=0.04, copper_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:boots_copper", {
description = S("Copper Boots"),
inventory_image = "lottarmor_inv_boots_copper.png",
groups = {armor_feet=1, defense_fleshy=6, damage_avoid_chance=4, armor_use=2000, physics_speed=0.05, copper_item=1},
wear = 0,
})


--Steel Armor
minetest.register_tool(":lottarmor:helmet_steel", {
description = S("Steel Helmet"),
inventory_image = "lottarmor_inv_helmet_steel.png",
groups = {armor_head=1, defense_fleshy=7, damage_avoid_chance=5, armor_use=500, physics_speed=0.015, steel_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:chestplate_steel", {
description = S("Steel Chestplate"),
inventory_image = "lottarmor_inv_chestplate_steel.png",
groups = {armor_torso=1, defense_fleshy=9, damage_avoid_chance=5, armor_use=500, physics_speed=0.02, steel_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:leggings_steel", {
description = S("Steel Leggings"),
inventory_image = "lottarmor_inv_leggings_steel.png",
groups = {armor_legs=1, defense_fleshy=6, damage_avoid_chance=3, armor_use=500, physics_speed=0.03, steel_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:boots_steel", {
description = S("Steel Boots"),
inventory_image = "lottarmor_inv_boots_steel.png",
groups = {armor_feet=1, defense_fleshy=5, damage_avoid_chance=2, armor_use=500, physics_speed=0.04, steel_item=1},
wear = 0,
})


--Bronze Armor
minetest.register_tool(":lottarmor:helmet_bronze", {
description = S("Bronze Helmet"),
inventory_image = "lottarmor_inv_helmet_bronze.png",
groups = {armor_head=1, defense_fleshy=9, damage_avoid_chance=10, armor_use=250, physics_speed=0.02, bronze_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:chestplate_bronze", {
description = S("Bronze Chestplate"),
inventory_image = "lottarmor_inv_chestplate_bronze.png",
groups = {armor_torso=1, defense_fleshy=11, damage_avoid_chance=11, armor_use=250, physics_speed=0.03, bronze_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:leggings_bronze", {
description = S("Bronze Leggings"),
inventory_image = "lottarmor_inv_leggings_bronze.png",
groups = {armor_legs=1, defense_fleshy=8, damage_avoid_chance=7, armor_use=250, physics_speed=0.04, bronze_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:boots_bronze", {
description = S("Bronze Boots"),
inventory_image = "lottarmor_inv_boots_bronze.png",
Expand All @@ -150,60 +139,75 @@ minetest.register_tool(":lottarmor:boots_bronze", {
minetest.register_tool(":lottarmor:helmet_silver", {
description = S("Silver Helmet"),
inventory_image = "lottarmor_inv_helmet_silver.png",
groups = {armor_head=1, defense_fleshy=6, damage_avoid_chance=6, armor_use=300, physics_speed=-0.02, silver_item=1},
groups = {
armor_head=1, armor_use=300, silver_item=1,
damage_avoid_chance=6,
defense_fleshy=6, defense_poison=4.5,
physics_speed=-0.02,
},
wear = 0,
})

minetest.register_tool(":lottarmor:chestplate_silver", {
description = S("Silver Chestplate"),
inventory_image = "lottarmor_inv_chestplate_silver.png",
groups = {armor_torso=1, defense_fleshy=8, damage_avoid_chance=7, armor_use=300, physics_speed=-0.03, silver_item=1},
groups = {
armor_torso=1, armor_use=300, silver_item=1,
damage_avoid_chance=7,
defense_fleshy=8, defense_poison=6,
physics_speed=-0.03,},
wear = 0,
})

minetest.register_tool(":lottarmor:leggings_silver", {
description = S("Silver Leggings"),
inventory_image = "lottarmor_inv_leggings_silver.png",
groups = {armor_legs=1, defense_fleshy=5, damage_avoid_chance=4.5, armor_use=300, physics_speed=-0.04, silver_item=1},
groups = {
armor_legs=1, armor_use=300, silver_item=1,
damage_avoid_chance=4.5,
defense_fleshy=5, defense_poison=3.75,
physics_speed=-0.04,
},
wear = 0,
})

minetest.register_tool(":lottarmor:boots_silver", {
description = S("Silver Boots"),
inventory_image = "lottarmor_inv_boots_silver.png",
groups = {armor_feet=1, defense_fleshy=4, damage_avoid_chance=4, armor_use=300, physics_speed=-0.04, silver_item=1},
groups = {
armor_feet=1, armor_use=300, silver_item=1,
damage_avoid_chance=4,
defense_fleshy=4, defense_poison=3,
physics_speed=-0.04,
},
wear = 0,
})


--Gold Armor
minetest.register_tool(":lottarmor:helmet_gold", {
description = S("Gold Helmet"),
inventory_image = "lottarmor_inv_helmet_gold.png",
groups = {armor_head=1, defense_fleshy=5, damage_avoid_chance=5, armor_use=250, physics_speed=-0.05, gold_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:chestplate_gold", {
description = S("Gold Chestplate"),
inventory_image = "lottarmor_inv_chestplate_gold.png",
groups = {armor_torso=1, defense_fleshy=7, damage_avoid_chance=5, armor_use=250, physics_speed=-0.05, gold_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:leggings_gold", {
description = S("Gold Leggings"),
inventory_image = "lottarmor_inv_leggings_gold.png",
groups = {armor_legs=1, defense_fleshy=4, damage_avoid_chance=3, armor_use=250, physics_speed=-0.07, gold_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:boots_gold", {
description = S("Gold Boots"),
inventory_image = "lottarmor_inv_boots_gold.png",
groups = {armor_feet=1, defense_fleshy=3, damage_avoid_chance=2, armor_use=250, physics_speed=-0.07, gold_item=1},
wear = 0,
})


--Galvorn Armor
minetest.register_tool(":lottarmor:helmet_galvorn", {
description = S("Galvorn Helmet"),
Expand All @@ -216,7 +220,6 @@ minetest.register_tool(":lottarmor:helmet_galvorn", {
},
wear = 0,
})

minetest.register_tool(":lottarmor:chestplate_galvorn", {
description = S("Galvorn Chestplate"),
inventory_image = "lottarmor_inv_chestplate_galvorn.png",
Expand All @@ -228,7 +231,6 @@ minetest.register_tool(":lottarmor:chestplate_galvorn", {
},
wear = 0,
})

minetest.register_tool(":lottarmor:leggings_galvorn", {
description = S("Galvorn Leggings"),
inventory_image = "lottarmor_inv_leggings_galvorn.png",
Expand All @@ -240,7 +242,6 @@ minetest.register_tool(":lottarmor:leggings_galvorn", {
},
wear = 0,
})

minetest.register_tool(":lottarmor:boots_galvorn", {
description = S("Galvorn Boots"),
inventory_image = "lottarmor_inv_boots_galvorn.png",
Expand All @@ -253,28 +254,26 @@ minetest.register_tool(":lottarmor:boots_galvorn", {
wear = 0,
})


--Mithril Armor
minetest.register_tool(":lottarmor:helmet_mithril", {
description = S("Mithril Helmet"),
inventory_image = "lottarmor_inv_helmet_mithril.png",
groups = {armor_head=1, defense_fleshy=13, damage_avoid_chance=0, armor_use=50, physics_speed=0.05, mithril_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:chestplate_mithril", {
description = S("Mithril Chestplate"),
inventory_image = "lottarmor_inv_chestplate_mithril.png",
groups = {armor_torso=1, defense_fleshy=15, damage_avoid_chance=0, armor_use=50, physics_speed=0.05, mithril_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:leggings_mithril", {
description = S("Mithril Leggings"),
inventory_image = "lottarmor_inv_leggings_mithril.png",
groups = {armor_legs=1, defense_fleshy=12, damage_avoid_chance=0, armor_use=50, physics_speed=0.06, mithril_item=1},
wear = 0,
})

minetest.register_tool(":lottarmor:boots_mithril", {
description = S("Mithril Boots"),
inventory_image = "lottarmor_inv_boots_mithril.png",
Expand Down
6 changes: 4 additions & 2 deletions mods/lord/Tools/lord_armor/src/shield.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ minetest.register_tool(":lottarmor:shield_silver", {
description = SL("Silver Shield"),
inventory_image = "lottarmor_inv_shield_silver.png",
groups = {
armor_shield = 1, defense_fleshy = 7, damage_avoid_chance = 5, armor_use = 1000,
physics_speed = -0.02, silver_item = 1
armor_shield = 1, armor_use = 1000, silver_item = 1,
damage_avoid_chance = 5,
defense_fleshy = 7, defense_poison = 5.25,
physics_speed = -0.02,
},
wear = 0,
})
Expand Down

0 comments on commit d40ddf5

Please sign in to comment.