• 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

Hi,
it seems that pokemon do not lose their STAB when using tera of a different element
examples:
calyrex-shadow; move astral barrage doesn't lose stab while being dark
incineroar; move knock off doesn't lose stab while being bug

EDIT: nvm, apparantely when using tera, you don't lose STABs of your original type lol
 

Attachments

  • picture 3.png
    picture 3.png
    176.7 KB · Views: 27
  • picture 2.png
    picture 2.png
    183.4 KB · Views: 25
  • picture 1.png
    picture 1.png
    184 KB · Views: 34
Last edited:
Hi,

If I understand correctly, terastelization should add a bonus of 50% to the damage output of your pokemon. This effectively corresponds to multiplying the output by 1.5. However, when I use tera ghost on calyrex, astral barrage goes from dealing 20.7% min to 28% min (should have been ~31%). Am I doing something wrong?

Thanks
 

Attachments

  • beforeTera.jpg
    beforeTera.jpg
    80.5 KB · Views: 26
  • afterTera.jpg
    afterTera.jpg
    79.8 KB · Views: 29
Hi,
Is there a way to include what typing for Hidden Power in the import?
I'm using the manual format:

Fletchinder
Ability: Flame Body
Level: 17
IVs: 19 HP / 27 Atk / 29 Def / 9 SpA / 27 SpD / 6 Spe
Serious Nature
- Flame Charge
- Hidden Power
- Quick Attack
- Aerial Ace

It defaults to Normal type rather than calculating from the IVs.
Thank you.
 
Importing moves with a trailing space errors to no move
"- Nasty Plot " doesnt register the same as "- Nasty Plot"
Should .rstrip to remove trailing spaces on imports
 
Would it be possible to add a toggle that makes the calculator take accuracy into account when determining KO chance? Damaging moves with imperfect accuracy have seen use throughout all Gens (e.g. Play Rough with 90% accuracy, infamously Focus Blast with 70% accuracy) and it's not exactly quick or easy to manually input that discrepancy into the final calculation.

fwiw this was brought up once before in 2021 but didn't seem to get a response.
 
It'd be nice if support for the rest of tiers with analyses than just vanilla PU-OU, LC, Doubles and Ubers could be added for the One Vs All and All Vs One modes of the calculator, this'd be quite beneficial for other formats with stored sets already pre-integrated in the calculator like NatDex, OMs, UMs, and Nintendo formats like VGC and BSS.
 
Would love to have a way to put multiple abilities at once in the OMs mode, for OMs like Shared Power and Multibilities.
 
Calc shows incorrect damage for pursuit when switching out in gen 4, it should be the same as crunch

1752420570852.png


As per bulbapedia pursuit was changed to have its power doubled in the power varuable of the damage formula in gen 4 and onwards
https://bulbapedia.bulbagarden.net/wiki/Power

Issue is not present in the gen 5 and onwards calcs so assuming that the gen 4 calc is just incorrectly using the gen 3 damage formula which had a separate "DoubleDMG" variable for pursuit causing the difference

This seems to also be affecting pursuit damage when switching on technician mons, the calc incorrectly uses the technician boost (60bp) instead of the doubled pursuit damage(80bp)

1752421353967.png


https://replay.pokemonshowdown.com/gen4ou-2402003052
 
Wonder room body press interaction is bugged on cartridge and the calc does not emulate that; an old bug report was filled for the intended mechanics on the showdown bug report but when it was shown that the issue was the calcs nobody reported the calculator issue.
 
Calc shows incorrect damage for pursuit when switching out in gen 4, it should be the same as crunch

View attachment 755171

As per bulbapedia pursuit was changed to have its power doubled in the power varuable of the damage formula in gen 4 and onwards
https://bulbapedia.bulbagarden.net/wiki/Power

Issue is not present in the gen 5 and onwards calcs so assuming that the gen 4 calc is just incorrectly using the gen 3 damage formula which had a separate "DoubleDMG" variable for pursuit causing the difference

This seems to also be affecting pursuit damage when switching on technician mons, the calc incorrectly uses the technician boost (60bp) instead of the doubled pursuit damage(80bp)

View attachment 755173

https://replay.pokemonshowdown.com/gen4ou-2402003052
Fixed.

Wonder room body press interaction is bugged on cartridge and the calc does not emulate that; an old bug report was filled for the intended mechanics on the showdown bug report but when it was shown that the issue was the calcs nobody reported the calculator issue.
Fixed.
 
Noticed when calcing for draft, Stealth Rock's effectiveness does not consider Tera currently. So while the defensive calc does include the fact that Vacuum Wave is not super effective, Tera Water Bundle still takes 25% from rocks.
1752808030058.png
 
Back
Top