You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tweaked ItemPiles.API.turnTokensIntoItemPiles to turn tokens into item piles without having the "Display Single Item Image" setting turned on
API changes:
Changed: ItemPiles.API.addItems
This method now expects an array of objects, with item data or Item (Foundry Item class) (key item), and an optional quantity attribute that determines how many of the item to add (key quantity)
It now returns an array of objects, with the item's data (key item) and the quantity added (key quantity)
Changed: ItemPiles.API.removeItems
This method now expects an array of objects each containing the item id (key _id) and the quantity to remove (key quantity), or Items (the Foundry Item class) or strings of IDs to remove all quantities of
It now returns an array of objects, each containing the item that was removed or updated (key item), the quantity that was removed (key quantity), and whether the item was deleted (key deleted)
Changed: ItemPiles.API.transferItems
This method now expects an array of objects each containing the item id (key _id) and the quantity to transfer (key quantity), or Items (the Foundry Item class) or strings of IDs to transfer all quantities of
It now returns an array of objects, each containing the item that was added or updated (key item), the quantity that was transferred (key quantity)
Fixed ItemPiles.API.transferEverything not transferring everything from non-item pile actors
Fixed item and attribute transfer hooks incorrectly returning the target's final quantities, rather than the transferred quantities
Fixed users creating item piles would cause the pile to be spawned on the scene that the GM was viewing at that given moment
Fixed Item Pile config window would not populate some inputs correctly