Releases: fantasycalendar/FoundryVTT-ItemPiles
Releases · fantasycalendar/FoundryVTT-ItemPiles
1.2.0
- Now supports Foundry 0.8.9
- Added setting to output items picked up to chat
- Added setting to hide the "Item Piles" text in the actor header - useful if you have too many modules, and the header is getting crowded
- Added support for the Tormenta 20 system: https://foundryvtt.com/packages/tormenta20
- 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 (keyquantity
) - It now returns an array of objects, with the item's data (key
item
) and the quantity added (keyquantity
)
- This method now expects an array of objects, with item data or Item (Foundry Item class) (key
- Changed:
ItemPiles.API.removeItems
- This method now expects an array of objects each containing the item id (key
_id
) and the quantity to remove (keyquantity
), 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 (keyquantity
), and whether the item was deleted (keydeleted
)
- This method now expects an array of objects each containing the item id (key
- Changed:
ItemPiles.API.transferItems
- This method now expects an array of objects each containing the item id (key
_id
) and the quantity to transfer (keyquantity
), 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 (keyquantity
)
- This method now expects an array of objects each containing the item id (key
- Changed:
- 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
1.1.3
- Adjusted display one-type item piles to also take into account dynamic attributes (gold piles!)
- Fixed prototype tokens not being updated when editing an item pile through its sheet
- Fixed item piles with both "Is Container" and "Override single item token scale" enabled acting strange - item piles will now prioritize the container images over "Display Single Item Image" when "Is Container" is enabled
- Added warning to point out the above
- Adjusted Item Pile UI to be editable even when not enabled
1.1.2
1.1.1
- Added support for the Savage Worlds Adventure Edition: https://foundryvtt.com/packages/swade
- Fixed linked token actors not acting like they are linked - now all tokens on the canvas with the same linked actor share the same state and image
- Fixed dynamic attributes not being treated as numbers, which caused problems in some systems (such as SWADE) if they were stored as strings
1.1.0
- Added support for the D&D 3.5 system: https://foundryvtt.com/packages/D35E
- Added the ability to click on item names to inspect the items - this can be disabled in the item pile's settings
- Hooks that previously only returned the UUID of a given document now actually provides the document itself
- Hooks added:
item-piles-preRattleItemPile
- Called locally before a locked item pile is attempted to be openeditem-piles-rattleItemPile
- Called for everyone after a locked item pile was attempted to be openeditem-piles-preOpenItemPileInventory
- Called locally before an item pile's inventory is openeditem-piles-openItemPileInventory
- Called locally after an item pile's inventory has been opened
- API changes:
- Changed
ItemPiles.API.turnTokenIntoItemPile
toItemPiles.API.turnTokensIntoItemPiles
, now can take array of tokens to turn into piles - Changed
ItemPiles.API.revertTokenFromItemPile
toItemPiles.API.revertTokensFromItemPiles
, now can take array of tokens to revert
- Changed
- Improved token detection when multiple owned tokens are interacting with item piles, it should now more reliably pick sane tokens.
- Now picks in order: controlled token -> last selected token -> the closest owned token.
- Improved module speed when interacting with item piles
- Improved item pile token image and scale updates, should be a bit more stable
- Added warning when no GM is connected when interacting with piles
1.0.9
1.0.8
1.0.7
1.0.6
- Added API endpoints:
ItemPiles.API.getItemPileItemTypeFilters(TokenDocument|Actor)
- Returns the item type filters for a given item pileItemPiles.API.getItemPileItems(TokenDocument|Actor, Array|Boolean)
- Returns the items the item pile contains and can transfer
- Updated japanese localization
- Fixed item piles not respecting item type filters
- Fixed issue with
ItemPiles.API.turnTokenIntoItemPile
not actually turning the token into an item pile - Fixed issues with item pile tokens sometimes switching to their actors image when they were empty
1.0.5
- Added french localization
- Added german localization
- Added warning if no system match was found
- Added dialog for users who installed Item Piles before their system became supported
- Fixed issue with Item Piles throwing an error with tokens whose actors had been deleted