Fight
Last updated
Last updated
The calculation of the fight starts with de base values of the Gainling. These stats are the same for all Gainlings:
Base Attack: 1000
Base Defense: 250
For each fight Chainlinks VRF provides the contract with randomness. From this random number, the contract derives two new random numbers between 0 and 1000. The first of the random numbers represents the luck of the attacker [Attacker-Random]. The second random number represents the luck of the defender [Defender-Random]. On top of that the trophy-level gets added. If you already attacked successfully two times and your trophy level is on 2, the random range will be 200 - 1200 effectively increasing your damage by 100 per trophy. Read more about the level system in the Trophies section.
Additionally the contract stores the following values as metadata of the warriors:
Sum of all attack modifiers of the attackers equipment [Attacker-Attack-From-Equipment]
Sum of all defense modifiers of the attackers equipment [Attacker-Defense-From-Equipment]
Sum of all attack modifiers of the defenders equipment [Defender-Attack-From-Equipment]
Sum of all defense modifiers of the defenders equipment [Defender-Defense-From-Equipment]
The total damage done by the attacker gets calculated as follows:
BaseAttack + BaseDefense
+ Attacker-Attack-From-Equipment
+ Attacker-Defense-From-Equipment (if not pierced by defender aura)
+ Attacker-Random
_______________________________________
= Attacker Total Damage
The total damage done by the defender gets calculated as follows:
BaseAttack + BaseDefense (if not pierced by attacker aura)
+ Defender-Attack-From-Equipment
+ Defender-Defense-From-Equipment (if not pierced by attacker aura)
+ Defender-Random
+ Cooldown-Buff (only applied if in cooldown)
_______________________________________
= Defender Total Damage
The Gainling with the higher total damage output wins the battle. The defender wins in case of a tie.
If an aura has weakness against another aura, the weak Gainlings defense will be ignored in the calculation of the opponents total damage.
After the fight, the losing token will be burned and removed from the supply. The winning token will go into cooldown. The cooldown is calculated by the weight of the Gainling. Each weight-point adds 1 second. Each trophy-level reduces by 2%.