Fix #103 size warning
This commit is contained in:
parent
662804c658
commit
be83dbd055
@ -1922,10 +1922,8 @@ export class PegasusActor extends Actor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
processSizeBonus(rollData) {
|
processSizeBonus(rollData) {
|
||||||
if (rollData.defenderTokenId) {
|
if (rollData.defenderTokenId) {
|
||||||
if ( !Number(this.system.biodata.sizenum) || !Number(this.system.biodata.sizebonus) ) {
|
this.system.biodata.sizenum = this.system.biodata?.sizenum?? 0
|
||||||
ui.notifications.warn(`Character ${this.name} has no size value, please fix`)
|
this.system.biodata.sizebonus = this.system.biodata?.sizebonus?? 0
|
||||||
return
|
|
||||||
}
|
|
||||||
let diffSize = rollData.defenderSize - this.system.biodata.sizenum + this.system.biodata.sizebonus
|
let diffSize = rollData.defenderSize - this.system.biodata.sizenum + this.system.biodata.sizebonus
|
||||||
//console.log("Diffsize", diffSize)
|
//console.log("Diffsize", diffSize)
|
||||||
if (rollData.subKey == "melee-atk" || rollData.subKey == "ranged-atk") {
|
if (rollData.subKey == "melee-atk" || rollData.subKey == "ranged-atk") {
|
||||||
|
Loading…
Reference in New Issue
Block a user