mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
confirm character creation if equipment not selected
This commit is contained in:
parent
67d3b6c0e3
commit
1a42e15071
1 changed files with 14 additions and 5 deletions
|
|
@ -571,6 +571,15 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
|
||||||
}
|
}
|
||||||
|
|
||||||
static async finish() {
|
static async finish() {
|
||||||
|
const isEquipmentFinished = this._getTabs(this.constructor.TABS).equipment.finished;
|
||||||
|
if (!isEquipmentFinished) {
|
||||||
|
const confirm = await foundry.applications.api.DialogV2.confirm({
|
||||||
|
window: { title: 'Equipment not selected' },
|
||||||
|
content: `<p>You have not selected equipment.</p><p>Are you sure you want to continue?</p></p>`
|
||||||
|
});
|
||||||
|
if (!confirm) return;
|
||||||
|
}
|
||||||
|
|
||||||
const primaryAncestryFeature = this.setup.primaryAncestry.system.primaryFeature;
|
const primaryAncestryFeature = this.setup.primaryAncestry.system.primaryFeature;
|
||||||
const secondaryAncestryFeature = this.setup.secondaryAncestry?.uuid
|
const secondaryAncestryFeature = this.setup.secondaryAncestry?.uuid
|
||||||
? this.setup.secondaryAncestry.system.secondaryFeature
|
? this.setup.secondaryAncestry.system.secondaryFeature
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue