How many NFDs?

To calculate how many NFDs we produce, we need to take into account various values related to our equipment in Production, so we will need to consider the attributes of each equipped NFT.

Let's start by collecting the following data:

Total Power

It's the sum of the prod.power value of your equipment.

Total time

Scrolling through all the NFTs in the slots, it's the sum of the prod.time values of your equipment.

Fibonacci Rule

The Fibonacci Rule is a number that acts as a game balancer.

Currently, it is set to 12776.

Fibonacci number

Based on the number of used slots, extract the correct Fibonacci number.

[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]

Random

In calculating the reward, a random variable of +/-10% is taken into account.

Total type Neutral

It's the sum of the type.power value of the NFTs in your equipment that have ''Neutral'' in the type field.

Power bonus Sativa

It's the sum of the type.power value of the NFTs in your equipment that have ''Sativa'' in the type field.

Power bonus Hybrid

It's the sum of the type.power value of the NFTs in your equipment that have ''Hybrid'' in the type field.

Power bonus Indica

It's the sum of the type.power value of the NFTs in your equipment that have ''Indica'' in the type field.

Total prod.power printers

At the end of the calculation, the sum of the prod.power values of the printers will be used.

Step by step calculation

The initial calculations to perform are:

base reward = (<total power> / <fibonacci rule> * <total time>) 
percentage to add = <fibonacci number> + <+-10% random>

total reward = <base reward> + <percentage to add> %

Assuming only one Printer equipped for production with type "Sativa", the calculation will conclude with:

final reward = <total reward> + (<total bonus neutral> + <total sativa bonus> %)

Allocation of the quantity in case of multiple printers.

Each printer has a specific power and prints 2 NFTs.

When there are multiple printers of different types, it's necessary to differentiate the reward based on the power of the printer. The more powerful a printer is, the more NFTs it will receive of that type in proportion to a less powerful printer.

The first step is to divide the reward for each individual power of the printer:

base printer1  = <total reward> / <total prod.power printers> * <prod.power printer1>

base printer2  = <total reward> / <total prod.power printers> * <prod.power printer2>

base printer3  = <total reward> / <total prod.power printers> * <prod.power printer3>

Bonuses

Finally, depending on the type of the printer, we add the bonuses:

FINAL single printer reward = <base printer> + ( <Power bonus neutral> +<Power bonus Sativa> %)

NFD 1 and NFD 2 rates

Printers can produce different NFDs in different proportions.

The reward is divided between NFD 1 (printer.nfd1 value) at the percentage indicated in printer.perc; and with NFD 2 (printer.nfd2 value) at the percentage of '100% - printer.perc'.