v10 branch - Update manifest
This commit is contained in:
@ -5,7 +5,7 @@ export class PegasusRollDialog extends Dialog {
|
||||
/* -------------------------------------------- */
|
||||
static async create(actor, rollData) {
|
||||
|
||||
let options = { classes: ["PegasusDialog"], width: 620, height: 380, 'z-index': 99999 };
|
||||
let options = { classes: ["PegasusDialog"], width: 620, height: 480, 'z-index': 99999 };
|
||||
let html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-generic.html', rollData);
|
||||
|
||||
return new PegasusRollDialog(actor, rollData, html, options);
|
||||
@ -63,7 +63,7 @@ export class PegasusRollDialog extends Dialog {
|
||||
idVal = "#statDicesLevel"
|
||||
}
|
||||
if (effectData.data.otherdice) {
|
||||
idVal = "#otherDicesLevel"
|
||||
idVal = "#damageDiceLevel"
|
||||
}
|
||||
if (effectData.data.hindrance) {
|
||||
idVal = "#hindranceDicesLevel"
|
||||
@ -96,8 +96,9 @@ export class PegasusRollDialog extends Dialog {
|
||||
this.rollData.specDicesLevel = Number($('#specDicesLevel').val())
|
||||
//this.rollData.bonusDicesLevel = Number($('#bonusDicesLevel').val())
|
||||
//this.rollData.hindranceDicesLevel = Number($('#hindranceDicesLevel').val())
|
||||
this.rollData.otherDicesLevel = Number($('#otherDicesLevel').val())
|
||||
this.rollData.damageDiceLevel = Number($('#damageDiceLevel').val())
|
||||
PegasusUtility.updateSpecDicePool(this.rollData)
|
||||
PegasusUtility.updateDamageDicePool(this.rollData)
|
||||
PegasusUtility.updateEffectsBonusDice(this.rollData)
|
||||
}
|
||||
|
||||
@ -148,7 +149,7 @@ export class PegasusRollDialog extends Dialog {
|
||||
let equip = this.rollData.equipmentsList[equipIdx]
|
||||
if (equip) {
|
||||
equip.applied = toggled
|
||||
let idVal = "#otherDicesLevel" // Default
|
||||
let idVal = "#damageDiceLevel" // Default
|
||||
if (equip.equip.data.bonusdice) {
|
||||
idVal = "#bonusDicesLevel"
|
||||
}
|
||||
@ -156,7 +157,7 @@ export class PegasusRollDialog extends Dialog {
|
||||
idVal = "#statDicesLevel"
|
||||
}
|
||||
if (equip.equip.data.otherdice) {
|
||||
idVal = "#otherDicesLevel"
|
||||
idVal = "#damageDiceLevel"
|
||||
}
|
||||
let newLevel = Number($(idVal).val())
|
||||
if (toggled) {
|
||||
@ -171,7 +172,7 @@ export class PegasusRollDialog extends Dialog {
|
||||
this.rollData.specDicesLevel = Number($('#specDicesLevel').val())
|
||||
this.rollData.bonusDicesLevel = Number($('#bonusDicesLevel').val())
|
||||
this.rollData.hindranceDicesLevel = Number($('#hindranceDicesLevel').val())
|
||||
this.rollData.otherDicesLevel = Number($('#otherDicesLevel').val())
|
||||
this.rollData.damageDiceLevel = Number($('#damageDiceLevel').val())
|
||||
}
|
||||
}
|
||||
|
||||
@ -214,14 +215,10 @@ export class PegasusRollDialog extends Dialog {
|
||||
PegasusUtility.updateSpecDicePool(this.rollData)
|
||||
this.refreshDialog()
|
||||
});
|
||||
html.find('#bonusDicesLevel').change((event) => {
|
||||
this.rollData.bonusDicesLevel = Number(event.currentTarget.value)
|
||||
});
|
||||
html.find('#hindranceDicesLevel').change((event) => {
|
||||
this.rollData.hindranceDicesLevel = Number(event.currentTarget.value)
|
||||
});
|
||||
html.find('#otherDicesLevel').change((event) => {
|
||||
this.rollData.otherDicesLevel = Number(event.currentTarget.value)
|
||||
html.find('#damageDiceLevel').change(async (event) => {
|
||||
this.rollData.damageDiceLevel = Number(event.currentTarget.value)
|
||||
PegasusUtility.updateDamageDicePool(this.rollData)
|
||||
this.refreshDialog()
|
||||
});
|
||||
html.find('.effect-clicked').change(async (event) => {
|
||||
let toggled = event.currentTarget.checked
|
||||
|
Reference in New Issue
Block a user