[Fix] Compendium Item (#810)

* Corrected Emberwoven Armor

* Fixed subclass regression
This commit is contained in:
WBHarry 2025-08-11 00:20:48 +02:00 committed by GitHub
parent d571a89a7c
commit c74c7aaedd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 11 deletions

View file

@ -1363,17 +1363,17 @@
}, },
"paired": { "paired": {
"name": "Paired", "name": "Paired",
"description": "Add your character's Tier + 1 to primary weapon damage against targets within Melee range", "description": "Add this Secondary Weapon's tier + 1 to your primary weapon damage against targets within Melee range",
"actions": { "actions": {
"paired": { "paired": {
"name": "Paired", "name": "Paired",
"description": "Add your character's Tier + 1 to primary weapon damage against targets within Melee range" "description": "Add this Secondary Weapon's tier + 1 to your primary weapon against targets within Melee range"
} }
}, },
"effects": { "effects": {
"paired": { "paired": {
"name": "Paired", "name": "Paired",
"description": "Add your character's Tier + 1 to primary weapon damage against targets within Melee range" "description": "Add this Secondary Weapon's tier + 1 to your primary weapon against targets within Melee range"
} }
} }
}, },

View file

@ -51,7 +51,7 @@ export default class DHSubclass extends BaseDataItem {
async _preCreate(data, options, user) { async _preCreate(data, options, user) {
if (this.actor?.type === 'character') { if (this.actor?.type === 'character') {
const dataUuid = const dataUuid =
(data.uuid ?? data.folder) ? `Compendium.daggerheart.subclasses.Item.${data._id}` : `Item.${data._id}`; data.uuid ?? (data.folder ? `Compendium.daggerheart.subclasses.Item.${data._id}` : `Item.${data._id}`);
if (this.actor.system.class.subclass) { if (this.actor.system.class.subclass) {
if (this.actor.system.multiclass.subclass) { if (this.actor.system.multiclass.subclass) {
ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.Notifications.subclassesAlreadyPresent')); ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.Notifications.subclassesAlreadyPresent'));

View file

@ -63,7 +63,7 @@
"attached": [], "attached": [],
"tier": 4, "tier": 4,
"equipped": false, "equipped": false,
"baseScore": 0, "baseScore": 6,
"armorFeatures": [ "armorFeatures": [
{ {
"value": "burning", "value": "burning",
@ -77,8 +77,8 @@
"value": 0 "value": 0
}, },
"baseThresholds": { "baseThresholds": {
"major": 0, "major": 13,
"severe": 0 "severe": 36
} }
}, },
"effects": [], "effects": [],
@ -92,12 +92,12 @@
"compendiumSource": null, "compendiumSource": null,
"duplicateSource": null, "duplicateSource": null,
"exportSource": null, "exportSource": null,
"coreVersion": "13.346", "coreVersion": "13.347",
"systemId": "daggerheart", "systemId": "daggerheart",
"systemVersion": "0.0.1", "systemVersion": "1.0.0",
"createdTime": 1753809470138, "createdTime": 1753809470138,
"modifiedTime": 1753809633344, "modifiedTime": 1754853048367,
"lastModifiedBy": "FecEtPuoQh6MpjQ0" "lastModifiedBy": "7zAk0CoP90J7ebn0"
}, },
"_key": "!items!bcQUh4QG3qFX0Vx6" "_key": "!items!bcQUh4QG3qFX0Vx6"
} }