1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-29 16:00:33 +02:00

update armor mod

Now better values and effects, see
http://minetestforfun.qbuissondebon.info/index.php/le-jeu/liste-des-mod
This commit is contained in:
Ombridride 2015-03-25 21:39:55 +01:00
parent 8d45d416be
commit 7e74cf549e
3 changed files with 38 additions and 38 deletions

View File

@ -22,7 +22,7 @@ ARMOR_DESTROY = false
-- You can use this to increase or decrease overall armor effectiveness, -- You can use this to increase or decrease overall armor effectiveness,
-- eg: ARMOR_LEVEL_MULTIPLIER = 0.5 will reduce armor level by half. -- eg: ARMOR_LEVEL_MULTIPLIER = 0.5 will reduce armor level by half.
ARMOR_LEVEL_MULTIPLIER = 0.35 ARMOR_LEVEL_MULTIPLIER = 1
-- You can use this to increase or decrease overall armor healing, -- You can use this to increase or decrease overall armor healing,
-- eg: ARMOR_HEAL_MULTIPLIER = 0 will disable healing altogether. -- eg: ARMOR_HEAL_MULTIPLIER = 0 will disable healing altogether.

View File

@ -6,25 +6,25 @@ if ARMOR_MATERIALS.wood then
minetest.register_tool("3d_armor:helmet_wood", { minetest.register_tool("3d_armor:helmet_wood", {
description = "Wood Helmet", description = "Wood Helmet",
inventory_image = "3d_armor_inv_helmet_wood.png", inventory_image = "3d_armor_inv_helmet_wood.png",
groups = {armor_head=5, armor_heal=0, armor_use=2000}, groups = {armor_head=1, armor_heal=0, armor_use=2000},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:chestplate_wood", { minetest.register_tool("3d_armor:chestplate_wood", {
description = "Wood Chestplate", description = "Wood Chestplate",
inventory_image = "3d_armor_inv_chestplate_wood.png", inventory_image = "3d_armor_inv_chestplate_wood.png",
groups = {armor_torso=8, armor_heal=0, armor_use=2000}, groups = {armor_torso=3, armor_heal=0, armor_use=2000},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:leggings_wood", { minetest.register_tool("3d_armor:leggings_wood", {
description = "Wood Leggings", description = "Wood Leggings",
inventory_image = "3d_armor_inv_leggings_wood.png", inventory_image = "3d_armor_inv_leggings_wood.png",
groups = {armor_legs=8, armor_heal=0, armor_use=2000}, groups = {armor_legs=3, armor_heal=0, armor_use=2000},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:boots_wood", { minetest.register_tool("3d_armor:boots_wood", {
description = "Wood Boots", description = "Wood Boots",
inventory_image = "3d_armor_inv_boots_wood.png", inventory_image = "3d_armor_inv_boots_wood.png",
groups = {armor_feet=5, armor_heal=0, armor_use=2000}, groups = {armor_feet=1, armor_heal=0, armor_use=2000},
wear = 0, wear = 0,
}) })
end end
@ -33,25 +33,25 @@ if ARMOR_MATERIALS.cactus then
minetest.register_tool("3d_armor:helmet_cactus", { minetest.register_tool("3d_armor:helmet_cactus", {
description = "Cactuc Helmet", description = "Cactuc Helmet",
inventory_image = "3d_armor_inv_helmet_cactus.png", inventory_image = "3d_armor_inv_helmet_cactus.png",
groups = {armor_head=6, armor_heal=0, armor_use=1000}, groups = {armor_head=1.5, armor_heal=0, armor_use=1000},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:chestplate_cactus", { minetest.register_tool("3d_armor:chestplate_cactus", {
description = "Cactus Chestplate", description = "Cactus Chestplate",
inventory_image = "3d_armor_inv_chestplate_cactus.png", inventory_image = "3d_armor_inv_chestplate_cactus.png",
groups = {armor_torso=9, armor_heal=0, armor_use=1000}, groups = {armor_torso=4, armor_heal=0, armor_use=1000},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:leggings_cactus", { minetest.register_tool("3d_armor:leggings_cactus", {
description = "Cactus Leggings", description = "Cactus Leggings",
inventory_image = "3d_armor_inv_leggings_cactus.png", inventory_image = "3d_armor_inv_leggings_cactus.png",
groups = {armor_legs=9, armor_heal=0, armor_use=1000}, groups = {armor_legs=4, armor_heal=0, armor_use=1000},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:boots_cactus", { minetest.register_tool("3d_armor:boots_cactus", {
description = "Cactus Boots", description = "Cactus Boots",
inventory_image = "3d_armor_inv_boots_cactus.png", inventory_image = "3d_armor_inv_boots_cactus.png",
groups = {armor_feet=6, armor_heal=0, armor_use=1000}, groups = {armor_feet=1.5, armor_heal=0, armor_use=1000},
wear = 0, wear = 0,
}) })
end end
@ -60,25 +60,25 @@ if ARMOR_MATERIALS.steel then
minetest.register_tool("3d_armor:helmet_steel", { minetest.register_tool("3d_armor:helmet_steel", {
description = "Steel Helmet", description = "Steel Helmet",
inventory_image = "3d_armor_inv_helmet_steel.png", inventory_image = "3d_armor_inv_helmet_steel.png",
groups = {armor_head=8, armor_heal=0, armor_use=500}, groups = {armor_head=2, armor_heal=0, armor_use=500},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:chestplate_steel", { minetest.register_tool("3d_armor:chestplate_steel", {
description = "Steel Chestplate", description = "Steel Chestplate",
inventory_image = "3d_armor_inv_chestplate_steel.png", inventory_image = "3d_armor_inv_chestplate_steel.png",
groups = {armor_torso=10, armor_heal=0, armor_use=500}, groups = {armor_torso=5, armor_heal=0, armor_use=500},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:leggings_steel", { minetest.register_tool("3d_armor:leggings_steel", {
description = "Steel Leggings", description = "Steel Leggings",
inventory_image = "3d_armor_inv_leggings_steel.png", inventory_image = "3d_armor_inv_leggings_steel.png",
groups = {armor_legs=10, armor_heal=0, armor_use=500}, groups = {armor_legs=5, armor_heal=0, armor_use=500},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:boots_steel", { minetest.register_tool("3d_armor:boots_steel", {
description = "Steel Boots", description = "Steel Boots",
inventory_image = "3d_armor_inv_boots_steel.png", inventory_image = "3d_armor_inv_boots_steel.png",
groups = {armor_feet=8, armor_heal=0, armor_use=500}, groups = {armor_feet=2, armor_heal=0, armor_use=500},
wear = 0, wear = 0,
}) })
end end
@ -87,25 +87,25 @@ if ARMOR_MATERIALS.bronze then
minetest.register_tool("3d_armor:helmet_bronze", { minetest.register_tool("3d_armor:helmet_bronze", {
description = "Bronze Helmet", description = "Bronze Helmet",
inventory_image = "3d_armor_inv_helmet_bronze.png", inventory_image = "3d_armor_inv_helmet_bronze.png",
groups = {armor_head=10, armor_heal=4, armor_use=250}, groups = {armor_head=2.5, armor_heal=4, armor_use=250},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:chestplate_bronze", { minetest.register_tool("3d_armor:chestplate_bronze", {
description = "Bronze Chestplate", description = "Bronze Chestplate",
inventory_image = "3d_armor_inv_chestplate_bronze.png", inventory_image = "3d_armor_inv_chestplate_bronze.png",
groups = {armor_torso=12, armor_heal=4, armor_use=250}, groups = {armor_torso=5.5, armor_heal=4, armor_use=250},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:leggings_bronze", { minetest.register_tool("3d_armor:leggings_bronze", {
description = "Bronze Leggings", description = "Bronze Leggings",
inventory_image = "3d_armor_inv_leggings_bronze.png", inventory_image = "3d_armor_inv_leggings_bronze.png",
groups = {armor_legs=12, armor_heal=6, armor_use=250}, groups = {armor_legs=5.5, armor_heal=6, armor_use=250},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:boots_bronze", { minetest.register_tool("3d_armor:boots_bronze", {
description = "Bronze Boots", description = "Bronze Boots",
inventory_image = "3d_armor_inv_boots_bronze.png", inventory_image = "3d_armor_inv_boots_bronze.png",
groups = {armor_feet=10, armor_heal=4, armor_use=250}, groups = {armor_feet=2.5, armor_heal=4, armor_use=250},
wear = 0, wear = 0,
}) })
end end
@ -114,25 +114,25 @@ if ARMOR_MATERIALS.diamond then
minetest.register_tool("3d_armor:helmet_diamond", { minetest.register_tool("3d_armor:helmet_diamond", {
description = "Diamond Helmet", description = "Diamond Helmet",
inventory_image = "3d_armor_inv_helmet_diamond.png", inventory_image = "3d_armor_inv_helmet_diamond.png",
groups = {armor_head=14, armor_heal=12, armor_use=100}, groups = {armor_head=4, armor_heal=12, armor_use=100},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:chestplate_diamond", { minetest.register_tool("3d_armor:chestplate_diamond", {
description = "Diamond Chestplate", description = "Diamond Chestplate",
inventory_image = "3d_armor_inv_chestplate_diamond.png", inventory_image = "3d_armor_inv_chestplate_diamond.png",
groups = {armor_torso=18, armor_heal=12, armor_use=100}, groups = {armor_torso=8, armor_heal=12, armor_use=100},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:leggings_diamond", { minetest.register_tool("3d_armor:leggings_diamond", {
description = "Diamond Leggings", description = "Diamond Leggings",
inventory_image = "3d_armor_inv_leggings_diamond.png", inventory_image = "3d_armor_inv_leggings_diamond.png",
groups = {armor_legs=18, armor_heal=12, armor_use=100}, groups = {armor_legs=8, armor_heal=12, armor_use=100},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:boots_diamond", { minetest.register_tool("3d_armor:boots_diamond", {
description = "Diamond Boots", description = "Diamond Boots",
inventory_image = "3d_armor_inv_boots_diamond.png", inventory_image = "3d_armor_inv_boots_diamond.png",
groups = {armor_feet=14, armor_heal=12, armor_use=100}, groups = {armor_feet=4, armor_heal=12, armor_use=100},
wear = 0, wear = 0,
}) })
end end
@ -141,25 +141,25 @@ if ARMOR_MATERIALS.gold then
minetest.register_tool("3d_armor:helmet_gold", { minetest.register_tool("3d_armor:helmet_gold", {
description = "Gold Helmet", description = "Gold Helmet",
inventory_image = "3d_armor_inv_helmet_gold.png", inventory_image = "3d_armor_inv_helmet_gold.png",
groups = {armor_head=12, armor_heal=6, armor_use=200}, groups = {armor_head=3, armor_heal=6, armor_use=200},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:chestplate_gold", { minetest.register_tool("3d_armor:chestplate_gold", {
description = "Gold Chestplate", description = "Gold Chestplate",
inventory_image = "3d_armor_inv_chestplate_gold.png", inventory_image = "3d_armor_inv_chestplate_gold.png",
groups = {armor_torso=15, armor_heal=6, armor_use=200}, groups = {armor_torso=7, armor_heal=6, armor_use=200},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:leggings_gold", { minetest.register_tool("3d_armor:leggings_gold", {
description = "Gold Leggings", description = "Gold Leggings",
inventory_image = "3d_armor_inv_leggings_gold.png", inventory_image = "3d_armor_inv_leggings_gold.png",
groups = {armor_legs=15, armor_heal=6, armor_use=200}, groups = {armor_legs=7, armor_heal=6, armor_use=200},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:boots_gold", { minetest.register_tool("3d_armor:boots_gold", {
description = "Gold Boots", description = "Gold Boots",
inventory_image = "3d_armor_inv_boots_gold.png", inventory_image = "3d_armor_inv_boots_gold.png",
groups = {armor_feet=12, armor_heal=6, armor_use=200}, groups = {armor_feet=3, armor_heal=6, armor_use=200},
wear = 0, wear = 0,
}) })
end end
@ -168,25 +168,25 @@ if ARMOR_MATERIALS.mithril then
minetest.register_tool("3d_armor:helmet_mithril", { minetest.register_tool("3d_armor:helmet_mithril", {
description = "Mithril Helmet", description = "Mithril Helmet",
inventory_image = "3d_armor_inv_helmet_mithril.png", inventory_image = "3d_armor_inv_helmet_mithril.png",
groups = {armor_head=15, armor_heal=12, armor_use=50}, groups = {armor_head=5, armor_heal=12, armor_use=50},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:chestplate_mithril", { minetest.register_tool("3d_armor:chestplate_mithril", {
description = "Mithril Chestplate", description = "Mithril Chestplate",
inventory_image = "3d_armor_inv_chestplate_mithril.png", inventory_image = "3d_armor_inv_chestplate_mithril.png",
groups = {armor_torso=20, armor_heal=12, armor_use=50}, groups = {armor_torso=11, armor_heal=12, armor_use=50},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:leggings_mithril", { minetest.register_tool("3d_armor:leggings_mithril", {
description = "Mithril Leggings", description = "Mithril Leggings",
inventory_image = "3d_armor_inv_leggings_mithril.png", inventory_image = "3d_armor_inv_leggings_mithril.png",
groups = {armor_legs=20, armor_heal=12, armor_use=50}, groups = {armor_legs=11, armor_heal=12, armor_use=50},
wear = 0, wear = 0,
}) })
minetest.register_tool("3d_armor:boots_mithril", { minetest.register_tool("3d_armor:boots_mithril", {
description = "Mithril Boots", description = "Mithril Boots",
inventory_image = "3d_armor_inv_boots_mithril.png", inventory_image = "3d_armor_inv_boots_mithril.png",
groups = {armor_feet=15, armor_heal=12, armor_use=50}, groups = {armor_feet=5, armor_heal=12, armor_use=50},
wear = 0, wear = 0,
}) })
end end

