Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stalker nano skin bar gets broken. #15

Open
JontomXire opened this issue Apr 19, 2015 · 1 comment
Open

Stalker nano skin bar gets broken. #15

JontomXire opened this issue Apr 19, 2015 · 1 comment

Comments

@JontomXire
Copy link

I find that if I click-re-click to activate/finalise the Stalker tank ability "Nano Skin" that the time remaining value gets erroneously large. I get 12/13 seconds a few times, and I have also had numbers above 10000 minutes.

After this happens, the scaling for the overlay starts using the maximum value as the total. E.g.

The usual maximum duration is 5 seconds. Normally the display as per the code copy example is a broken green bar which is overlaid with white which slides down from the top, revealing more and more green until 5 seconds has elapsed when the icon disappears again.

If the duration gets incorrectly calculated as 12 seconds then we get the same but the icon disappears when the white bar is at 7/12ths of the way down, when the abilitiy times out.

Subsequently, the duration is correctly calculated as 5 seconds and the white area starts at 5/12ths of the height of the bar. Basically 12 seconds gets used as the expected duration of the ability while time remaining is calculated as 5.

If the maximum duration gets incorrectly calculated at tens of thousands of minutes, say 600 thousand seconds, then the next time the height of the white bar is 5/600000 which is roughly 0 pixels. You don't see the white area at all.

@JontomXire
Copy link
Author

Sorry, I meant "Nano Field" not "Nano Skin".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant