getAttackSpeedFactor
Calculates the melee attack-speed factor for the player→elite formula.
Axes, maces, and tridents use a damped segment because feedback marked them as too burst-efficient. Weapon families that already tested well, unknown items, and non-weapons use the legacy linear factor, preserving swords, hoes, spears, fists, and bow/crossbow melee behavior.
Return
Damage multiplier applied per hit
Parameters
item
The held item, used to infer weapon family
attackSpeed
The vanilla-equivalent attack speed for the held item
Test-friendly overload for getAttackSpeedFactor.