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

Switch bit weights between Special and Speed stats #194

Merged
merged 5 commits into from
Dec 21, 2017
Merged

Switch bit weights between Special and Speed stats #194

merged 5 commits into from
Dec 21, 2017

Conversation

Ntonio36
Copy link
Contributor

Closes issue #182.. I guess.

In short : instead of considering 2 bits for Special and one for Speed, the Speed DVs affect 2 units of HP DVs, while the Special ones do not affect but one.

@@ -85,8 +85,8 @@ $(".sl .dvs").keyup(function () {
function getHPDVs(poke) {
return (~~poke.find(".at .dvs").val() % 2) * 8 +
(~~poke.find(".df .dvs").val() % 2) * 4 +
(~~poke.find(gen === 1 ? ".sl .dvs" : ".sa .dvs").val() % 2) * 2 +
(~~poke.find(".sp .dvs").val() % 2);
(~~poke.find(".sp .dvs").val() % 2) * 2 +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove white space

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe good enough if I put them all in one line, so it doesn't end up like the first recovery text PR (messy indenting everywhere) ?

@AustinXII
Copy link
Member

Hmm guess it’s not so easy on mobile, if you can’t fix it, I’ll fix it for you when I test it. You should be able to highlight white space with your mouse highlighter in case you weren’t aware.

@Ntonio36
Copy link
Contributor Author

Looks way better now.

@Ntonio36
Copy link
Contributor Author

So, what now ?

@AustinXII
Copy link
Member

Gotta fix the spacing for this and I’m going to give sadisticmystic a bit more time to verify his issue is fixed

@SadisticMystic
Copy link

That works.

@AustinXII
Copy link
Member

ugh annoying, but fixed lol. Also thanks for the confirmation @SadisticMystic

@AustinXII AustinXII merged commit 841a2d8 into smogon:master Dec 21, 2017
@Ntonio36 Ntonio36 deleted the patch-2 branch December 21, 2017 19:43
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

Successfully merging this pull request may close these issues.

3 participants