Skip to content

Cleaned up infection chance code

Created by: despotate

Score values multiplied by ~3.3 and 6 different if statements condensed into a single quadratic fit. New values end up being almost the same (maximum 5% deviation) as old values, so I'm not gonna bother with a changelog:

autism

The point of this is to make it easier to add more tiers of clothing protection, as mixing and matching to fit 6 discrete values isn't really coder-friendly. Why did that dude even bother with the multiples of 5 in the first place?

Merge request reports