eliminate some cpu cycles per roll by only reducing when count or confirmCrit is on
This commit is contained in:
		
							parent
							
								
									7a0b49dc0c
								
							
						
					
					
						commit
						b1fce05149
					
				| 
						 | 
				
			
			@ -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([]),
 | 
			
		||||
  };
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue