Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Oct 21, 2023
1 parent 7d05186 commit 0588be5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 16 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
42 changes: 27 additions & 15 deletions src/systems/starwarsffg.js
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
]
}

0 comments on commit 0588be5

Please sign in to comment.