First iteration over items

This commit is contained in:
2025-11-06 23:30:37 +01:00
parent 6b883f8126
commit 4a9f026a2a
109 changed files with 1535 additions and 715 deletions
+7 -4
View File
@@ -247,11 +247,13 @@ export default class PrismRPGRoll extends Roll {
}
} else if (options.rollType === "shield-roll") {
// Legacy Lethal Fantasy - Shield Defense Roll (not used in PRISM RPG)
// In PRISM, shields use Block action with Shield Rating (SR)
hasD30 = false
options.rollName = "Shield Defense"
dice = options.rollTarget.system.defense.toUpperCase()
options.rollName = "Shield Block"
dice = "1d20" // Placeholder - actual Block mechanic handled elsewhere
baseFormula = dice
hasModifier = true
hasModifier = false
hasChangeDice = false
hasMaxValue = false
hasExplode = false
@@ -261,7 +263,8 @@ export default class PrismRPGRoll extends Roll {
options.rollName = options.rollTarget.name
hasModifier = true
hasChangeDice = false
let damageBonus = (options.rollTarget.weapon.system.applyStrengthDamageBonus) ? options.rollTarget.combat.damageModifier : 0
// In PRISM, all weapons apply STR damage bonus
let damageBonus = options.rollTarget.combat.damageModifier
options.rollTarget.value = damageBonus + options.rollTarget.weaponSkillModifier + options.rollTarget.weapon.system.bonuses.damageBonus
options.rollTarget.charModifier = damageBonus
if (options.rollType.includes("small")) {