Various CSS Enhancements
All checks were successful
Release Creation / build (release) Successful in 1m39s
All checks were successful
Release Creation / build (release) Successful in 1m39s
This commit is contained in:
@@ -177,7 +177,7 @@ export default class CthulhuEternalRoll extends Roll {
|
||||
// If the weapon is not lethal, we can proceed with the regular damage roll
|
||||
let formula = weapon.system.damage
|
||||
if (weapon.system.weaponType === "melee" || weapon.system.weaponType === "unarmed") {
|
||||
formula += ` + ${weapon.damageBonus}`
|
||||
formula += ` + ${actor.system?.damageBonus}`
|
||||
}
|
||||
if (options?.previousResultType === "successCritical") {
|
||||
formula = `( ${formula} ) * 2`
|
||||
@@ -188,6 +188,7 @@ export default class CthulhuEternalRoll extends Roll {
|
||||
"system.ammo.value": Math.max(0, weapon.system.ammo.value - ammoUsed)
|
||||
}])
|
||||
}
|
||||
console.log("Weapon damage formula", formula, weapon, ammoUsed)
|
||||
let damageRoll = new Roll(formula)
|
||||
await damageRoll.evaluate()
|
||||
let msgData = {
|
||||
|
Reference in New Issue
Block a user