add group metal/weapon to registered items

master
ademant 2019-01-04 08:21:58 +01:00
parent b98185a2af
commit f0a5a6a502
2 changed files with 2 additions and 0 deletions

View File

@ -339,6 +339,7 @@ for i,tdef in pairs(miner_definition) do
-- define ingot
if tdef.groups.has_bar then
local ingot_def=local_create_def(i,"ingot",tdef.groups.has_bar,tdef)
ingot_def.groups["metal"]=tdef.tier or 1 -- setting metal group
ingot_def.inventory_image=minerdream.modname.."_"..i.."_ingot.png"
ingot_def.stack_max = minerdream.ingot_max_stack
if tdef.ingot_name then --already defined and overridden with new image

View File

@ -36,6 +36,7 @@ for i,tdef in pairs(tool_definition) do
-- tt_def={description=i.." "..tool,
inventory_image=minerdream.modname.."_"..tool.."_"..i..".png",
range=tooldef.range or 2,
groups={weapon=1},
tool_capabilities={max_drop_level = 1,groupcaps={},
damage_groups = {fleshy = ttv.fleshy or 4},},
-- damage_groups = {fleshy=6.25},