Skip to content

Commit

Permalink
Merge pull request #554 from p4535992/add_system_reference_to_stackab…
Browse files Browse the repository at this point in the history
…le_item

add i18n labels and and added placeholders in all the systems on with other system with a warning message
  • Loading branch information
Haxxer authored Apr 11, 2024
2 parents dbc73e3 + 5ca5d1a commit 89f0561
Show file tree
Hide file tree
Showing 41 changed files with 370 additions and 0 deletions.
12 changes: 12 additions & 0 deletions languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,18 @@
"Title": "Actor class type",
"Hint": "This setting defines the type of actor that will be used for the default item pile actor that is created on first item drop. In the case of D&D5e, this is \"character\", as it does not have a dedicated loot actor type."
},
"ItemLootClass": {
"Title": "Item Loot class type",
"Hint": "The item class type is the type of item that will be used for the default loot item."
},
"ItemWeaponClass": {
"Title": "Item Weapon class type",
"Hint": "The item class type is the type of item that will be used for the default weapon item."
},
"ItemEquipmentClass": {
"Title": "Item Equipment class type",
"Hint": "The item class type is the type of item that will be used for the default equipment item."
},
"Quantity": {
"Title": "Item quantity attribute",
"Hint": "Here you can configure what the attribute path is for each item's quantity. For example, in D&D5e system, each item's quantity is stored in the item's \"item.system.quantity\" attribute, so you'd put \"system.quantity\" in this setting."
Expand Down
6 changes: 6 additions & 0 deletions src/API/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,12 @@ class API {
* @return {boolean}
*/
static isItemPileAuctioneer(target, data = false) {
if(!game.modules.get("item_piles_auctioneer")?.active) {
let word = "install and activate";
if (game.modules.get('item_piles_auctioneer')) word = "activate";
Helpers.custom_warning(`This api method from Item Piles requires the 'item_piles_auctioneer' module. Please ${word} it.`, true);
return false;
}
return PileUtilities.isItemPileAuctioneer(target, data);
}

Expand Down
9 changes: 9 additions & 0 deletions src/systems/a5e.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ 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": "character",

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

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

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

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

Expand Down
10 changes: 10 additions & 0 deletions src/systems/alienrpg.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ export default {
},
"ITEM_SIMILARITIES": ["name", "type"],
"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": "",

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

"ITEM_QUANTITY_ATTRIBUTE": "system.attributes.quantity.value",
"ITEM_PRICE_ATTRIBUTE": "system.attributes.cost.value"
}
9 changes: 9 additions & 0 deletions src/systems/blade-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "loot",

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

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/cyberpunk-red-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "character",

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

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

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/cyphersystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "pc",

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

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

// 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.basic.quantity",

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

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

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/dark-heresy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "acolyte",

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

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/dcc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "Player",

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

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/demonlord.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "creature",

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

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/dnd4e.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "Player 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": "",

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/dnd5e-2.0.3.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "character",

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

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/dnd5e-2.4.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ 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": "character",

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

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/ds4.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ 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": "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": "",

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/fallout.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "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": "",

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/forbidden-lands.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "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": "",

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/icrpg.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "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": "",

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/icrpgme.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "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": "",

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/kamigakari.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "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": "",

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/knave.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "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": "",

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/naheulbeuk.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "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": "",

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

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

Expand Down
9 changes: 9 additions & 0 deletions src/systems/ose.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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": "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": "",

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

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

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

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

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

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

Expand Down
Loading

0 comments on commit 89f0561

Please sign in to comment.