Lex's Aircraft

by lexsus

Your attention is presented to the futuristic VTOL aircraft that are well suited to the style of the game. The mod includes aircraft: transport, light combat, heavy combat.

Content
27 days ago
1.1 - 2.0
39.2K
Transportation Combat

g [K2 Compat] Aircraft don't account for K2 Vehicle Fuel setting

7 months ago

As far as I'm able to tell, the aircraft don't change back to normal fuel when Krastorio 2's 'Rebalance Vehicle Fuel Usage' setting is toggled off, while vanilla vehicles do. Might I recommend adding a check to your Krastorio compat updates for whether the vanilla car uses K2 fuel or not, and using that to decide whether the aircraft need to be updated? Something like this:

if mods["Krastorio2"] then
if data.raw.car["car"].burner.fuel_category ~= "vehicle-fuel" then
goto fuelskip
else
--Update Fuel to Krastorio 2 vehicle fuel here
end
::fuelskip::
end

New response