Skip to content

Commit

Permalink
Added support for the Splittermond system, closes #59
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Mar 10, 2022
1 parent 5a294ea commit d2122c1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ module settings to configure that.
- [Savage Worlds Adventure Edition](https://foundryvtt.com/packages/swade)
- [Tormenta20](https://foundryvtt.com/packages/tormenta20)
- [Warhammer Fantasy Roleplay 4th Ed](https://foundryvtt.com/packages/wfrp4e)
- [Splittermond](https://foundryvtt.com/packages/splittermond)

## Semi-supported systems

Expand Down
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
- Fixed issue relating to some systems not generating a new ID for items, which caused false-positives when trying to find similar items on actors that were the source of said items
- Fixed issue where systems would override core functions on items that modify names and other data, Item Piles will now always call the system's Item specific functions
- Fixes issue with PF1 items sometimes showing up as identified when they were unidentified
- Added support for Warhammer Fantasy Roleplay 4th Ed system
- Added support for the Warhammer Fantasy Roleplay 4th Ed system
- Added support for the Splittermond system

## Version 1.4.5

Expand Down
2 changes: 2 additions & 0 deletions scripts/systems.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import d35e from "./systems/d35e.js";
import swade from "./systems/swade.js";
import tormenta20 from "./systems/tormenta20.js";
import wfrp4e from "./systems/wfrp4e.js"
import splittermond from "./systems/splittermond.js"
// ↑ IMPORT SYSTEMS HERE ↑

/**
Expand All @@ -26,6 +27,7 @@ export const SYSTEMS = {
swade,
tormenta20,
wfrp4e,
splittermond,
// ↑ ADD SYSTEMS HERE ↑
}?.[game.system.id];
}
Expand Down
37 changes: 37 additions & 0 deletions scripts/systems/splittermond.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
export default {
// 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": "npc",

// The item quantity attribute is the path to the attribute on items that denote how many of that item that exists
"ITEM_QUANTITY_ATTRIBUTE": "data.quantity",

// 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": "spell,strength,weakness,mastery,species,culture,ancestry,education,resource,npcfeature,moonsign,language,culturelore,statuseffect,spelleffect"
}
],

// Item similarities determines how item piles detect similarities and differences in the system
"ITEM_SIMILARITIES": ["name", "type", "data.sufferedDamage", "data.quality"],

// Currencies in item piles are a list of names, attribute paths, and images - the attribute path is relative to the actor.data
"CURRENCIES": [
{
name: "Telare",
path: "data.currency.T",
img: "icons/commodities/currency/coins-assorted-mix-platinum.webp"
},
{
name: "Lunare",
path: "data.currency.L",
img: "icons/commodities/currency/coin-embossed-unicorn-silver.webp"
},
{
name: "Solare",
path: "data.currency.S",
img: "icons/commodities/currency/coins-assorted-mix-copper.webp"
}
]
}

0 comments on commit d2122c1

Please sign in to comment.