# Generation Logic

DMT Ninja traits are determined by the sum of specific three-digit combinations from the block height.

When divided by 10, the sum gives a Remainder that determines the part you receive.

There are 10 kinds of parts for each category (e.g., Hair no.1 ~ Hair no.10). Below are the specific combinations and examples:

#### Trait Categories and Digit Combinations:

—** Hair:** 1st, 5th and 6th
—** Eyes:** 2nd, 4th and 5th
—** Face:** 3rd, 4th and 5th
—** Clothes:** 2nd, 3rd and 6th
—** Hand Item: **3rd, 4th and 6th
—** Background/Effect:** 3rd, 5th and 6th

#### Calculation Method:

The sum of the specified three digits is divided by 10, and the remainder determines the part number.

Example Block Height: **840619**

—** Hair:** Sum of 8 + 1 + 9 = 18. Remainder of 18 / 10 is 8. Therefore, Hair no.8.
—** Background:** Sum of 0 + 1 + 9 = 10. Remainder of 10 / 10 is 0. Therefore, Background no.10.

### Determining Rare (Colored) Traits

To determine if a block height results in rare traits (colored parts: blue or red), these steps can be followed:

Multiply each digit of Block Height (We always exclude 0 because that would just return 0)

Add the multiplied number to the sum of each digit

— Multiply each non-zero digit of the block height. — Add the result to the sum of each digit of the block height. — Evaluate the last three digits of this sum to determine if they fall within specific ranges:

0 to 63: Red parts

64 to 126: Blue parts

127 to 999: No colored parts (just black and white)

**Example Block Height: 801637**

**Example Block Height: 801637**

— Multiplication: 8×1×6×3×7=10088 \times 1 \times 6 \times 3 \times 7 = 10088×1×6×3×7=1008

— Sum of Digits: 8+1+6+3+7=258 + 1 + 6 + 3 + 7 = 258+1+6+3+7=25

— Total: 1008+25=10331008 + 25 = 10331008+25=1033

— Last Three Digits: 033, which is less than 127.

**Interpretation:**

— 0 to 63: Red parts — 64 to 126: Blue parts — 127 to 999: No colored parts

Since the last three digits are 033, convert 033 to binary (100001).

This binary sequence indicates red parts for Hair and Background.

**Further Example for Blue Parts:**

**Further Example for Blue Parts:**

**Example Block Height: 829752**

**— Multiplication:** 8×2×9×7×5×2=100808 \times 2 \times 9 \times 7 \times 5 \times 2 = 100808×2×9×7×5×2=10080

**— Sum of Digits:** 8+2+9+7+5+2=338 + 2 + 9 + 7 + 5 + 2 = 338+2+9+7+5+2=33

**— Total:** 10080+33=1011310080 + 33 = 1011310080+33=10113

**— Last Three Digits:** 113, which is less than 127.

**— Adjusted for Blue Calculation:** 113 - 63 = 50

**— Binary Conversion:** 50 in binary is 110010, indicating blue parts for Hair, Eyes, and Hand Item.

Last updated