• Check out the relaunch of our general collection, with classic designs and new ones by our very own Pissog!
  • The moderator of this forum is jetou.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.

Programming Pokémon Showdown Damage Calculator

Thanks for the heads up, this was me and something I could have easily verified if I had loaded up the calc locally before deploying instead of trusting our tests. This has been reverted.



This should have been fixed earlier in the night - did you see it at the same time you were seeing all the moves dealing 1 damage?
yeah its fixed now, and yes the level was messed up with 1 dmg bug, thanks pre!
 
  • Like
Reactions: pre
I mostly went here to say THANK YOU FOR THIS AMAZING CALCULATOR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It's been a big help! Before I found out about it, I was using the one from Pikalytics. There was an error on the set I was looking at and it was resolved just by looking at this one!

But since this thread seems to mostly be for constructive feedback, there was one small thing I noticed; up to you if it's worth looking into. When you click on the "OU Choice Band" set for Barraskewda, it defaults to Life Orb. This seems counter-intuitive, based on the name of the set. Looking at their entry on Smogon, I think the name of the set should be "OU Swift Swim". That's literally the only thing I've ever encountered that I know of; keep up the great work!!!
weird, I will look into it. Thanks for the heads up
 
I think the calc is no longer accounting for Poison Heal recovery.

0 SpA Landorus-Therian Hidden Power Ice vs. 244 HP / 244 SpD Gliscor: 176-208 (50 - 59%) -- guaranteed 2HKO after Poison Heal
 
am I missing something, it looks like the "after poison heal" is poison heal recovery

It shouldn't be a guaranteed 2HKO since it does 50-59%. Say you get a 50% roll then they recover 12% from Poison Heal — you can't KO them afterwards because they're now at 62%.
 
Is there any word on the Abomasnow style glitches where it replaces the name and move dropdown of the mon with aboma despite having the correct stats and moves calced?

Also, wanted to know if you're aware of the resist berry vs multihit move thing I mentioned previously.
 
Is there any word on the Abomasnow style glitches where it replaces the name and move dropdown of the mon with aboma despite having the correct stats and moves calced?

Also, wanted to know if you're aware of the resist berry vs multihit move thing I mentioned previously.
is this still a glitch? If so can you tell us the exact steps you are doing to reproduce this? I'm aware of your bug report, I just haven't gotten to it yet.
 
It seems some of the newer sets for Random Battles are not added yet, e.g. Xerneas is not appearing in the list of possible Pokemon. I can possibly contribute to this project too, how could i do?
 
Hi everyone! I wanted to make some calcs around G-Max Drednaw a while ago. However, I just found out that G-Max Stonesurge (Drednaw's G-Max move) doesn't appear in the calc for some reason.

View attachment 237567View attachment 237568
Max and G-max moves don't have their own base powers, instead being derived from whatever move they're based on, so putting them directly in a moveslot won't work. Additionally, a G-max move has the same base power as a max move based on the same move, so Dynamax Drednaw will give you the same calcs (dynamax button is next to the current HP box).

That said, it is strange that G-max Stonesurge isn't listed, along with some other G-max moves like G-max Wildfire (maybe more but I can't be bothered to cross reference). Also strange is that G-max Pokemon use regular max moves, even if their G-max move is programmed into the calc (G-max Butterfree uses Max Flutterby, for example). While this doesn't matter that much at the moment, as the G-max moves have the same base powers, it should matter for max and G-max moves with damaging secondary effects, particularly Wildfire and Volcalith, as their secondary effects can't be replicated by things like hail, poison, or Fire Spin. It will also matter much more once the G-max Galar starters are released, as their G-max moves are said to be stronger than regular max moves.
 
Use this thread for feature requests and bug reports
FAQ:
Where do I go if I want to contribute? Damage Calculator Open Source
What if I don't see new features? Try clearing your cache. It usually takes a bit for Zarel to sync the github version with the live version please wait a few days before clearing your cache.
What's new? Changelog
IF YOUR POST WAS DELETED IT WAS DEALT WITH

Sorry I dont really know how to use smogon properly so hopefully Im doing this correctly. When I click export on a set, the set doesnt appear in the copy/paste section. Importing sets is fine but exporting from the calc doesnt seem to work. The export button doesnt seem to be doing anything. Of course I can manually put the evs into showdown but it seems like a QoL thing to me. Thanks in advance!
 
I believe terrains are still using the x1.5 boost from gen 7 when I think it's actually x1.3. Learned this the hard way :blobsad:
252 Atk Zeraora Plasma Fists vs. 0 HP / 0 Def Weavile in Electric Terrain: 313-370 (111.3 - 131.6%) -- did not kill on turn 8 here

Edit: my opponent confirmed his Weavile spread
yeah the terrain boosts are wrong for SS, still using SM 1.5x
terrain damage is fixed
 
Sorry to pester you. Has the "export" button feature been acknowledged so far? Not sure if I was meant to receive some sort of notification that you'll be working on it or anything like that. Please don't feel as if Im trying to rush you I only wanted to find out what the news on that is. Thanks in advance
yes, will look into
 
Parental Bond

This should be one of the next things I implement.

Unnecessary 0x1000 modifiers: these would affect cases of damage overflow (and generally speaking won't affect the calculation in any normal cases anyway, so are unnecessary)

I'm not sure I understand this? Is this saying that we are applying 0x1000 modifiers where we shouldnt be? It might be easier for you to just create PR removing them?

Generation 7 modifier order

The ordering should be fixed & I believe all the modifiers are now correct (though would be happy for tests proving otherwise :P)

If X greater than 65535, mod by 65536

I think this is done?

32-bit multiplication overflow

OK I think this is done as well. I'm assuming both of these overflows apply to Gen 5+ at the very least

Weight calculations

I dont know that we even support Autotomize yet? Probably lots of work needed here.

Speed calculations

I think this was fixed (done as part of a large refactoring commit...)

Not all of this has been deployed yet, deploys are kind of blocked up right now because there have been a *lot* of changes going in.

Thanks again for this S+ tier bug report!
 
Is this something in the pipeline? I just double checked and it still appears to be calcing on 1.5x instead of 1.3x

248+ Atk Choice Band Tapu Bulu Wood Hammer vs. 0 HP / 0 Def Mew: 322-379 (94.4 - 111.1%) -- 62.5% chance to OHKO
248+ Atk Choice Band Tapu Bulu Wood Hammer vs. 0 HP / 0 Def Mew in Grassy Terrain: 483-568 (141.6 - 166.5%) -- guaranteed OHKO

Yes. I have not deployed yet, sorry! Should reach production in a day or so.

EDIT: OK, went ahead and deployed. Things will almost certainly be broken, but hey, theres lots of new fixes as well!
 
Last edited:
Some time ago, I reported about Dauntless Shield not activating automatically like Intrepid Sword, but now it seems to have a weird interaction: it says that Zamazenta has +1 on the calc, but the damage doesn't change at all, acting as if it has +0 Defense:

calc1.png
calc2.png
calc3.png
btw, Zamazenta always has +1 Defense if you have other as an ability, but it's also purely visual, it doesn't raise its Defense at all (I also tested Dauntless Shield with Abomasnow and got the same result, a visual +1, but no change on the damage).
 
Back
Top