# Resources drop

#### For each killed enemy piece, the Player receives Energy, Basic materials, Gems and random ammunition.

#### Resource drop probabilities are as follows:

* **Energy** - always drops out. The amount of Energy received depends on the [Class](https://shedever-studio.gitbook.io/chess-zombies-wpeng/chess-pieces) and [Figure power](https://shedever-studio.gitbook.io/chess-zombies-wpeng/gameplay/rpg/piece-power).\
  \
  **The total amount of received Energy is calculated by the formulas:**\
  \
  **Pawns:** E = Fp/5\*Ir1\*Ir2\*CCl\
  **Knights, Bishops, Rooks:** E = Fp/3\*Ir1\*Ir2\*CCl\
  **Queens:** E = Fp/2\*Ir1\*Ir2\*CCl\
  **Kings:** E = Fp\*Ir1\*Ir2\*CCl\
  \
  Where:\
  **E** - the amount of Energy that a player receives for killing a piece.\
  **Fp** - maximum power of the killed piece.\
  **Ir1** - the player's base inflation rate. Always applied. Default = 1. Decreases based on how much Energy the player removes from the game.\
  **Ir2** - the player's progressive inflation rate. Default = 1. Adjusts the total amount of Energy in the Game. Applicable under certain conditions.\
  **CCl** - the coefficient of the class of figures. For F2P figures CCl=1, for SFT CCl=1.2, for NFT CCl=1.3\
  \
  **If the player does not remove Energy from the game at all, Ir1 and Ir2 will be equal to 1.**\
  &#x20;
* **Basic materials** - 5 pcs. one of the types of building materials always drop out. The probabilities of dropping one or another type of building materials are the same (33.33(3)%).
* **Gems** - 1 pc. one of the types of gems always drops out. The probabilities of dropping one or another type of gems are the same (25%).

#### The rarity of the dropped gem depends on the level of the piece that killed the enemy piece.

<table><thead><tr><th width="116">Figure level</th><th width="132" align="center">Small Gem</th><th width="139" align="center">Medium Gem</th><th width="102" align="center">Big Gem</th><th width="130">Unique Gem</th><th width="121">Legendary Gem</th></tr></thead><tbody><tr><td>1-3</td><td align="center">100%</td><td align="center">-</td><td align="center">-</td><td>-</td><td>-</td></tr><tr><td>4-6</td><td align="center">80%</td><td align="center">20%</td><td align="center">-</td><td>-</td><td>-</td></tr><tr><td>7-9</td><td align="center">65%</td><td align="center">20%</td><td align="center">15%</td><td>-</td><td></td></tr><tr><td>10-12</td><td align="center">55%</td><td align="center">20%</td><td align="center">15%</td><td>10%</td><td>-</td></tr><tr><td>13-15</td><td align="center">50%</td><td align="center">20%</td><td align="center">15%</td><td>10%</td><td>5%</td></tr></tbody></table>

#### Algorithm for determining the probability of Resource Drop.

#### Stage 1: determination of the amount of dropped Energy.

We look at the Class and Strength of the killed figure and calculate the amount of Energy according to the formula.

#### Stage 2: determining the type of drop-down Basic Materials.

* We randomly select 1 of 3 types of Building Materials.
* Quantity - 5 pcs.&#x20;

#### Stage 3: determining the type and rarity of the drop-down Gem.

* Randomly choose 1 of 4 types of Gems.
* Based on the level of the figure that killed the enemy figure, we determine the rarity of the Gem.
* Quantity - 1 pc.
