Trait Inheritance
Active
First the chances of acquiring the trait as an active trait is checked as a function of the parents:
- ACTIVE - ACTIVE: 80%
- ACTIVE - INACTIVE: 50%
- ACTIVE - NONE: 25%
- INACTIVE - INACTIVE: 10%
- INACTIVE - NONE: 2%
Inactive
If that check fails the chances of inheriting inactively is calculated:
- ACTIVE - ACTIVE = 150%
- ACTIVE - INACTIVE = 100%
- ACTIVE - NONE = 75%
- INACTIVE - INACTIVE = 50%
- INACTIVE - NONE = 25%
General logic for trait with tiers inheritance
- Start from highest trait
- Calculate active chance. Lower tiers ( including inactive ) count as inactive of the tier. Each level down beyond the first multiplies chance by a define
- If active, use it; DONE
- Otherwise, go down a tier, if inactive pretend 1 more parent has that tier active, otherwise 1 more parent has it inactive.GOTO 2
When trying to inherit a tiered genetic trait, and the other person has one of lower tier, we pretend that means they've got the higher tier one recessively, and reduce the chance of inheritance by 20% per tier further down than 1 the other parent's trait is When going down a tier, add 40%