Skip to content

Commit

Permalink
Merge pull request #573 from xdy/add-support
Browse files Browse the repository at this point in the history
 Adds support for Dragonbane system (https://github.com/pafvel/dragon…
  • Loading branch information
Haxxer authored May 19, 2024
2 parents 0d92eea + 861c9fd commit 9442a9a
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/systems.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ import pirateborg from "./systems/pirateborg.js";
import starwarsffg from "./systems/starwarsffg.js";
import demonlord from "./systems/demonlord.js";
import dnd5e241 from "./systems/dnd5e-2.4.1.js";
import dragonbane from "./systems/dragonbane.js";
import twodsix from "./systems/twodsix.js";
// ↑ IMPORT SYSTEMS HERE ↑

/**
Expand Down Expand Up @@ -161,6 +163,12 @@ export const SYSTEMS = {
"shadowdark": {
"latest": shadowdark
},
"dragonbane": {
"latest": dragonbane
},
"twodsix": {
"latest": twodsix
},
// ↑ ADD SYSTEMS HERE ↑
},

Expand Down
72 changes: 72 additions & 0 deletions src/systems/dragonbane.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
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 class type is the type of item that will be used for the default loot item
"ITEM_CLASS_LOOT_TYPE": "",

// The item class type is the type of item that will be used for the default weapon item
"ITEM_CLASS_WEAPON_TYPE": "weapon",

// The item class type is the type of item that will be used for the default equipment item
"ITEM_CLASS_EQUIPMENT_TYPE": "item",

// 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",

// The item price attribute is the path to the attribute on each item that determine how much it costs
"ITEM_PRICE_ATTRIBUTE": "system.cost",

// 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": "ability,kin,profession,skill,spell"
}
],

// 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",
name: "Gold",
img: "icons/commodities/currency/coin-embossed-crown-gold.webp",
abbreviation: "{#}GC",
data: {
path: "system.currency.gc",
},
primary: true,
exchangeRate: 1
},
{
type: "attribute",
name: "Silver",
img: "icons/commodities/currency/coin-engraved-moon-silver.webp",
abbreviation: "{#}SC",
data: {
path: "system.currency.gs",
},
primary: false,
exchangeRate: 0.1
},
{
type: "attribute",
name: "Copper",
img: "icons/commodities/currency/coin-engraved-waves-copper.webp",
abbreviation: "{#}CC",
data: {
path: "system.currency.gc",
},
primary: false,
exchangeRate: 0.01
}
]
}
40 changes: 40 additions & 0 deletions src/systems/twodsix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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": "traveller",

// The item class type is the type of item that will be used for the default loot item
"ITEM_CLASS_LOOT_TYPE": "",

// The item class type is the type of item that will be used for the default weapon item
"ITEM_CLASS_WEAPON_TYPE": "weapon",

// The item class type is the type of item that will be used for the default equipment item
"ITEM_CLASS_EQUIPMENT_TYPE": "item",

// 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",

// The item price attribute is the path to the attribute on each item that determine how much it costs
"ITEM_PRICE_ATTRIBUTE": "system.price",

// 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": "skills,spell,trait,ship_position"
}
],

// Item similarities determines how item piles detect similarities and differences in the system
"ITEM_SIMILARITIES": [],

// 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": [],

"CURRENCY_DECIMAL_DIGITS": 0.00001
}

0 comments on commit 9442a9a

Please sign in to comment.