# Pet Power Calculation

### Pet Power Calculation

Attack Power of a Pet is based on the **average damage of Skill 1, 2, and 3** multiplied by Crit Rate and Crit Damage.

**The average damage of each skill** is the average damage per bullet multiplied by the total bullet for that skill.

* For example, if a pet fires 10 bullets at average damage of 35 damage per bullet. Then the average damage for that skill = 350.

A wounded pet  **has lower Power** depending on the wound state

*a pet with the following skill damage and Crit stats:*

| Skill 1 Avg Damage | 100  |
| ------------------ | ---- |
| Skill 2 Avg Damage | 250  |
| Skill 3 Avg Damage | 500  |
| Crit Rate          | 20%  |
| Crit Damage        | 150% |

To get the Attack Power of Skill 1, we will split it into Atk Power without Crits and Atk Power with Crits:

* Atk Power W/O Crits = Skill Avg Dmg multiply by ( 1 - Crit Rate )
  * Example: 100 \* 0.8
* Atk Power W Crits = Skill Avg Dmg multiply by Crit Rate multiply by Crit Dmg
  * Example: 100 \* 0.2 \* 150%

|                        | Avg Atk Power W/O Crits | Avg Crits Atk Power | Atk Power (Added) |
| ---------------------- | ----------------------- | ------------------- | ----------------- |
| Atk Power of Skill 1 = | 80                      | 30                  | 110               |
| Atk Power of Skill 2 = | 200                     | 75                  | 275               |
| Atk Power of Skill 3 = | 400                     | 150                 | 550               |

The average ATK Power without critical hits will almost always be higher than that one with critical hits due to the fact that the **total damage from critical hits** out of 100 hits will very likely be lesser than **total damage from normal hits** out of 100 hits.

This is done to find the average damage per hit out of 100 hits:

* Total Skill 1 without Crits out of 100 attacks = 100 dmg \* 80 hits = 8,000
* Total Skill 1 with Crits out of 100 attacks = 100 dmg \* 20 hits \* 150% = 3,000
* Total Skill 1 Dmg of 100 attacks = 11,000
* Skill 1 Avg Dmg of 1 hit = 11,000 / 100 = 110
