From 0588be5cc8087599238caeb1775398f59ec65478 Mon Sep 17 00:00:00 2001 From: Haxxer Date: Sat, 21 Oct 2023 11:47:20 +0100 Subject: [PATCH] Hotfix --- changelog.md | 3 ++- src/systems/starwarsffg.js | 42 ++++++++++++++++++++++++-------------- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/changelog.md b/changelog.md index 084291b8..c0769c22 100644 --- a/changelog.md +++ b/changelog.md @@ -2,11 +2,12 @@ ## Version 2.7.20 Hotfix -- Fixed item based currencies breaking AGAIN +- Fixed new system support breaking most systems, whoops ## Version 2.7.19 - Added support for the Star Wars FFG system (thanks Grumpkin on the Foundry discord server!) +- Fixed item based currencies breaking AGAIN ## Version 2.7.18 diff --git a/src/systems/starwarsffg.js b/src/systems/starwarsffg.js index b324781b..2bae7b16 100644 --- a/src/systems/starwarsffg.js +++ b/src/systems/starwarsffg.js @@ -1,4 +1,30 @@ export default { + + "VERSION": "1.0.0", + + // The actor class type is the type of actor that will be used for the default item pile actor that is created on first item drop. + "ACTOR_CLASS_TYPE": "character", + + // The item quantity attribute is the path to the attribute on items that denote how many of that item that exists + "ITEM_QUANTITY_ATTRIBUTE": "system.quantity.value", + + // The item price attribute is the path to the attribute on each item that determine how much it costs + "ITEM_PRICE_ATTRIBUTE": "system.price.value", + + // Item types and the filters actively remove items from the item pile inventory UI that users cannot loot, such as spells, feats, and classes + "ITEM_FILTERS": [ + { + "path": "type", + "filters": "species,career,specialization,ability,criticaldamage,criticalinjury,talent,homesteadupgrade,signatureability,forcepower" + } + ], + + // Item similarities determines how item piles detect similarities and differences in the system + "ITEM_SIMILARITIES": ["name", "type"], + + // Currencies in item piles is a versatile system that can accept actor attributes (a number field on the actor's sheet) or items (actual items in their inventory) + // In the case of attributes, the path is relative to the "actor.system" + // In the case of items, it is recommended you export the item with `.toObject()` and strip out any module data "CURRENCIES": [ { "type": "attribute", @@ -13,19 +39,5 @@ export default { "index": 0, "id": "system.stats.credits.value" } - ], - "SECONDARY_CURRENCIES": [], - "CURRENCY_DECIMAL_DIGITS": 1, - "ITEM_FILTERS": [ - { - "path": "type", - "filters": "species,career,specialization,ability,criticaldamage,criticalinjury,talent,homesteadupgrade,signatureability,forcepower" - } - ], - "ITEM_SIMILARITIES": ["name", "type"], - "UNSTACKABLE_ITEM_TYPES": [], - "ACTOR_CLASS_TYPE": "character", - "ITEM_QUANTITY_ATTRIBUTE": "system.quantity.value", - "ITEM_PRICE_ATTRIBUTE": "system.price.value", - "QUANTITY_FOR_PRICE_ATTRIBUTE": "flags.item-piles.system.quantityForPrice" + ] }