pubertyXX/XY fixes
Instead of setting them on generation, we'll set them on acquirement instead. Related to #484 (closed)
Merge request reports
Activity
The only descriptions that .pubertyXX/XY effect, are the slaveSummaryWidget descriptions, and those don't show unless you're already on the slaves array. The sales descriptions only use .pubertyAgeXX/XY.
The fact of the matter is that the hero slaves (outside the cheat ones) never have .pubertyXX/XY set. Unless they get the right surgeries. It's not set when they're acquired, it's not set in endWeek, it's just never set. This includes the ones obtained at the very beginning of the game.
It didn't give any errors previously because most of the code only checks them against 0. And if you're only checking against 0,
undefined
and1
are equivalent. For example, if you changed this line to haveslave.pubertyXX !== 1
instead, all the hero slaves would show as not ovulating yet.What a tangled mess I managed to make out of that one.
I'd still rather keep things in slaveGen, though. What do you think of adding a setter to getHeroSlave()?
Edited by Pregmoddermentioned in commit c55d683e