Forged Alliance Forever Forged Alliance Forever Forums 2013-09-24T03:50:08+02:00 /feed.php?f=41&t=5200 2013-09-24T03:50:08+02:00 2013-09-24T03:50:08+02:00 /viewtopic.php?t=5200&p=54392#p54392 <![CDATA[Re: Mod help please]]> Statistics: Posted by rockoe10 — 24 Sep 2013, 03:50


]]>
2013-09-21T15:21:13+02:00 2013-09-21T15:21:13+02:00 /viewtopic.php?t=5200&p=54246#p54246 <![CDATA[Re: Mod help please]]>
EDIT:
What was the mod name? And, the multipliers achieve what kind of outcome? That is, why does it multiply by (.4/.9)? Seems like more work than needed?

Statistics: Posted by rockoe10 — 21 Sep 2013, 15:21


]]>
2013-09-19T07:52:54+02:00 2013-09-19T07:52:54+02:00 /viewtopic.php?t=5200&p=54116#p54116 <![CDATA[Re: Mod help please]]>
hook/lua/system/bluprints

Code:
--#****************************************************************************
--#**
--#** 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


]]>
2013-09-18T13:36:03+02:00 2013-09-18T13:36:03+02:00 /viewtopic.php?t=5200&p=54075#p54075 <![CDATA[Mod help please]]>

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


]]>