Skip to content
Snippets Groups Projects

Item stacking limits

Merged 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

Merged by avatar (Apr 17, 2025 12:17pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading