Published in

--

Breeding Trait Probability

With the recent launch of the Breed feature, we believe that it’s crucial to have a deep dive into the logic of determining the traits of the offspring from the parents. Breeding is the most important feature at a later time to acquire the best pets for the upcoming Play2Earn features.

What traits can a pet have?

As a quick refresh, each pet consists of a main body and 8 different body parts, including Wings, Tail, Paw, Horn, Glasses, Amulet, Aura, and Outline. With the random algorithm from blockchain, a pet acquired from an egg may or may not have all the body parts above. Especially with the low probability to acquire the body parts Wings, Aura, and Outline, many common pets do not have these parts.

Types of traits:

Next, let’s go to the details of the traits behind each part. First of all, the main body has only 1 trait showing the appearance of the pet. However, each of the body parts consists of 4 different traits

• 1 primary trait dictating the appearance of the body part
• 2 hidden traits holding different types of the same body part
• 1 hidden empty trait meaning that the offspring has a possibility of not being inherited from parents.

Probability of traits:

Now, let’s reveal the probability behind breeding given that the main body has 1 trait and each body part has 4 traits. The table below shows the probability of offspring inheriting the body part from the parent. The probability of each trait of a body part is multiplied by 50% from each parent, then the numbers are summed up to have the chances of an offspring to acquire any particular body parts. In the case of a pet having no specific body part, the pet still has hidden traits of having different kinds of the part. The examples below demonstrate how the calculation works

Examples of Breeding:

Example 1:

• Pet 1: Spike with green horns
• Pet 2: Adonis with no horns
• Offspring:
• Main body: 50% to be Spike or Adonis
• Horns:
• Green horns: (30% x 50%) + (0% x 50%) = 15%
• Different horns: (30% + 30%) x 50% + (30% + 30%) x 50% = 60%
• Any types of horns: (30% + 30% + 30%) x 50% + (30% + 30%) x 50% = 75%

Example 2: Assuming the horn hidden traits from pet 1 and pet 2 are different.

• Pet 1: Spike with green horns
• Pet 2: Adonis with red horns
• Offspring:
• Main body: 50% to be Spike or Adonis
• Horns:
• Green horns: (30% x 50%) + (0% x 50%) = 15%
• Red horns: (0% x 50%) + (30% x 50%) = 15%
• Different horns: (30% + 30%) x 50% + (30% + 30%) x 50% = 60%
• Any types of horns: (30% + 30% + 30%) x 50% + (30% + 30% + 30%) x 50% = 90%

Pet Body Parts and The Future of the Game

With the Play2Earn and DeFi features coming to My DeFi Pet in the future, it is important to have good pets to have a good yield. The pet body parts provide stronger in-game stats, additional skills, and boosts in DeFi features. Overall, the more body parts a pet has, the better he is.

Regarding how each body part affects the in-game stats and skills specifically, stay tuned for the future post!