Skip to content
Snippets Groups Projects
Commit d1393438 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'ItemStackingLimits' into 'master'

Item stacking limits

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.
parents fe773c80 1dc85d15
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment