-
- Downloads
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.
Showing
- game/engines/default/engine/Object.lua 37 additions, 19 deletionsgame/engines/default/engine/Object.lua
- game/engines/default/engine/Store.lua 1 addition, 0 deletionsgame/engines/default/engine/Store.lua
- game/engines/default/engine/interface/ActorInventory.lua 195 additions, 71 deletionsgame/engines/default/engine/interface/ActorInventory.lua
- game/modules/tome/class/Actor.lua 32 additions, 7 deletionsgame/modules/tome/class/Actor.lua
- game/modules/tome/class/Player.lua 0 additions, 1 deletiongame/modules/tome/class/Player.lua
- game/modules/tome/class/Store.lua 2 additions, 2 deletionsgame/modules/tome/class/Store.lua
- game/modules/tome/data/talents/spells/golemancy.lua 1 addition, 1 deletiongame/modules/tome/data/talents/spells/golemancy.lua
- game/modules/tome/dialogs/MapMenu.lua 4 additions, 3 deletionsgame/modules/tome/dialogs/MapMenu.lua
- game/modules/tome/dialogs/PartySendItem.lua 4 additions, 5 deletionsgame/modules/tome/dialogs/PartySendItem.lua
- game/modules/tome/dialogs/ShowEquipInven.lua 1 addition, 1 deletiongame/modules/tome/dialogs/ShowEquipInven.lua
- game/modules/tome/dialogs/UseItemDialog.lua 1 addition, 1 deletiongame/modules/tome/dialogs/UseItemDialog.lua
- game/modules/tome/load.lua 1 addition, 1 deletiongame/modules/tome/load.lua
Loading
Please register or sign in to comment