Skip to content

Commit

Permalink
Compare lowercase Steel name
Browse files Browse the repository at this point in the history
Signed-off-by: Marcloure <[email protected]>
  • Loading branch information
Marcloure authored and StasTserk committed Nov 19, 2024
1 parent 2b8c7dd commit 470ef0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions module/rolls/rollAttribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ export async function handleAttrRoll({
}: AttributeRollOptions): Promise<unknown> {
const rollModifiers = actor.getRollModifiers(attrName);
dataPreset = dataPreset || {};
const woundDice =
attrName === 'Steel' ? actor.system.ptgs.woundDice : undefined;
const obPenalty =
attrName === 'Steel' ? actor.system.ptgs.obPenalty : undefined;
if (attrName.toLowerCase() === 'steel') {

const isSteel = attrName.toLowerCase() === 'steel';
const woundDice = isSteel ? actor.system.ptgs.woundDice : undefined;
const obPenalty = isSteel ? actor.system.ptgs.obPenalty : undefined;
if (isSteel) {
dataPreset.useCustomDifficulty = true;
dataPreset.showDifficulty = true;
dataPreset.showObstacles = true;
Expand Down

0 comments on commit 470ef0e

Please sign in to comment.