Quote:
Originally Posted by bcbrown
[You must be logged in to view images. Log in or Register.]
I'm saying the wiki version seems to correctly treat offhand delay. Did you really mess it up in the later version?
Code:
function computeWeaponDelayWithHaste(attackerStatStruct, bUseOffhand, bLogHasteValue)
{
const mn_WeaponDelayDenominator = 100;
var attackerWeaponDelay = attackerStatStruct.mainHandWeaponDelay;
if(bUseOffhand)
{
attackerWeaponDelay = attackerStatStruct.offHandWeaponDelay;
}
...
}
function RunCombatSimulation(...)
{
...
const mainHandDelayHasteAdjustedInSeconds = (computeWeaponDelayWithHaste(attackerStatStruct, false, false) / 10);
const offHandDelayHasteAdjustedInSeconds = (computeWeaponDelayWithHaste(attackerStatStruct, true, false) / 10);
...
const mainHandOffHandDelayRatio = (mainHandDelayHasteAdjustedInSeconds / offHandDelayHasteAdjustedInSeconds) < 1 ? (mainHandDelayHasteAdjustedInSeconds / offHandDelayHasteAdjustedInSeconds) : 1; // Off hand cannot be faster than mainhand. Clamp to 1 if off hand is faster.
}
Lmao I guess so.
|
You read the code wrong, and you are still referencing wiki results after I told you it wasn't finished. As I've said before, you need to actually read. I'd be curious to know if you can figure out what the issues were.