Various CSS Enhancements
All checks were successful
Release Creation / build (release) Successful in 1m39s

This commit is contained in:
2025-07-09 17:19:09 +02:00
parent dbc64121fa
commit 61b8da8ccf
16 changed files with 92 additions and 119 deletions

View File

@@ -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 = {