There should be more details about the villager. Looking at the save game file, and that cheif and bla is random each time you open the game, there maybe have a important level(or il), -5 to 5.
-5 to -1 is that they will make their parter's level less.
Example:
1m, 2 il
30f, 3 il
Chances:
13,14,15,16,17,18
Example 2:
1m, -5 il
20f, 1 il ( -4 il)
9,10,11,12,13,14,15,16,17,18,19,20,21
Either I don't understand how you're using the "Importance levels", or I don't understand your math. 1 and 30 average to 15.5, which should give a range 12-18, with 15 and 16 being the most common. This "Importance Level" seems to only raise the number by 0.5, but I'm not sure how you got 0.5 out of levels 2 and 3. Adding them together should give you a much larger +5. And on top of that, you've got an extra possibility closer to the villager with the lower level.
I don't understand example two at all. The outcome of that pairing should be 10.5, and 10 and 11 the common results. Instead, 9 and 10, slightly below the average, are common at one end of the spectrum, and 20, who is only barely above zero importance, is the other end of the spectrum. Outcomes between these two are rare possbilities, but not below the average or above the "level 1" villager. I think you need to explain how these numbers are supposed to affect the selection.
It SEEMS like you're trying to determine how 'dominant' or 'recessive' a villager's genes are . . . but I think your system is much more complex than it has to be. Remember, for a programmer or a mathematician, simplicity is beautiful. Einstein spent a very, very long time using math to describe our universe, but his greatest achievement, the foundation of the theory of relativity, was one of the simplest of equations: E=MC².
I think a better idea might be simply to assign random values, as you suggest, but don't do any calculations on them; just give the one that's higher a set level of precedence in determining the children. For instance, you might average the villagers to determine the outcome, then average that outcome again with the dominant villager. So, a 10 and a 30 equal a 20. If the 30 has a higher level than the 10, you might averaging the outcome, 20, with 30 again gives you 25. If the ten were more dominant, averaging the outcome again by 10 would give you 15. Any other system would also work, but this is just an example.
am i a she? call me a he. I am an man. you can tell it by my username. it is williaMANi.
Must have mistaken Isolyan's post for yours. Don't worry, Mr Manny, I'd
never mistake you for a girl.