Added Fuel Leak

When the random setting goes off to explode/set fire to the vehicle, it will also set the Fuel Leak Rate to .15 Liters/second.
This commit is contained in:
BuilderSky 2022-06-26 14:07:06 -05:00 committed by Deer McDurr
parent 194ab7945c
commit 751f8c873e

View File

@ -26,6 +26,7 @@ local function addFuel()
if math.random() < 0.002 then
beamstate.breakAllBreakgroups()
fire.explodeVehicle()
energyStorage.getStorages().mainTank.currentLeakRate = .15
ui_message("Turn off your engine!", 5, "fuelStationsBoom")
end
end