View File

@ -13,13 +13,13 @@ if ARMOR_MATERIALS.wood then
minetest.register_tool("shields:shield_wood", { minetest.register_tool("shields:shield_wood", {
description = "Wooden Shield", description = "Wooden Shield",
inventory_image = "shields_inv_shield_wood.png", inventory_image = "shields_inv_shield_wood.png",
groups = {armor_shield=5, armor_heal=0, armor_use=2000}, groups = {armor_shield=2, armor_heal=0, armor_use=2000},
wear = 0, wear = 0,
}) })
minetest.register_tool("shields:shield_enhanced_wood", { minetest.register_tool("shields:shield_enhanced_wood", {
description = "Enhanced Wood Shield", description = "Enhanced Wood Shield",
inventory_image = "shields_inv_shield_enhanced_wood.png", inventory_image = "shields_inv_shield_enhanced_wood.png",
groups = {armor_shield=6, armor_heal=0, armor_use=1000}, groups = {armor_shield=3, armor_heal=0, armor_use=1000},
wear = 0, wear = 0,
}) })
minetest.register_craft({ minetest.register_craft({
@ -36,13 +36,13 @@ if ARMOR_MATERIALS.cactus then
minetest.register_tool("shields:shield_cactus", { minetest.register_tool("shields:shield_cactus", {
description = "Cactus Shield", description = "Cactus Shield",
inventory_image = "shields_inv_shield_cactus.png", inventory_image = "shields_inv_shield_cactus.png",
groups = {armor_shield=6, armor_heal=0, armor_use=1000}, groups = {armor_shield=2, armor_heal=0, armor_use=1000},
wear = 0, wear = 0,
}) })
minetest.register_tool("shields:shield_enhanced_cactus", { minetest.register_tool("shields:shield_enhanced_cactus", {
description = "Enhanced Cactus Shield", description = "Enhanced Cactus Shield",
inventory_image = "shields_inv_shield_enhanced_cactus.png", inventory_image = "shields_inv_shield_enhanced_cactus.png",
groups = {armor_shield=7, armor_heal=0, armor_use=500}, groups = {armor_shield=3, armor_heal=0, armor_use=500},
wear = 0, wear = 0,
}) })
minetest.register_craft({ minetest.register_craft({
@ -59,7 +59,7 @@ if ARMOR_MATERIALS.steel then
minetest.register_tool("shields:shield_steel", { minetest.register_tool("shields:shield_steel", {
description = "Steel Shield", description = "Steel Shield",
inventory_image = "shields_inv_shield_steel.png", inventory_image = "shields_inv_shield_steel.png",
groups = {armor_shield=8, armor_heal=0, armor_use=500}, groups = {armor_shield=3, armor_heal=0, armor_use=500},
wear = 0, wear = 0,
}) })
end end
@ -68,7 +68,7 @@ if ARMOR_MATERIALS.bronze then
minetest.register_tool("shields:shield_bronze", { minetest.register_tool("shields:shield_bronze", {
description = "Bronze Shield", description = "Bronze Shield",
inventory_image = "shields_inv_shield_bronze.png", inventory_image = "shields_inv_shield_bronze.png",
groups = {armor_shield=10, armor_heal=6, armor_use=250}, groups = {armor_shield=4, armor_heal=6, armor_use=250},
wear = 0, wear = 0,
}) })
end end
@ -77,7 +77,7 @@ if ARMOR_MATERIALS.diamond then
minetest.register_tool("shields:shield_diamond", { minetest.register_tool("shields:shield_diamond", {
description = "Diamond Shield", description = "Diamond Shield",
inventory_image = "shields_inv_shield_diamond.png", inventory_image = "shields_inv_shield_diamond.png",
groups = {armor_shield=14, armor_heal=12, armor_use=100}, groups = {armor_shield=6, armor_heal=12, armor_use=100},
wear = 0, wear = 0,
}) })
end end
@ -86,7 +86,7 @@ if ARMOR_MATERIALS.gold then
minetest.register_tool("shields:shield_gold", { minetest.register_tool("shields:shield_gold", {
description = "Gold Shield", description = "Gold Shield",
inventory_image = "shields_inv_shield_gold.png", inventory_image = "shields_inv_shield_gold.png",
groups = {armor_shield=12, armor_heal=6, armor_use=200}, groups = {armor_shield=5, armor_heal=6, armor_use=200},
wear = 0, wear = 0,
}) })
end end
@ -95,7 +95,7 @@ if ARMOR_MATERIALS.mithril then
minetest.register_tool("shields:shield_mithril", { minetest.register_tool("shields:shield_mithril", {
description = "Mithril Shield", description = "Mithril Shield",
inventory_image = "shields_inv_shield_mithril.png", inventory_image = "shields_inv_shield_mithril.png",
groups = {armor_shield=15, armor_heal=12, armor_use=50}, groups = {armor_shield=8, armor_heal=12, armor_use=50},
wear = 0, wear = 0,
}) })
end end