Code: Select all
for name, ud in pairs(DEFS.unitDefs) do
if(ud.corpse) then
if(DEFS.featureDefs[ud.corpse]) then
DEFS.featureDefs[ud.corpse].metal = 5
Spring.Echo(ud.corpse)
end
end
end
but there are far more corpses and units than that. The cases match up. Those corpses get their metal set correctly. What am I doing wrong?armbc_dead
corcrash_dead
corbhmth_dead
corgeo_dead
armgeo_dead