Fixed subclass regression

This commit is contained in:
WBHarry 2025-08-10 21:29:35 +02:00
parent 51c396bf2d
commit 63dd02df42
2 changed files with 5 additions and 5 deletions

View file

@ -1362,17 +1362,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"
} }
} }
}, },
@ -1899,7 +1899,7 @@
"difficulty": "Difficulty", "difficulty": "Difficulty",
"downtime": "Downtime", "downtime": "Downtime",
"dropActorsHere": "Drop Actors here", "dropActorsHere": "Drop Actors here",
"dropFeaturesHere": "Drop Features here", "dropFeaturesHere": "Drop Features here",
"duality": "Duality", "duality": "Duality",
"dualityRoll": "Duality Roll", "dualityRoll": "Duality Roll",
"enabled": "Enabled", "enabled": "Enabled",

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'));