Skip to content

Commit

Permalink
fix old console log in dice (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
Glinkis committed Apr 10, 2022
1 parent f840e67 commit 1d25fc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/dice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
[10, 45] would limit the results to 11-44, etc.
*/

import { logger } from '../logger'
import { randomFloat } from './randomFloat'

// Range of fairmath.
Expand Down Expand Up @@ -131,7 +132,7 @@ export function fm (base: number, val: number) {
}

if (base < rangeStart || base > rangeEnd) {
console.warn('Clamping a roll of ', base)
logger.info('Clamping a roll of ', base)
base = clamp(Math.trunc(base), rangeStart, rangeEnd)
}
// a 0 increase or decrease; just trunc and clamp
Expand Down

0 comments on commit 1d25fc6

Please sign in to comment.