calculateExpectedDamage

public static double calculateExpectedDamage(int weaponLevel, int skillLevel, int targetLevel, double attackSpeed)

Calculates what the expected damage SHOULD be given proper gear at matched combat. Uses the new multiplicative formula.

Without a weapon type, this uses the legacy speed factor because the live tuned path is weapon-family dependent. Prefer calculateExpectedDamage when the item material is known.

Return

Expected damage per hit

Parameters

weaponLevel

The level of the weapon being used

skillLevel

The player's skill level

targetLevel

The elite's level

attackSpeed

The weapon's attack speed


public static double calculateExpectedDamage(int weaponLevel, int skillLevel, int targetLevel, String weaponType, double attackSpeed)

Calculates expected damage with a known weapon family. Passing the weapon type keeps test/debug math in sync with the tuned melee attack-speed curve used in live combat.

Return

Expected damage per hit

Parameters

weaponLevel

The level of the weapon being used

skillLevel

The player's skill level

targetLevel

The elite's level

weaponType

Bukkit material name, e.g. DIAMOND_AXE, MACE, TRIDENT

attackSpeed

The weapon's attack speed