Skip to content

Releases: fantasycalendar/FoundryVTT-ItemPiles

1.2.0

16 Jan 18:23
Compare
Choose a tag to compare
  • 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 (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

1.1.3

11 Jan 00:31
Compare
Choose a tag to compare
  • 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

09 Jan 21:48
b2e4748
Compare
Choose a tag to compare
  • Fixed dropping items onto piles not working when it had an interaction distance of infinite
  • Fixed macro input field in item pile config was incorrectly set to "number" rather than "text"

1.1.1

08 Jan 22:17
Compare
Choose a tag to compare
  • 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

08 Jan 17:35
Compare
Choose a tag to compare
  • 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 opened
    • item-piles-rattleItemPile - Called for everyone after a locked item pile was attempted to be opened
    • item-piles-preOpenItemPileInventory - Called locally before an item pile's inventory is opened
    • item-piles-openItemPileInventory - Called locally after an item pile's inventory has been opened
  • API changes:
    • Changed ItemPiles.API.turnTokenIntoItemPile to ItemPiles.API.turnTokensIntoItemPiles, now can take array of tokens to turn into piles
    • Changed ItemPiles.API.revertTokenFromItemPile to ItemPiles.API.revertTokensFromItemPiles, now can take array of tokens to revert
  • 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

07 Jan 17:57
Compare
Choose a tag to compare
  • Fixed module settings would stay blank even on a recognized game system

1.0.8

07 Jan 17:37
Compare
Choose a tag to compare
  • Fixed item pile token image not being updated when first creating a new item pile
  • Fixed item piles acting as non-empty when attributes were incorrectly configured
  • Fixed the Take All Items button not taking items from item piles

1.0.7

07 Jan 16:45
Compare
Choose a tag to compare
  • Fixed module being broken

1.0.6

07 Jan 16:30
Compare
Choose a tag to compare
  • Added API endpoints:
    • ItemPiles.API.getItemPileItemTypeFilters(TokenDocument|Actor) - Returns the item type filters for a given item pile
    • ItemPiles.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

06 Jan 22:10
Compare
Choose a tag to compare
  • 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