From 0b98925aebf08651237cebbe80fbbc115040abd5 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sat, 13 Mar 2021 18:53:26 +0100 Subject: [PATCH] Rename an interface --- src/module/rolls/check-evaluation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/module/rolls/check-evaluation.ts b/src/module/rolls/check-evaluation.ts index df3f427e..8ad4d92f 100644 --- a/src/module/rolls/check-evaluation.ts +++ b/src/module/rolls/check-evaluation.ts @@ -6,7 +6,7 @@ export default function evaluateCheck( minimumFumbleResult = 20, canFumble = true, }: { maximumCoupResult?: number; minimumFumbleResult?: number; canFumble?: boolean } = {}, -): DS4SubCheckResult[] { +): SubCheckResult[] { const diceWithSubChecks = assignSubChecksToDice(dice, checkTargetNumber, { maximumCoupResult: maximumCoupResult, }); @@ -81,7 +81,7 @@ function shouldUseCoupForLastSubCheck( ); } -interface DS4SubCheckResult extends DieWithSubCheck, DiceTerm.Result { +interface SubCheckResult extends DieWithSubCheck, DiceTerm.Result { success?: boolean; failure?: boolean; count?: number; @@ -94,9 +94,9 @@ function evaluateDiceWithSubChecks( minimumFumbleResult, canFumble, }: { maximumCoupResult: number; minimumFumbleResult: number; canFumble: boolean }, -): DS4SubCheckResult[] { +): SubCheckResult[] { return results.map((dieWithSubCheck, index) => { - const result: DS4SubCheckResult = { + const result: SubCheckResult = { ...dieWithSubCheck, active: dieWithSubCheck.result <= dieWithSubCheck.checkTargetNumber, discarded: dieWithSubCheck.result > dieWithSubCheck.checkTargetNumber,