demiurgeQuantified / StatsAPI

Project Zomboid mod that reimplements stat calculations in Lua, so that they can be further modded.
4 stars 2 forks source link

Basic implementation of daily stress change for the API, addresses #2 #3

Closed Diakon5 closed 1 year ago

Diakon5 commented 1 year ago

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.