Skip to content

Commit

Permalink
fix - weapon template hasOwnStr
Browse files Browse the repository at this point in the history
  • Loading branch information
paiva92 committed Feb 16, 2024
1 parent ce36259 commit 16778b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const calculateWeaponStrengthModifier = (weapon: WeaponDataSource, data:

const equippedHandMultiplier = hasOnlyOneEquippedHandMultiplier ? 1 : 2;

if (weapon.system.hasOwnStr.value) {
if (weapon.system.hasOwnStr?.value) {
return calculateAttributeModifier(weapon.system.weaponStrength.final.value);
}

Expand Down
3 changes: 3 additions & 0 deletions src/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@
"martialKnowledge": { "value": 0 }
},
"weapon": {
"equipped": { "value": false },
"isShield": { "value": false },
"special": { "value": "" },
"integrity": { "base": { "value": 0 }, "final": { "value": 0 }, "special": { "value": 0 } },
"breaking": { "base": { "value": 0 }, "final": { "value": 0 }, "special": { "value": 0 } },
Expand All @@ -399,6 +401,7 @@
"cadence": { "value": "" },
"reload": { "base": { "value": 0 }, "final": { "value": 0 } },
"sizeProportion": { "value": "" },
"hasOwnStr": { "value": false },
"weaponStrength": { "base": { "value": 0 }, "final": { "value": 0 } },
"critic": { "primary": { "value": "-" }, "secondary": { "value": "-" } }
}
Expand Down

0 comments on commit 16778b1

Please sign in to comment.