Fix armors
This commit is contained in:
@ -752,10 +752,10 @@ export class CrucibleActor extends Actor {
|
||||
let diceColor = armor.system.absorprionroll
|
||||
let armorResult = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
||||
console.log("Armor log", armorResult)
|
||||
let armorValue = (Number(armorResult.text) - reduce) * multiply
|
||||
let armorValue = (Number(armorResult.text) + reduce) * multiply
|
||||
if ( advantage || disadvantage) {
|
||||
let armorResult2 = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
||||
let armorValue2 = (Number(armorResult2.text) - reduce) * multiply
|
||||
let armorValue2 = (Number(armorResult2.text) + reduce) * multiply
|
||||
if ( advantage) {
|
||||
armorValue = (armorValue2 > armorValue) ? armorValue2 : armorValue
|
||||
messages.push(`Armor advantage - Roll 1 = ${armorValue} - Roll 2 = ${armorValue2}`)
|
||||
|
Reference in New Issue
Block a user