Table of Contents

Loggy's Age and Decay reverse engineering notes

Old Age penalties

Multiple of max age Penalty
<1.0 0
1.0-1.2x 1
1.2-1.4x 2
1.4-1.6x 3
1.6-2x 4
2-3x 5
>3x 6

Decay

Aging

This applies to all forced age changes as well as the natural one applied every midwinter.

If the number of years is negative, simply subtract that from the unit's current age, and don't do anything else.

If your aging rate is greater than 100 (this is measured in years per century), the number of years becomes:

 (Age rate * number of years to add + [a random number 0-99]) / 100

With that out the way, do this once for each year to add to the unit:

Random Major affliction

Random Minor affliction