mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 00:53:50 -04:00
eliminate some cpu cycles per roll by only reducing when count or confirmCrit is on
This commit is contained in:
@@ -84,6 +84,6 @@ export const generateFormattedRoll = (rollConf: string, modifiers: RollModifiers
|
||||
containsCrit: tempCrit,
|
||||
containsFail: tempFail,
|
||||
},
|
||||
countDetails: rollCounter(tempRollSet),
|
||||
countDetails: modifiers.count || modifiers.confirmCrit ? rollCounter(tempRollSet) : rollCounter([]),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user