frifox / gw2dps

GW2DPS
31 stars 13 forks source link

Raw defiance values #24

Closed Wethospu closed 8 years ago

Wethospu commented 8 years ago

Different enemies have different amount of raw defiance. So showing it like health "X / Y [Z%]" would be better.

frifox commented 8 years ago

Hairys added breakbar feature to gw2lib and its a float value, meaning the percentage isn't calculated but is exactly what gw2 client provides. I haven't dug around to see if there are also the exact breakbar values but for now, percentage is all we can do.

frifox commented 8 years ago

Dug around the memory last night for 30 mins. Couldn't find any definite values for the bar, only a 0 to 1 float identifying the percentage. I may dig around some more but it's not looking pretty, it's as if anet keeps the values and calculation server-side and feeds the client only the final % value for rendering the bar.

Wethospu commented 8 years ago

Looks like they have learned something. :)

frifox commented 8 years ago

Fortunately, that percentage has a pretty high precision (more decimal places that we'd ever care about). Can record by how much each skill/condi affects the bar and then take the lowest one as the common denominator as make it equal to "1" breakbar unit.

Wethospu commented 8 years ago

More precision would be great since Chill seems to remove like 1.33% per tick.

frifox commented 8 years ago

made it show percent down to 5 decimal places. see the latest release for the new build