seperated the types of filling

This commit is contained in:
Starystars67
2020-05-18 21:33:06 +01:00
parent 098a78dc69
commit a6b341a1c8
2 changed files with 20 additions and 1 deletions

View File

@@ -48,6 +48,15 @@ local function addFuel()
end
end
local function getFuelType()
if energyStorage.getStorage('mainTankR') ~= nil or energyStorage.getStorage('mainTankL') ~= nil or energyStorage.getStorage('mainTank') ~= nil then
obj:queueGameEngineLua("fuelStations.setFuelType(\'Gas\')")
elseif energyStorage.getStorage('mainBattery') ~= nil then
obj:queueGameEngineLua("fuelStations.setFuelType(\'EV\')")
end
end
M.addFuel = addFuel
M.getFuelType = getFuelType
return M