New armors

master
NPXcoot 2016-09-14 16:41:31 +02:00
parent e561b7ae43
commit 6c0264ad94
96 changed files with 100 additions and 53 deletions

View File

@ -65,4 +65,4 @@ dofile(path.."/nssm_materials.lua")
dofile(path.."/nssm_spears.lua")
dofile(path.."/nssm_api.lua")
dofile(path.."/nssm_weapons.lua")
--dofile(path.."/nssm_armor.lua")
dofile(path.."/nssm_armor.lua")

View File

@ -1,36 +1,32 @@
if minetest.get_modpath("3d_armor") then
if minetest.get_modpath("nssm") then
--Armors
local stats = {
wolf = {name="Werewolf", armor=1, heal=0, use=10, effect=mww},
white_wolf = {name="Werewolf", armor=1, heal=0, use=10, effect=www},
bloco = {name="Bloco", armor=1, heal=0, use=10, effect=bloc},
croco = {name="Crocodile", armor=1, heal=0, use=10, effect=croc},
ant = {name="", armor=1, heal=0, use=10, effect=bloc},
manticore = {name="", armor=1, heal=0, use=10, effect=mant},
--[[brass = { name="Brass", armor=1.8, heal=0, use=650 },
cast = { name="Cast Iron", armor=2.5, heal=8, use=200 },
carbon = { name="Carbon Steel", armor=2.7, heal=10, use=100 },
stainless = { name="Stainless Steel", armor=2.7, heal=10, use=75 },]]
wolf = {name="Werewolf", armor=1, heal=0, use=10},
whitewolf = {name="White Werewolf", armor=1, heal=0, use=10},
bloco = {name="Bloco", armor=1, heal=0, use=10},
croco = {name="Crocodile", armor=1, heal=0, use=10},
ant = {name="Ant", armor=1, heal=0},
ice = {name="Ice Teeth", armor=1, heal=0, use=10},
}
local mats = {
wolf="nssm:wolf_fur",
white_wolf="nssm:white_wolf_fur",
whitewolf="nssm:white_wolf_fur",
bloco="nssm:bloco_skin",
croco="nssm:crocodile_skin",
ant="nssm:ant_esoskeleton",
manticore="nssm:manticore_fur",
ant="nssm:ant_hard_skin",
ice="nssm:little_ice_tooth",
}
for k, v in pairs(stats) do
minetest.register_tool("nssm:helmet_"..k, {
description = v.name.." Helmet",
inventory_image = "inv_helmet_"..k..".png",
inventory_image ="inv_helmet_"..k..".png",
groups = {armor_head=math.floor(5*v.armor), armor_heal=v.heal, armor_use=v.use},
wear = 0,
})
minetest.register_tool("nssm:chestplate_"..k, {
description = v.name.." Chestplate",
inventory_image = "inv_chestplate_"..k..".png",
inventory_image ="inv_chestplate_"..k..".png",
groups = {armor_torso=math.floor(8*v.armor), armor_heal=v.heal, armor_use=v.use},
wear = 0,
})
@ -42,7 +38,7 @@ if minetest.get_modpath("3d_armor") then
})
minetest.register_tool("nssm:boots_"..k, {
description = v.name.." Boots",
inventory_image = "inv_boots_"..k..".png",
inventory_image ="inv_boots_"..k..".png",
groups = {armor_feet=math.floor(4*v.armor), armor_heal=v.heal, armor_use=v.use},
wear = 0,
})
@ -81,26 +77,27 @@ if minetest.get_modpath("3d_armor") then
},
})
end
--shields
if minetest.get_modpath("shields") then
local stats = {
crab = {name="Crab", armor=1, heal=0, use=10},
ice_teeth ={name="Ice Teeth", armor=1, heal=0, use=10}
ice ={name="Ice Teeth", armor=1, heal=0, use=10}
}
local mats = {
crab="nssm:crab_carapace",
ice_teeth="nssm:little_ice_tooth",
crab="nssm:crab_carapace_fragment",
ice="nssm:little_ice_tooth",
}
for a, b in pairs(stats) do
minetest.register_tool("nssm:shield_"..a, {
for k, v in pairs(stats) do
minetest.register_tool("nssm:shield_"..k, {
description = v.name.." Shield",
inventory_image = "inv_shield_"..a..".png",
groups = {armor_shield=math.floor(5*v.armor), armor_heal=v.heal, armor_use=v.use},
inventory_image ="inv_shield_"..k..".png",
groups = {armor_head=math.floor(5*v.armor), armor_heal=v.heal, armor_use=v.use},
wear = 0,
})
local m = mats[a]
local m = mats[k]
minetest.register_craft({
output = "nssm:shield_"..a,
output = "nssm:shield_"..k,
recipe = {
{m, m, m},
{m, m, m},
@ -109,5 +106,64 @@ if minetest.get_modpath("3d_armor") then
})
end
end
end
end
--Special objects (pumpking helmet, masticone helmet, crowned masticone helmet, crown,)
if minetest.get_modpath("3d_armor") then
local stats = {
pumpking = {name="Pumpking Head", armor=1, heal=0, use=10},
masticone ={name="Masticone Head", armor=1, heal=0, use=10},
crown ={name="Dukking Crown", armor=1, heal=0, use=10},
masticone_crowned ={name="Masticone Crowned Head", armor=1, heal=0, use=10},
snake ={name="", armor=1, heal=0, use=10},
}
--[[local mats = {
crab="nssm:crab_carapace_fragment",
ice="nssm:little_ice_tooth",
}]]
for k, v in pairs(stats) do
minetest.register_tool("nssm:helmet_"..k, {
description = v.name.." ",
inventory_image ="inv_helmet_"..k..".png",
groups = {armor_shield=math.floor(5*v.armor), armor_heal=v.heal, armor_use=v.use},
wear = 0,
})
minetest.register_tool("nssm:chestplate_snake", {
description = "Snake Scute Chestplate",
inventory_image ="inv_chestplate_snake.png",
groups = {armor_torso=math.floor(8*v.armor), armor_heal=v.heal, armor_use=v.use},
wear = 0,
})
end
minetest.register_craft({
output = "nssm:chestplate_snake",
recipe = {
{"default:iron_ingot", "", "default:iron_ingot"},
{"default:iron_ingot", "nssm:snake_scute", "default:iron_ingot"},
{"default:iron_ingot", "default:iron_ingot", "default:iron_ingot"},
},
})
minetest.register_craft({
output = "nssm:helmet_masticone",
recipe = {
{"nssm:masticone_skull_fragments", "nssm:masticone_skull_fragments", "nssm:masticone_skull_fragments"},
{"nssm:masticone_skull_fragments", "nssm:masticone_skull_fragments", "nssm:masticone_skull_fragments"},
{"nssm:masticone_skull_fragments", "nssm:masticone_skull_fragments", "nssm:masticone_skull_fragments"},
},
})
minetest.register_craft({
output = "nssm:helmet_masticone_crowned",
recipe = {
{"", "nssm:helmet_crown", ""},
{"", "nssm:helmet_masticone", ""},
{"", "", ""},
},
})
end

View File

@ -12,13 +12,13 @@ end
nssm_register_noneatcraftitems ('sky_feather','Sky Feather')
nssm_register_noneatcraftitems ('snake_scute','Snake Scute')
nssm_register_noneatcraftitems ('eyed_tentacle','Eyed Tentacle')
nssm_register_noneatcraftitems ('king_duck_crown','King Duck Crown')
--nssm_register_noneatcraftitems ('king_duck_crown','King Duck Crown')
nssm_register_noneatcraftitems ('great_energy_globe','Great Energy Globe')
nssm_register_noneatcraftitems ('superior_energy_globe','Superior Energy Globe')
nssm_register_noneatcraftitems ('ant_queen_abdomen','Ant Queen Abdomen')
nssm_register_noneatcraftitems ('masticone_skull','Masticone Skull')
--nssm_register_noneatcraftitems ('masticone_skull','Masticone Skull')
nssm_register_noneatcraftitems ('masticone_skull_fragments','Masticone Skull Fragments')
nssm_register_noneatcraftitems ('masticone_skull_crowned','Masticone Skull Crowned')
--nssm_register_noneatcraftitems ('masticone_skull_crowned','Masticone Skull Crowned')
nssm_register_noneatcraftitems ('tentacle_curly','Kraken Tentacle')
nssm_register_noneatcraftitems ('lava_titan_eye','Lava Titan Eye')
nssm_register_noneatcraftitems ('duck_beak','Duck Beak')
@ -31,10 +31,10 @@ nssm_register_noneatcraftitems ('crab_chela','Crab Chela')
nssm_register_noneatcraftitems ('cursed_pumpkin_seed','Cursed Pumpkin Seed')
nssm_register_noneatcraftitems ('mantis_claw','Mantis Claw')
--nssm_register_noneatcraftitems ('manticore_fur','Manticore Fur')
--nssm_register_noneatcraftitems ('ant_hard_skin','Ant Hard Skin')
--nssm_register_noneatcraftitems ('bloco_skin','Bloco Skin')
--nssm_register_noneatcraftitems ('crab_carapace_fragment','Crab Carapace Fragment')
--nssm_register_noneatcraftitems ('crocodile_skin','Crocodile Skin')
nssm_register_noneatcraftitems ('ant_hard_skin','Ant Hard Skin')
nssm_register_noneatcraftitems ('bloco_skin','Bloco Skin')
nssm_register_noneatcraftitems ('crab_carapace_fragment','Crab Carapace Fragment')
nssm_register_noneatcraftitems ('crocodile_skin','Crocodile Skin')
nssm_register_noneatcraftitems ('manticore_spine','Manticore Spine')
nssm_register_noneatcraftitems ('night_feather','Night Feather')
nssm_register_noneatcraftitems ('sun_feather','Sun Feather')
@ -567,20 +567,20 @@ minetest.register_craft({
minetest.register_craft({
output = 'nssm:mese_egg',
recipe = {
{'nssm:tarantula_chelicerae', 'nssm:masticone_skull_crowned', 'nssm:eyed_tentacle'},
{'nssm:tarantula_chelicerae', 'nssm:helmet_masticone_crowned', 'nssm:eyed_tentacle'},
{'nssm:black_ice_tooth', 'nssm:superior_energy_globe', 'nssm:sky_feather'},
{'nssm:cursed_pumpkin_seed', 'nssm:ant_queen_abdomen', 'nssm:snake_scute'},
}
})
minetest.register_craft({
--[[minetest.register_craft({
output = 'nssm:masticone_skull_crowned',
recipe = {
{'', 'nssm:king_duck_crown', ''},
{'', 'nssm:masticone_skull', ''},
{'', '', ''},
}
})
})]]
minetest.register_craft({
output = 'nssm:eyed_tentacle',
@ -590,7 +590,7 @@ minetest.register_craft({
{'', '', ''},
}
})
--[[
minetest.register_craft({
output = 'nssm:masticone_skull',
recipe = {
@ -598,27 +598,18 @@ minetest.register_craft({
{'nssm:masticone_skull_fragments', 'nssm:masticone_skull_fragments', 'nssm:masticone_skull_fragments'},
{'nssm:masticone_skull_fragments', 'nssm:masticone_skull_fragments', 'nssm:masticone_skull_fragments'},
}
})
})]]
minetest.register_craft({
output = 'nssm:rope 16',
recipe = {
{'', 'nssm:wolf_fur', ''},
{'', 'nssm:wolf_fur', ''},
{'', 'nssm:wolf_fur', ''},
{'', 'nssm:web', ''},
{'', 'nssm:web', ''},
{'', 'nssm:web', ''},
}
})
minetest.register_craft({
output = 'nssm:rope 16',
recipe = {
{'', 'nssm:white_wolf_fur', ''},
{'', 'nssm:white_wolf_fur', ''},
{'', 'nssm:white_wolf_fur', ''},
}
})
minetest.register_craft({
output = 'nssm:sky_feather',
recipe = {

View File

Before

Width:  |  Height:  |  Size: 176 B

After

Width:  |  Height:  |  Size: 176 B

View File

Before

Width:  |  Height:  |  Size: 285 B

After

Width:  |  Height:  |  Size: 285 B

View File

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 289 B

View File

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 345 B

View File

Before

Width:  |  Height:  |  Size: 293 B

After

Width:  |  Height:  |  Size: 293 B

View File

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 287 B

View File

Before

Width:  |  Height:  |  Size: 298 B

After

Width:  |  Height:  |  Size: 298 B

View File

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 457 B

View File

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 379 B

View File

Before

Width:  |  Height:  |  Size: 557 B

After

Width:  |  Height:  |  Size: 557 B

View File

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

View File

Before

Width:  |  Height:  |  Size: 339 B

After

Width:  |  Height:  |  Size: 339 B

View File

Before

Width:  |  Height:  |  Size: 534 B

After

Width:  |  Height:  |  Size: 534 B

View File

Before

Width:  |  Height:  |  Size: 196 B

After

Width:  |  Height:  |  Size: 196 B

View File

Before

Width:  |  Height:  |  Size: 460 B

After

Width:  |  Height:  |  Size: 460 B

View File

Before

Width:  |  Height:  |  Size: 537 B

After

Width:  |  Height:  |  Size: 537 B

View File

Before

Width:  |  Height:  |  Size: 529 B

After

Width:  |  Height:  |  Size: 529 B

View File

Before

Width:  |  Height:  |  Size: 617 B

After

Width:  |  Height:  |  Size: 617 B

View File

Before

Width:  |  Height:  |  Size: 564 B

After

Width:  |  Height:  |  Size: 564 B

View File

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 549 B

View File

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 463 B

View File

Before

Width:  |  Height:  |  Size: 696 B

After

Width:  |  Height:  |  Size: 696 B

View File

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 670 B

View File

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 238 B

View File

Before

Width:  |  Height:  |  Size: 440 B

After

Width:  |  Height:  |  Size: 440 B

View File

Before

Width:  |  Height:  |  Size: 447 B

After

Width:  |  Height:  |  Size: 447 B

View File

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 611 B

View File

Before

Width:  |  Height:  |  Size: 396 B

After

Width:  |  Height:  |  Size: 396 B

View File

Before

Width:  |  Height:  |  Size: 535 B

After

Width:  |  Height:  |  Size: 535 B

View File

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 422 B

View File

Before

Width:  |  Height:  |  Size: 628 B

After

Width:  |  Height:  |  Size: 628 B

View File

Before

Width:  |  Height:  |  Size: 322 B

After

Width:  |  Height:  |  Size: 322 B

View File

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 165 B

View File

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

View File

Before

Width:  |  Height:  |  Size: 239 B

After

Width:  |  Height:  |  Size: 239 B

View File

Before

Width:  |  Height:  |  Size: 530 B

After

Width:  |  Height:  |  Size: 530 B

View File

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 248 B

View File

Before

Width:  |  Height:  |  Size: 692 B

After

Width:  |  Height:  |  Size: 692 B

View File

Before

Width:  |  Height:  |  Size: 274 B

After

Width:  |  Height:  |  Size: 274 B

View File

Before

Width:  |  Height:  |  Size: 664 B

After

Width:  |  Height:  |  Size: 664 B

View File

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 248 B

View File

Before

Width:  |  Height:  |  Size: 659 B

After

Width:  |  Height:  |  Size: 659 B

View File

Before

Width:  |  Height:  |  Size: 251 B

After

Width:  |  Height:  |  Size: 251 B

View File

Before

Width:  |  Height:  |  Size: 823 B

After

Width:  |  Height:  |  Size: 823 B

View File

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

View File

Before

Width:  |  Height:  |  Size: 828 B

After

Width:  |  Height:  |  Size: 828 B

View File

Before

Width:  |  Height:  |  Size: 399 B

After

Width:  |  Height:  |  Size: 399 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 379 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 576 B

After

Width:  |  Height:  |  Size: 576 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 450 B

View File

Before

Width:  |  Height:  |  Size: 913 B

After

Width:  |  Height:  |  Size: 913 B

View File

Before

Width:  |  Height:  |  Size: 319 B

After

Width:  |  Height:  |  Size: 319 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 538 B

After

Width:  |  Height:  |  Size: 538 B

View File

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 458 B

View File

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View File

Before

Width:  |  Height:  |  Size: 743 B

After

Width:  |  Height:  |  Size: 743 B

View File

Before

Width:  |  Height:  |  Size: 322 B

After

Width:  |  Height:  |  Size: 322 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

View File

Before

Width:  |  Height:  |  Size: 891 B

After

Width:  |  Height:  |  Size: 891 B

View File

Before

Width:  |  Height:  |  Size: 320 B

After

Width:  |  Height:  |  Size: 320 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 396 B

After

Width:  |  Height:  |  Size: 396 B

View File

Before

Width:  |  Height:  |  Size: 809 B

After

Width:  |  Height:  |  Size: 809 B

View File

Before

Width:  |  Height:  |  Size: 814 B

After

Width:  |  Height:  |  Size: 814 B

View File

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

View File

Before

Width:  |  Height:  |  Size: 375 B

After

Width:  |  Height:  |  Size: 375 B

View File

Before

Width:  |  Height:  |  Size: 691 B

After

Width:  |  Height:  |  Size: 691 B

View File

Before

Width:  |  Height:  |  Size: 344 B

After

Width:  |  Height:  |  Size: 344 B

View File

Before

Width:  |  Height:  |  Size: 888 B

After

Width:  |  Height:  |  Size: 888 B

View File

Before

Width:  |  Height:  |  Size: 413 B

After

Width:  |  Height:  |  Size: 413 B

View File

Before

Width:  |  Height:  |  Size: 895 B

After

Width:  |  Height:  |  Size: 895 B

View File

Before

Width:  |  Height:  |  Size: 389 B

After

Width:  |  Height:  |  Size: 389 B

View File

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 327 B

View File

Before

Width:  |  Height:  |  Size: 261 B

After

Width:  |  Height:  |  Size: 261 B

View File

Before

Width:  |  Height:  |  Size: 359 B

After

Width:  |  Height:  |  Size: 359 B

View File

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 295 B

View File

Before

Width:  |  Height:  |  Size: 488 B

After

Width:  |  Height:  |  Size: 488 B

View File

Before

Width:  |  Height:  |  Size: 325 B

After

Width:  |  Height:  |  Size: 325 B

View File

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 549 B

View File

Before

Width:  |  Height:  |  Size: 365 B

After

Width:  |  Height:  |  Size: 365 B

View File

Before

Width:  |  Height:  |  Size: 432 B

After

Width:  |  Height:  |  Size: 432 B

View File

Before

Width:  |  Height:  |  Size: 340 B

After

Width:  |  Height:  |  Size: 340 B

View File

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 586 B

View File

Before

Width:  |  Height:  |  Size: 335 B

After

Width:  |  Height:  |  Size: 335 B

View File

Before

Width:  |  Height:  |  Size: 466 B

After

Width:  |  Height:  |  Size: 466 B

View File

Before

Width:  |  Height:  |  Size: 483 B

After

Width:  |  Height:  |  Size: 483 B

View File

Before

Width:  |  Height:  |  Size: 783 B

After

Width:  |  Height:  |  Size: 783 B

View File

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 560 B