diff --git a/machines/solar_panel_generator.lua b/machines/solar_panel_generator.lua index 9e5c6f4..413f7bb 100644 --- a/machines/solar_panel_generator.lua +++ b/machines/solar_panel_generator.lua @@ -29,7 +29,8 @@ industrialtest.internal.unpackTableInto(industrialtest.SolarPanelBase,{ } }, hasPowerOutput=true, - ioConfig="oooooo" + ioConfig="oooooo", + multiplier=1 }) local solarPanels={} @@ -66,7 +67,7 @@ function industrialtest.SolarPanelBase.action(self,pos) local amount=minetest.get_natural_light(vector.offset(pos,0,1,0))/15.0 local charging=amount>0.5 if charging then - if industrialtest.api.addPower(meta,math.ceil(amount*self.flow))>0 then + if industrialtest.api.addPower(meta,math.ceil(amount*self.flow*self.multiplier))>0 then self:updateFormspec(pos) end self:trigger(pos) @@ -118,7 +119,8 @@ industrialtest.internal.unpackTableInto(industrialtest.LVSolarArray,{ "industrialtest_machine_block.png" }, capacity=industrialtest.api.lvPowerFlow*4, - flow=industrialtest.api.lvPowerFlow*2 + flow=industrialtest.api.lvPowerFlow, + multiplier=1.5 }) industrialtest.LVSolarArray:register()