vegapnk / RJW-Genes

Rimworld Biotech Genes related to RJW
MIT License
33 stars 35 forks source link

Fountain of Youth is a Fountain of Adulthood #26

Closed PinkysBrain closed 1 year ago

PinkysBrain commented 1 year ago
var partnerAge = props.partner.ageTracker.AgeBiologicalTicks;
props.partner.ageTracker.AgeBiologicalTicks = Math.Max(MINIMUM_AGE, partnerAge - AGE_REDUCTION);

Should be something like

var partnerAge = props.partner.ageTracker.AgeBiologicalTicks;
If (partnerAge - AGE_REDUCTION > MINIMUM_AGE)
    props.partner.ageTracker.AgeBiologicalTicks = partnerAge - AGE_REDUCTION;
vegapnk commented 1 year ago

Hi,

my code is fine. I fear you are a degenerate who changed the MInimum Age.

Get some help.

PinkysBrain commented 1 year ago

If I decreased minimum age the code would just never trip and age down as far as RJW would allow.

The minimum age is 20 in your mod, so 18 yo skip straight to 20, worse for Orassans who are adult at 16. There's probably some function to get adult age too, then no need to fear me changing minimum age.

vegapnk commented 1 year ago

I will give you the benefit of the doubt and put the Min_Age to 18 and add activation-age also at 18.
But I will not account for stuff like Races that "are adult with 10" etc.