I decided to give this a shot, never wrote any kind of an API. This is rather basic, letting you add and remove the custom modifiers to stress. I don't even know if the calculation is correct at the moment.
Perhaps the "add" function should have some extra fields to control the stat change to reduce API calls, for example, if the stat should be altered when the character is asleep.
I decided to give this a shot, never wrote any kind of an API. This is rather basic, letting you add and remove the custom modifiers to stress. I don't even know if the calculation is correct at the moment. Perhaps the "add" function should have some extra fields to control the stat change to reduce API calls, for example, if the stat should be altered when the character is asleep.