Currently the stack_size item property can be set to any int value. It would make sense to automatically remove the items with zero stack sizes from the inventory when working with InventoryStacked and InventoryGridStacked.
Initially this could be implemented in StacksConstraint.set_item_stack_size and later also integrated into the item property editor.
It would also make sense for StacksConstraint.set_item_stack_size to reject negative values and values greater than the max stack size.
Currently the
stack_size
item property can be set to anyint
value. It would make sense to automatically remove the items with zero stack sizes from the inventory when working withInventoryStacked
andInventoryGridStacked
.Initially this could be implemented in
StacksConstraint.set_item_stack_size
and later also integrated into the item property editor.It would also make sense for
StacksConstraint.set_item_stack_size
to reject negative values and values greater than the max stack size.