mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Fixed subclass regression
This commit is contained in:
parent
51c396bf2d
commit
63dd02df42
2 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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'));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue