LV Solar Array now outputs LV
This commit is contained in:
parent
5161f70232
commit
c8e506be53
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user