09-01-2020, 01:29 AM
An update: Yesterday I fixed and reworked how decomposition works a bit. Mutantraces now decompose (with the exception of skeletons). Decomposition timing shouldn't be dependent of server lag anymore. Temperature affects decomposition properly now (including space). And most importantly of all returning a non-decomposed body to a space where it would have decomposed no longer makes it rot instantly.
Basically whenever a new stage of decomposition starts a 4 to 10 minute timer is started. Each life loop tick this timer is decreased by the appropriate time elapsed and that's scaled by the temperature (at 0C you get no decomposition, at 20C you get regular speed, at 60C you get triple speed which is the maximum). Decomposition also doesn't happen on kudzu tiles, in cryo cells, in the morgue body thingies and in bodies injected with formaldehyde.
Basically whenever a new stage of decomposition starts a 4 to 10 minute timer is started. Each life loop tick this timer is decreased by the appropriate time elapsed and that's scaled by the temperature (at 0C you get no decomposition, at 20C you get regular speed, at 60C you get triple speed which is the maximum). Decomposition also doesn't happen on kudzu tiles, in cryo cells, in the morgue body thingies and in bodies injected with formaldehyde.