User:IapIac/Sandbox: Difference between revisions

No edit summary
Line 6: Line 6:
==== Stat modifiers ====
==== Stat modifiers ====
For most stats, there is a "range" which means the stat change from the min power to max power.
For most stats, there is a "range" which means the stat change from the min power to max power.
To simplify the formulas below, assume <math>\text{percent} = \frac{\text{Current Power}-\text{Min Power}}{\text{Max Power}-\text{Min Power}}</math>


===== Pierce =====
===== Pierce =====
<math>\text{Pierce}=\text{Base Pierce} + \lfloor \text{Pierce Range} \times \frac{\text{Power}-\text{Min Power}}{\text{Max Power}-\text{Min Power}}\rfloor</math>
<math>\text{Pierce}=\text{Base Pierce} + \lfloor \text{Pierce Range} \times \text{percent}\rfloor</math>


===== Damage =====
===== Damage =====
<math>\text{Damage}=\text{Base Damage} + \lfloor \text{Damage Range} \times \frac{\text{Power}-\text{Min Power}}{\text{Max Power}-\text{Min Power}}\rfloor</math>
<math>\text{Damage}=\text{Base Damage} + \lfloor \text{Damage Range} \times \text{percent}\rfloor</math>


For [[Velociraptor]] and above, bonus stun damage is also affected by merging. The increased value is related to base damage increase from merging:


For middle path, bonus stun damage is also affected by merging. The increased value is related to base damage increase from merging:
<math>\text{Bonus Stun Damage}=\text{Base Bonus Stun Damage} + \lfloor\frac{\text{Damage Range} \times \text{percent}}{\text{Stun Bonus Divisor}}\rfloor</math>


<math>\text{Extra Stun Damage}=\text{Base Extra Stun Damage} + \lfloor\frac{\text{Damage}-\text{Base Damage}}{\text{Stun Bonus Divisor}}\rfloor</math>
The <math>\text{Stun Bonus Divisor}</math> above is 3.<!--at least, now-->


===== Knockback duration =====
===== Knockback duration =====
<math>\text{Knockback Duration}=\text{Base Knockback Duration}+\text{Knockback Duration Range} \times \frac{\text{Power}-\text{Min Power}}{\text{Max Power}-\text{Min Power}}</math>
<math>\text{Knockback Duration}=\text{Base Knockback Duration}+\text{Knockback Duration Range} \times \text{percent}</math>


===== Flying speed =====
===== Flying speed =====
<math>\text{Flying Speed}=\text{Base Flying Speed}+\text{Speed Range} \times \frac{\text{Power}-\text{Min Power}}{\text{Max Power}-\text{Min Power}}</math>
<math>\text{Flying Speed}=\text{Base Flying Speed}+\text{Speed Range} \times \text{percent}</math>


===== Attack cooldown =====
===== Attack cooldown =====
<math>\text{Attack Cooldown}=\text{Base Attack Cooldown}-\text{Cooldown Scale Range} \times \frac{\text{Power}-\text{Min Power}}{\text{Max Power}-\text{Min Power}}</math>
<math>\text{Attack Cooldown}=\text{Base Attack Cooldown}-\text{Cooldown Scale Range} \times \text{percent}</math>


[[Great White]] thrash interval works similarly.
[[Great White]] thrash interval works similarly.


===== Ability cooldown =====
===== Ability cooldown =====
Unlike other stats, merging actually changes the <code>cooldownSpeedScale</code>, which means this stacks additively with other buffs such as [[Energizer (BTD6)|Energizer]]. This bonus is based on the ''attack'' cooldown:
Merging actually changes the <code>cooldownSpeedScale</code> of the ability, which means this stacks additively with other buffs such as [[Energizer (BTD6)|Energizer]].
 
Unlike other stats, this bonus depends on the cooldown of their ''main attack''.
 
<math>\text{Ability Cooldown Scale Change}=\frac{\text{Cooldown Scale Range} \times \text{percent}}{\text{Attack Cooldown}}</math><!--the ability also has 99999s attack cooldown, so maybe this also affect this? hmmmm...-->


<math>\text{Ability Cooldown Decrease Scale}=\frac{\text{Base Attack Cooldown}-\text{Attack Cooldown}}{\text{Attack Cooldown}}</math>
With {{BTD6 mk|Veteran Monkey Training}}, the attack cooldown changes ''before'' the bonus from merging.