[1.1.87] artillery_wagon_ammo inventory is_full returns true when it only has 1 shell (it can hold 100 shell))
Posted: Sun Aug 13, 2023 10:47 pm
The code
would return true even when the entity "carriage" is a artillery wagon that's only holding 1 shell, artillery wagons can hold maximum of 100 shells so this is unexpected
Code: Select all
carriage.get_inventory(defines.inventory.artillery_wagon_ammo).is_full()