do
local oldModBlueprints = ModBlueprints
function ModBlueprints(all_bps)
oldModBlueprints(all_bps)
for id, bp in all_bps.Unit do
local cats = {}
for k, cat in bp.Categories do
cats[cat] = true
end
LOG('*BM: ' .. repr(cats))
-- LOG('*BM: ' .. cats.RECLAIMABLE)
if bp.Wreckage and cats.RECLAIMABLE then
for ik, rec in bp.Wreckage do
if rec.MassMult >= 0 then
rec.EnergyMult = 0
rec.MassMult = 0.4
rec.HealthMult = 1
rec.ReclaimTimeMultiplier = 1
LOG('*BM: ' .. bp.BlueprintId .. ', ' .. bp.Description)
end
end
end
end -- all_bps.Unit loop
end -- ModBlueprints
end