mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 04:01:06 +01:00
Review fixes
This commit is contained in:
parent
fafca7f2fc
commit
1ef70ca4d6
11 changed files with 99 additions and 132 deletions
|
|
@ -213,8 +213,6 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
context.subclassCards.push({
|
||||
...data.toObject(),
|
||||
uuid: data.uuid,
|
||||
// disabled:
|
||||
// !selected && subclassSelections.length === context.advancementChoices.subclass.length,
|
||||
selected: selected
|
||||
});
|
||||
}
|
||||
|
|
@ -522,7 +520,7 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
this.render();
|
||||
}
|
||||
} else if (event.target.closest('.multiclass-cards')) {
|
||||
const target = event.target.closest('.card-preview-container');
|
||||
const target = event.target.closest('.multiclass-cards');
|
||||
if (item.type === 'class') {
|
||||
if (item.name === this.actor.system.class.name) {
|
||||
ui.notifications.error(
|
||||
|
|
|
|||
|
|
@ -183,9 +183,6 @@ export default class PCSheet extends DaggerheartSheet(ActorSheetV2) {
|
|||
htmlElement
|
||||
.querySelectorAll('.experience-value')
|
||||
.forEach(element => element.addEventListener('change', this.experienceValueChange.bind(this)));
|
||||
// htmlElement
|
||||
// .querySelectorAll('[data-item]')
|
||||
// .forEach(element => element.addEventListener.on('change', this.itemUpdate.bind(this)));
|
||||
htmlElement.querySelector('.level-value').addEventListener('change', this.onLevelChange.bind(this));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue