Programming Pokémon Showdown Damage Calculator

I had this situation with the damage calculator. I was planning a fight with the totem komma-o and the calculator showed that my pokemon with 27 iv's kills him with a single Z-move strike. As you can see in the screenshot, I indicated that he has a +1 to each stat. But in reality, starmie inflicted damage of 70-75% of the pokemon's hp. Even if the komma-o had a nature with a bonus in sp. defense, the damage would not be so small. The damage calculator has some problems calculating damage from Z-movements. It almost cost me my nuzlocke. I really upset with this sityation
1714757067955.png
 

Concept Everything

Neko no Ensekan
is a Pre-Contributor
It's possible that totem Pokemon have evs, but I haven't seen such information on the internet.
The totem and Pokémon they call during SoS all have guarenteed Natures, IVs and EVs. The only Pokémon during an island trial that don’t have these are the wild encounters.
IMG_6842.jpeg

Edited in the Natures, IVs and EVs just so you have them for future reference.
NORMAL TRIAL
Rattata-Alola (Lv. 11) (Nature: Hardy) (Moves: Tackle/Tail Whip/Quick Attack/Hyper Fang) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Rattata-Alola (Lv. 11) (Nature: Hardy) (Moves: Tackle/Tail Whip/Quick Attack/Super Fang) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Raticate-Alola (Lv. 12) Pecha berry (Nature: Modest) (Moves: Super Fang/Bite/Fury Swipes/Scary Face) IVs: 0/0/0/0/0/0 EVs: 0/100/0/0/0/0
Rattata-Alola (Lv. 10) (Nature: Timid) (Moves: Tackle/Tail Whip/Quick Attack/Pursuit) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0

WATER TRIAL
Araquanid (Lv. 20) @Wacan Berry (Nature: Bold) (Moves: Leech Life/Bubble/Bite/Aurora Beam) IVs: 31/1/31/1/31/1 EVs: 0/0/252/0/0/0
Dewpider (Lv. 18) (Nature: Serious) (Moves: Sticky Web/Rain Dance/Bug Bite/Bubble) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Masquerain (Lv. 18) (Nature: Timid) (Moves: Scary Face/Stun Spore/Tailwind/Bug Bite) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0

FIRE TRIAL
Marowak-Alola (Lv. 22) @Thick Club (Nature: Careful) (Moves: Hex/Flame Wheel/Brick Break/Detect) IVs: 31/31/31/1/31/1 EVs: 252/0/106/0/152/0
Salazzle (Lv. 20) (Nature: Calm) (Moves: Poison Gas/Venoshock/Flame Burst/Torment) IVs: 15/1/31/15/31/1 EVs: 0/0/0/0/0/0

GRASS TRIAL
Lurantis (Lv. 24) Power Herb (Nature: Bold) (Moves: Low Sweep/X-Scissor/Solar Blade/Synthesis) IVs: 31/31/31/1/31/31 EVs: 252/0/64/0/64/130
Kecleon (Lv. 22) (Nature: Jolly) (Moves: Sunny Day/Ancient Power/Dizzy Punch/Screech) IVs: 30/10/30/10/30/10 EVs: 0/0/0/0/0/0
Comfey (Lv. 22) (Nature: Timid) (Moves: Sunny Day/Floral Healing/Floral Shield/Magical Leaf) IVs: 30/30/30/30/30/30 EVs: 0/0/0/0/0/0

AETHER PARADISE
Nihilego (Lv. 27) (Nature: Calm) (Moves: Clear Smog/Psywave/Headbutt/Venoshock) IVs: 31/1/31/1/31/31 EVs: 0/0/0/0/0/0

ELECTRIC TRIAL
Elekid (Lv. 29) (Nature: Timid) (Moves: Quick Attack/Thunder Punch/Low Kick/Leer) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Electabuzz (Lv. 30) (Nature: Timid) (Moves: Electro Ball/Light Screen/Swift/Thunder Wave) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Togedemaru (Lv. 33) Sitrus Berry (Nature: Bold) (Moves: Zing Zap/Spiky Shield/Iron Head/Bounce) IVs: 31/15/31/1/31/31 EVs: 252/0/252/0/0/6
Skarmory (Lv. 32) (Nature: Sassy) (Moves: Stealth Rock/Steel Wing/Tailwind/Torment) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0

GHOST TRIAL
Gastly (Lv. 30) (Nature: Timid) (Moves: Curse/Confuse Ray/Mean Look/Hypnosis) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0
Haunter (Lv. 30) (Nature: Rash) (Moves: Lick/Night Shade/Sucker Punch/Hypnosis) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0
Gengar (Lv. 30) (Nature: Quiet) (Moves: Night Shade/Shadow Punch/Shadow Ball/Hypnosis) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0
Mimikyu (Lv. 35) Lum Berry (Nature: Impish) (Moves: Shadow Claw/Play Rough/Leech Life/Slash) IVs: 31/8/31/15/31/15 EVs: 198/0/124/0/104/84
Banette (Lv. 32) (Nature: Jolly) (Moves: Screech/Will-O-Wisp/Feint Attack/Curse) IVs: 31/15/31/15/31/15 EVs: 0/0/0/0/0/0

DRAGON TRIAL
Jangmo-o (Lv. 42) (Nature: Naughty) (Moves: Bide/Tackle/Leer/Headbutt) IVs: 31/31/31/31/31/31 EVs: 0/0/0/0/0/0
Hakamo-o (Lv. 44) (Nature: Brave) (Moves: Headbutt/Autotomize/Work Up/Sky Uppercut) IVs: 31/31/31/31/31/31 EVs: 0/0/0/0/0/0
Kommo-o (Lv. 49) @Roseli Berry (Nature: Calm) (Moves: Drain Punch/Dragon Claw/Thunder Punch/Poison Jab) IVs: 31/1/31/1/31/31 EVs: 120/0/138/0/252/0
Scizor (Lv. 46) (Nature: Brave) (Moves: Light Screen/Pursuit/Bullet Punch/X-Scissor) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0
Noivern (Lv. 48) (Nature: Timid) (Moves: Boomburst/Screech/Dragon Pulse/Air Slash) IVs: 31/31/31/31/31/31 EVs: 0/0/0/0/0/0

ALTER OF THE MOONE
Necrozma-Dawn-Wings (Lv. 50) (Nature: Bold) (Moves: Moongeist Beam/Moonlight/Psychic/Power Gem) IVs: Random/3 Perfect IVs EVs: 6/0/252/0/252/0

ULTRA SPACE
Necrozma-Ultra (Lv. 60) (Nature: Bold) (Moves: Photon Geyser/Smart Strike/Power Gem/Dragon Pulse) IVs: Random/3 Perfect IVs EVs: 96/0/252/0/162/0

FAIRY TRIAL
Ribombee (Lv. 55) @Occa Berry (Nature: Impish) (Moves: Bug Buzz/Draining Kiss/Quiver Dance/Dazzling Gleam) IVs: 31/1/31/1/31/31 EVs: 100/0/252/0/158/0
Pelipper (Lv. 52) (Nature: Timid) (Moves: Stockpile/Scald/Split Up/Seed Bomb) IVs: 15/31/15/15/15/31 EVs: 0/0/0/0/0/0

Blissey (Lv. 53) (Nature: Naughty) (Moves: Heal Pulse/Light Screen/Helping Hand/Dazzling Gleam) IVs: 15/0/0/0/0/0 EVs: 0/0/0/0/0/0
 
Last edited:
The totem and Pokémon they call during SoS all have guarenteed Natures, IVs and EVs. The only Pokémon during an island trial that don’t have these are the wild encounters.
View attachment 630260
Edited in the Natures, IVs and EVs just so you have them for future reference.
NORMAL TRIAL
Rattata-Alola (Lv. 11) (Nature: Hardy) (Moves: Tackle/Tail Whip/Quick Attack/Hyper Fang) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Rattata-Alola (Lv. 11) (Nature: Hardy) (Moves: Tackle/Tail Whip/Quick Attack/Super Fang) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Raticate-Alola (Lv. 12) Pecha berry (Nature: Modest) (Moves: Super Fang/Bite/Fury Swipes/Scary Face) IVs: 0/0/0/0/0/0 EVs: 0/100/0/0/0/0
Rattata-Alola (Lv. 10) (Nature: Timid) (Moves: Tackle/Tail Whip/Quick Attack/Pursuit) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0

WATER TRIAL
Araquanid (Lv. 20) @Wacan Berry (Nature: Bold) (Moves: Leech Life/Bubble/Bite/Aurora Beam) IVs: 31/1/31/1/31/1 EVs: 0/0/252/0/0/0
Dewpider (Lv. 18) (Nature: Serious) (Moves: Sticky Web/Rain Dance/Bug Bite/Bubble) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Masquerain (Lv. 18) (Nature: Timid) (Moves: Scary Face/Stun Spore/Tailwind/Bug Bite) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0

FIRE TRIAL
Marowak-Alola (Lv. 22) @Thick Club (Nature: Careful) (Moves: Hex/Flame Wheel/Brick Break/Detect) IVs: 31/31/31/1/31/1 EVs: 252/0/106/0/152/0
Salazzle (Lv. 20) (Nature: Calm) (Moves: Poison Gas/Venoshock/Flame Burst/Torment) IVs: 15/1/31/15/31/1 EVs: 0/0/0/0/0/0

GRASS TRIAL
Lurantis (Lv. 24) Power Herb (Nature: Bold) (Moves: Low Sweep/X-Scissor/Solar Blade/Synthesis) IVs: 31/31/31/1/31/31 EVs: 252/0/64/0/64/130
Kecleon (Lv. 22) (Nature: Jolly) (Moves: Sunny Day/Ancient Power/Dizzy Punch/Screech) IVs: 30/10/30/10/30/10 EVs: 0/0/0/0/0/0
Comfey (Lv. 22) (Nature: Timid) (Moves: Sunny Day/Floral Healing/Floral Shield/Magical Leaf) IVs: 30/30/30/30/30/30 EVs: 0/0/0/0/0/0

AETHER PARADISE
Nihilego (Lv. 27) (Nature: Calm) (Moves: Clear Smog/Psywave/Headbutt/Venoshock) IVs: 31/1/31/1/31/31 EVs: 0/0/0/0/0/0

ELECTRIC TRIAL
Elekid (Lv. 29) (Nature: Timid) (Moves: Quick Attack/Thunder Punch/Low Kick/Leer) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Electabuzz (Lv. 30) (Nature: Timid) (Moves: Electro Ball/Light Screen/Swift/Thunder Wave) IVs: 0/0/0/0/0/0 EVs: 0/0/0/0/0/0
Togedemaru (Lv. 33) Sitrus Berry (Nature: Bold) (Moves: Zing Zap/Spiky Shield/Iron Head/Bounce) IVs: 31/15/31/1/31/31 EVs: 252/0/252/0/0/6
Skarmory (Lv. 32) (Nature: Sassy) (Moves: Stealth Rock/Steel Wing/Tailwind/Torment) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0

GHOST TRIAL
Gastly (Lv. 30) (Nature: Timid) (Moves: Curse/Confuse Ray/Mean Look/Hypnosis) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0
Haunter (Lv. 30) (Nature: Rash) (Moves: Lick/Night Shade/Sucker Punch/Hypnosis) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0
Gengar (Lv. 30) (Nature: Quiet) (Moves: Night Shade/Shadow Punch/Shadow Ball/Hypnosis) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0
Mimikyu (Lv. 35) Lum Berry (Nature: Impish) (Moves: Shadow Claw/Play Rough/Leech Life/Slash) IVs: 31/8/31/15/31/15 EVs: 198/0/124/0/104/84
Banette (Lv. 32) (Nature: Jolly) (Moves: Screech/Will-O-Wisp/Feint Attack/Curse) IVs: 31/15/31/15/31/15 EVs: 0/0/0/0/0/0

DRAGON TRIAL
Jangmo-o (Lv. 42) (Nature: Naughty) (Moves: Bide/Tackle/Leer/Headbutt) IVs: 31/31/31/31/31/31 EVs: 0/0/0/0/0/0
Hakamo-o (Lv. 44) (Nature: Brave) (Moves: Headbutt/Autotomize/Work Up/Sky Uppercut) IVs: 31/31/31/31/31/31 EVs: 0/0/0/0/0/0
Kommo-o (Lv. 49) @Roseli Berry (Nature: Calm) (Moves: Drain Punch/Dragon Claw/Thunder Punch/Poison Jab) IVs: 31/1/31/1/31/31 EVs: 120/0/138/0/252/0
Scizor (Lv. 46) (Nature: Brave) (Moves: Light Screen/Pursuit/Bullet Punch/X-Scissor) IVs: 15/15/15/15/15/15 EVs: 0/0/0/0/0/0
Noivern (Lv. 48) (Nature: Timid) (Moves: Boomburst/Screech/Dragon Pulse/Air Slash) IVs: 31/31/31/31/31/31 EVs: 0/0/0/0/0/0

ALTER OF THE MOONE
Necrozma-Dawn-Wings (Lv. 50) (Nature: Bold) (Moves: Moongeist Beam/Moonlight/Psychic/Power Gem) IVs: Random/3 Perfect IVs EVs: 6/0/252/0/252/0

ULTRA SPACE
Necrozma-Ultra (Lv. 60) (Nature: Bold) (Moves: Photon Geyser/Smart Strike/Power Gem/Dragon Pulse) IVs: Random/3 Perfect IVs EVs: 96/0/252/0/162/0

FAIRY TRIAL
Ribombee (Lv. 55) @Occa Berry (Nature: Impish) (Moves: Bug Buzz/Draining Kiss/Quiver Dance/Dazzling Gleam) IVs: 31/1/31/1/31/31 EVs: 100/0/252/0/158/0
Pelipper (Lv. 52) (Nature: Timid) (Moves: Stockpile/Scald/Split Up/Seed Bomb) IVs: 15/31/15/15/15/31 EVs: 0/0/0/0/0/0

