Viewing post in Aric's Expansion Rebred
I figured it out, all the slaves have 100 genetic sums, but the description only shows the positive genetics so the total appears higher. There are 2 sources of the problem.
The first is "set_genealogy" in constructor.gd does not reset the existing genealogy of a person before adding in the new. This is specifically an issue for impregnation from virtual fathers(prostitution or kennel). This is bugged and unless you fix line 1173 in globals.gd it will never happen. When fixed, "set_genealogy" is used to assign custom genetics to the virtual father, thus always ending up with 200 genetics.
The second cause is that "build_genealogy_equalize" has a small defect as it assumes that for 100+ genetics so long as the current genetic line is positive that you can subtract any amount from it. However, that can only be true for purebreeds, otherwise you can end up with negative genetic lines. Thus 100 is always reached, but it in an unbalanced way. The fix for this is simple, "random_number" needs to limited to at most the current value of the genetic line. A similar fix could be made for the 100- genetics, though once the above problem is fixed this function should almost never be used and it is of questionable value to begin with.