Apply the framework's canonical add, multiply, then set composition.
import { composeModifiers } from '@datamoc/mw_games/actors';const attack = composeModifiers(10, [{ stat: 'attack', op: 'add', value: 2 }]);console.log(attack); // 12 Copy
import { composeModifiers } from '@datamoc/mw_games/actors';const attack = composeModifiers(10, [{ stat: 'attack', op: 'add', value: 2 }]);console.log(attack); // 12
Apply the framework's canonical add, multiply, then set composition.