smogon / damage-calc

Pokemon games damage calculator
https://calc.pokemonshowdown.com
MIT License
381 stars 359 forks source link

Miscellaneous Bugs & Feature Requests #348

Open scheibo opened 5 years ago

scheibo commented 5 years ago

Past reported bugs and feature requests from the Smogon thread. I'm unsure if the 'Potential' bugs are still relevant, they should be moved under 'Verified' once confirmed (or removed).

Bugs can still be addressed as they are reported on the thread and is still the correct venue for reporting bugs, but this issue just exists to make track things which may have fallen through the cracks and been forgotten about.

Bugs

Verified

Features

Approved

Requested

Ntonio36 commented 4 years ago

Foul play message fixed in #373

AustinXII commented 4 years ago

Foul play message fixed in #373

Updated

ghost commented 4 years ago

Some moves in 'moves.ts' are missing the quotes (' ') and are as such unavailable in the showdown selector. This includes moves such as absorb and barrage.

Edit: Looking further into it moves that are still missing the quotes (such as thunderbolt) are still available in the selector. I have no clue what's happening.

AustinXII commented 4 years ago

Some moves in 'moves.ts' are missing the quotes (' ') and are as such unavailable in the showdown selector. This includes moves such as absorb and barrage.

Edit: Looking further into it moves that are still missing the quotes (such as thunderbolt) are still available in the selector. I have no clue what's happening.

Our live version If the calc is not up to date with the github version. Currently we are reworking moves so it looks all kinds of messed up right now, don’t worry about it too much :)

scheibo commented 4 years ago

Our master branch is not guaranteed to be safe. There are two ways to get to a 'good' version - using a tagged version from when we released the @smogon/calc package (or better, depending on @smogon/calc directly via NPM instead of depending on the source), and eventually, by looking at where the gh-pages branch is at (as we plan to use this in the near future for all deploys going forward)

penpexgit commented 4 years ago

I feel like I had seen this asked somewhere but I surprisingly cannot find it (so sorry in advance if it is, and it is in that eventuality that I am posting here instead of opening a new issue): Would it be possible, like it is done for Z-Moves, to have the base power of the Max Move displayed in the result text? At the moment it is not, so there is a loss of information on that matter.

Note that this is different from what is already requested but not approved, knowingly that the base name of the move be displayed for a ZMove - which could also be extended for a Max Move I guess). I have no strong feelings about that one, but I hope that the BP for Max Move displayed is approved because it is directly similar to what is already done for Z-Moves.

scheibo commented 4 years ago

Would it be possible, like it is done for Z-Moves, to have the base power of the Max Move displayed in the result text? At the moment it is not, so there is a loss of information on that matter.

Yes, this should be displayed. Feel free to open up a PR

knowingly that the base name of the move be displayed for a ZMove

This is still TBD, but if we display it for ZMove we should display it for Max Move

yghdj commented 4 years ago

KO chance + exact KOs:

What exactly is the problem here?

scheibo commented 4 years ago

KO chance + exact KOs:

What exactly is the problem here?

There's at least something fishy going on with KO chance: https://www.smogon.com/forums/threads/pok%C3%A9mon-showdown-damage-calculator.3593546/post-8460619

As for the quoted calcs in questions: https://www.smogon.com/forums/threads/pok%C3%A9mon-showdown-damage-calculator.3593546/post-7798375 is the original report, I haven't tried to grok exactly what is fishy with it yet which is why its a 'Potential' and not 'Verified' bug

:)

EDIT: see my reply, I think both the recent report and the original report are the same bug?

yghdj commented 4 years ago

Ok I was just wondering if I understood the problem correctly. I think the calcs are actually correct, and that is because of the rounding down. If Ttar has 204 HP EVs, its total HP are 392, so the Spikes + SR damage is 2 * floor(0.125*392) = 98 which brings its HP down to 294, so the max roll OHKOes. If it has 200 HP EVs, though, its total HP are 391, so the damage upon entry is 2*floor(0.125*391) = 96, which results in a HP amount of 295, so even max roll can't OHKO. If I'm not mistaken with how entry hazards damage works it seems those results are normal.

tjjerome commented 3 years ago

Is there a preferred way to run the damage calculation from a python script? I've already got an application going in python and would prefer not to start over in js, but I haven't found any python implementations of this.

BenjaminShinar commented 3 years ago

I think that the calculator for gen I doesn't always crit for Karate-Chop. the damage calculation seems more similar to 'cut' (also base 50 power) than to slash(which seems to work properly), this is visible in the code itself. I will try to make a pull request with a fix later today, once I figure out how to.

edit: I run the fix locally, run npm tests locally and opened a PR #449

AustinXII commented 1 year ago

Click to copy text done in #441 and #512

shrianshChari commented 1 year ago

Dark theme done in #525, #540, #543, and #545