mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-14 20:51:07 +01:00
Removed the old, now unused companion levelup button (#893)
This commit is contained in:
parent
62af5fcb4b
commit
75340d3c9b
2 changed files with 1 additions and 12 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
import { GMUpdateEvent, socketEvent } from '../../systemRegistration/socket.mjs';
|
import { GMUpdateEvent, socketEvent } from '../../systemRegistration/socket.mjs';
|
||||||
import DhCompanionlevelUp from '../levelup/companionLevelup.mjs';
|
|
||||||
import DHBaseActorSettings from '../sheets/api/actor-setting.mjs';
|
import DHBaseActorSettings from '../sheets/api/actor-setting.mjs';
|
||||||
|
|
||||||
/**@typedef {import('@client/applications/_types.mjs').ApplicationClickAction} ApplicationClickAction */
|
/**@typedef {import('@client/applications/_types.mjs').ApplicationClickAction} ApplicationClickAction */
|
||||||
|
|
@ -11,8 +10,7 @@ export default class DHCompanionSettings extends DHBaseActorSettings {
|
||||||
position: { width: 455, height: 'auto' },
|
position: { width: 455, height: 'auto' },
|
||||||
actions: {
|
actions: {
|
||||||
addExperience: DHCompanionSettings.#addExperience,
|
addExperience: DHCompanionSettings.#addExperience,
|
||||||
removeExperience: DHCompanionSettings.#removeExperience,
|
removeExperience: DHCompanionSettings.#removeExperience
|
||||||
levelUp: DHCompanionSettings.#levelUp
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -121,12 +119,4 @@ export default class DHCompanionSettings extends DHBaseActorSettings {
|
||||||
|
|
||||||
await this.actor.update({ [`system.experiences.-=${target.dataset.experience}`]: null });
|
await this.actor.update({ [`system.experiences.-=${target.dataset.experience}`]: null });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Opens the companion level-up dialog for the associated actor.
|
|
||||||
* @type {ApplicationClickAction}
|
|
||||||
*/
|
|
||||||
static async #levelUp() {
|
|
||||||
new DhCompanionlevelUp(this.actor).render({ force: true });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<button type="button" data-action="levelUp" {{#if (not document._source.system.levelData.canLevelUp)}}disabled{{/if}}>{{localize "DAGGERHEART.GENERAL.levelUp"}}</button>
|
|
||||||
</section>
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue