What do I want?
I want a way to identify the objects that cannot be stacked.Context
I am creating some code to alter the size of the stacks in the objects, however I can't find a way to identify the objects that are stackable from those that are not.According to the documentation, there is a flag with this objective, but as you can see in this code that is not always present
Code: Select all
[ 'light-armor' ] = {
[ 'type' ] = 'armor'
[ 'name' ] = 'light-armor'
[ 'icon' ] = '__base__/graphics/icons/light-armor.png'
[ 'icon_size' ] = 64
[ 'icon_mipmaps' ] = 4
[ 'resistances' ] = { ... }
[ 'subgroup' ] = 'armor'
[ 'order' ] = 'a[light-armor]'
[ 'stack_size' ] = 1
[ 'infinite' ] = true
}
Code: Select all
[ 'nuclear-fuel' ] = {
[ 'type' ] = 'item'
[ 'name' ] = 'nuclear-fuel'
[ 'icon' ] = '__base__/graphics/icons/nuclear-fuel.png'
[ 'icon_size' ] = 64
[ 'icon_mipmaps' ] = 4
[ 'pictures' ] = { ... }
[ 'fuel_category' ] = 'chemical'
[ 'fuel_value' ] = '1.21GJ'
[ 'fuel_acceleration_multiplier' ] = 2.5
[ 'fuel_top_speed_multiplier' ] = 1.15
[ 'subgroup' ] = 'processed-fuel'
[ 'order' ] = 'q[uranium-rocket-fuel]'
[ 'stack_size' ] = 1
}