Parameters
-
__namedParameters: {
critChance: number;
critFactor: number;
damage: number;
damagePercent: number;
superCritChance: number;
superCritMult: number;
}
-
critChance: number
-
critFactor: number
-
damage: number
-
damagePercent: number
-
superCritChance: number
-
superCritMult: number
Returns number
number - the actual computed damage value
Function
damageFormula - Takes in the values necessary to compute the damage for Landmines or an Ultimate Weapon, and returns the actual value
Takes an object with the following params (all values are the value displayed in run, with perks, cards, labs, etc applied):
damagePercent
- number; // the % value displayed on the tooltip when clicking the UW (on the button itself for Land Mines). If it says 321%, pass in 321. For Smart Missiles, since it uses an x and not a %, multiply by 100 first.damage
- number; // Your workshop Damage value, as displayed in the Attack tab midruncritFactor
- number; // Your workshop Crit Factor value, as displayed in the Attack tab midruncritChance
- number; // your Workshop Crit Chance value, as displayed in the Attack tab midrunsuperCritMult
- number; // your Workshop Super Crit Mult value, as displayed in the attack tab midrunsuperCritChance
- number; // your Workshop Super Crit Chance value, as displayed in the attack tab midrun