Documented modifierToFormula
This commit is contained in:
parent
73d060aeaf
commit
d0281e64bf
1 changed files with 5 additions and 0 deletions
|
@ -492,6 +492,11 @@ export function createFormulaPreview(
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Utility for converting a modifier into a formula. Takes the input for this formula as the base parameter.
|
||||||
|
* @param modifier The modifier to convert to the formula
|
||||||
|
* @param base An existing formula or processed DecimalSource that will be the input to the formula
|
||||||
|
*/
|
||||||
export function modifierToFormula<T extends GenericFormula>(
|
export function modifierToFormula<T extends GenericFormula>(
|
||||||
modifier: WithRequired<Modifier, "revert">,
|
modifier: WithRequired<Modifier, "revert">,
|
||||||
base: T
|
base: T
|
||||||
|
|
Loading…
Reference in a new issue