Profectus / game/modifiers / createSequentialModifier
Function: createSequentialModifier() ​
createSequentialModifier<
T
,S
>(modifiersFunc
):S
Takes an array of modifiers and applies and reverses them in order. Modifiers that are not enabled will not be applied nor reversed. Also joins their descriptions together.
Type Parameters ​
• T extends Modifier
• S = WithRequired
<Modifier
, Extract
<RequiredKeys
<T
>, keyof Modifier
>>
Parameters ​
modifiersFunc ​
() => T
[]
The modifiers to perform sequentially.
Returns ​
S