Statistics: Posted by rockoe10 — 21 Sep 2013, 15:21
--#****************************************************************************
--#**
--#** Hooked To: /lua/system/blueprints.lua
--#**
--#** Modded By: FuryoftheStars
--#**
--#*********************************************************************
local WreckageReduction = function(all_bps)
for _, bp in all_bps do
if bp.Wreckage then
--if bp.Wreckage.EnergyMult then
-- bp.Wreckage.EnergyMult = bp.Wreckage.EnergyMult / 1.5
--end
if bp.Wreckage.HealthMult then
bp.Wreckage.HealthMult = bp.Wreckage.HealthMult * (0.4/0.9)
end
if bp.Wreckage.MassMult then
bp.Wreckage.MassMult = bp.Wreckage.MassMult * (1/0.9)
end
end
end
end
local OldModBlueprints = ModBlueprints
function ModBlueprints(all_blueprints)
OldModBlueprints(all_blueprints)
WreckageReduction(all_blueprints.Unit)
end
--]]
Statistics: Posted by Krapougnak — 19 Sep 2013, 07:52
do
local oldModBlueprints = ModBlueprints
function ModBlueprints(all_bps)
oldModBlueprints(all_bps)
forid, 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
Statistics: Posted by rockoe10 — 18 Sep 2013, 13:36