Blissey (Lv. 53) (Nature: Naughty) (Moves: Heal Pulse/Light Screen/Helping Hand/Dazzling Gleam) IVs: 15/0/0/0/0/0 EVs: 0/0/0/0/0/0
Thanks you for the information! it would be great if this data were on the nuzlocke trackers :(
 
Thorium
ggg.png


Vivaldi
vvv.png
Both my Thorium and Vivaldi browsers have the calc site displayed like this (pictures zoomed out). Changing zoom levels and turning extensions off doesn't change anything.
 
Page sometimes loads in white and then quickly changes to dark mode. This is on Firefox in dark mode. If you click the "Click for light theme" button and then "Click for dark theme" button, it will load in dark instead of white.This fixes the problem for all future instances as far as I can tell, unless you delete cookies for the site.

Steps to reproduce:
1. Clear cookies and site data for the damage calculator
2. Open the Damage Calculator on Firefox

Actual result:
Page loads in white, then black
Expected result:
Page loads in black

Firefox Version
125.0.1
This also happens on Chrome
Version 125.0.6422.112
 
Does this happen on other browsers besides the two that you gave (maybe try Firefox + another Chromium-based browser).
Nope
Browsers I've tried accessing the calc site with that display it as normal: Firefox, Firefox Nightly, Floorp, Librewolf, Mullvad, Google Chrome, Ungoogled Chromium, Opera, Brave, Microsoft Edge.

I coincidentally did check with my old Pop OS laptop some time ago and I guess it has to do with my data somehow because these 2 browsers are the one I use mainly at the moment, and switching to a blank user profile on both browsers display the calc site as normal. Thank you!
 

DerpySuX

TABLES FLIPPED NOW WE GOT ALL THE COCONUTS BITCH
is a Site Content Manageris a Forum Moderatoris a Community Contributoris a Smogon Discord Contributoris a Top Contributor
I was running some calcs and I noticed that the calc has a tiny error when tera stellar is in play.
It treats the type as its own typing (no resists or weaknesses or w/e) instead of calculating damage based on the users base typing.


Terapagos-Terastal also has its ability default to Tera Shift instead of Tera Shell
IMG_1920.jpg
IMG_1921.jpg
 
I was running some calcs and I noticed that the calc has a tiny error when tera stellar is in play.
It treats the type as its own typing (no resists or weaknesses or w/e) instead of calculating damage based on the users base typing.


Terapagos-Terastal also has its ability default to Tera Shift instead of Tera Shell
View attachment 637364View attachment 637365
After conducting more testing into this, it seems as though the interaction is mainly between the moves Collision Course and Electro Drift and Tera Stellar. Ordinarily, CC and ED would have an additional boost (4/3x boost according to the Smogon Dex) if their attack is super effective. For example, Miraidon's Electro Drift hitting into Kyogre will do more damage than if it used Wildbolt Storm (100 BP) into Kyogre:
0 SpA Hadron Engine Miraidon Wildbolt Storm vs. 0 HP / 0 SpD Kyogre in Electric Terrain: 360-426 (105.5 - 124.9%) -- guaranteed OHKO
0 SpA Hadron Engine Miraidon Electro Drift (133.3251953125 BP) vs. 0 HP / 0 SpD Kyogre in Electric Terrain: 480-566 (140.7 - 165.9%) -- guaranteed OHKO

However, if the Kyogre has Terastallized into a Stellar-type, then the damage calculator will not grant Electro Drift the additional boost that it would ordinarily have if Kyogre had remained a Water-type.
0 SpA Hadron Engine Miraidon Electro Drift vs. 0 HP / 0 SpD Kyogre in Electric Terrain: 360-426 (105.5 - 124.9%) -- guaranteed OHKO
0 SpA Hadron Engine Miraidon Wildbolt Storm vs. 0 HP / 0 SpD Kyogre in Electric Terrain: 360-426 (105.5 - 124.9%) -- guaranteed OHKO

The question becomes whether this behavior is accurate to cart, which is a question for the mechanics thread.
 
Page sometimes loads in white and then quickly changes to dark mode. This is on Firefox in dark mode. If you click the "Click for light theme" button and then "Click for dark theme" button, it will load in dark instead of white.This fixes the problem for all future instances as far as I can tell, unless you delete cookies for the site.

Steps to reproduce:
1. Clear cookies and site data for the damage calculator
2. Open the Damage Calculator on Firefox

Actual result:
Page loads in white, then black
Expected result:
Page loads in black

Firefox Version
125.0.1
Not entirely sure if I've fixed the issue, but I've pushed a change where it will only flash white when there are no cookies, so you won't need to press the "Click for light theme" and "Click for dark theme" button for the issue to go away

I was running some calcs and I noticed that the calc has a tiny error when tera stellar is in play.
It treats the type as its own typing (no resists or weaknesses or w/e) instead of calculating damage based on the users base typing.

View attachment 637364View attachment 637365
Fixed
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top