Skip to content

Item stacking limits

Hachem_Muche requested to merge Hachem_Muche/t-engine4:ItemStackingLimits into master

Alchemist golems will no longer equip entire stacks of gems in their gem slots. When buying part of a stack of objects from a store, the log will correctly show the number purchased. Dropping a partial stack of objects will drop a new stack rather than individual objects. When picking up an object, the correct item will be shown as newly picked up in the inventory dialog. Fixed a rare bug when transferring items if the recipient inventory was full.

  • Adds support for an inventory-specific stack_limit parameter when defining an inventory. (in .infos or actor.body table.) The changes are backward compatible and the new stack_limit is dynamically changeable.

This affects addObject, removeObject, sortInven, wearObject, pickupFloor, dropFloor, Improves object stacking functions to handle a specified number to unstack/stack. Fixed a bug in itemPosition so that it will correctly search stacked objects and returns the stack position. Can search by reference. The actor/object checks in pickupFloor are now passed the number of stacked objects picked up to allow them to work correctly on partial

stacks. Extended inventory definition support to initialize with a table to values. Fixed a bug when inspecting actor inventories in debug mode.

Merge request reports

Loading