• The moderator of this forum is Austin.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon.

Programming Pokémon Showdown Damage Calculator

steelskitty

jackie#2196
is a Community Contributor Alumnusis a Past WCoP Champion
weather ball doesn't seem to output the correct damage in dpp:

252+ SpA Life Orb Victreebel Weather Ball (100 BP Fire) vs. 252 HP / 116 SpD Dialga in Sun: 85-101 (21 - 25%) -- possible 5HKO after Leftovers recovery
252+ SpA Life Orb Victreebel Flamethrower vs. 252 HP / 116 SpD Dialga in Sun: 164-193 (40.5 - 47.7%) -- guaranteed 3HKO after Leftovers recovery

it looks like the calc should be displaying twice the amount of damage that it currently does for dpp weather ball.

edit: the lovely and talented SparksBlade has an example of weather ball vs flamethrower damage on ps! https://replay.pokemonshowdown.com/gen4customgame-1183478326
 
Last edited:
To add onto the message above, when changing the power of Weather Ball to a custom value, the calculator uses this value to compute the damage and displays "Weather Ball ([twice the custom value] BP Fire)".
So the display part understands that the bp is doubled when a weather like sun is active but the calc part doesn't acquire the correct base power for the move and always uses the custom / default value instead (without doubling it when appropriate).
In recent generations, it always uses 50 (no boost from weather) or 100 (boosted by weather) base power regardless of the custom input base power.
 
Bug: Nature power defaults to physical when selected -> should be special (BP and type seems correct though), though should convert to the corresponding move, and show in the calc (Like weather ball?/knock off do with bp), depending on terrain
 
Photon Geyser targets Special Defense when the attack is physical
+1 252 Atk Zacian-Crowned Photon Geyser vs. 252 HP / 252 SpD Eternatus: 328-386 (67.7 - 79.7%) -- guaranteed 2HKO after Black Sludge recovery

edit: Photon Geyser also seems to suppress abilities that aren't suppressed by Photon Geyser
+1 252 Atk Zacian-Crowned Earthquake vs. 252 HP / 252 Def Zekrom: 280-330 (69.3 - 81.6%) -- guaranteed 2HKO after Poison Heal
+1 252 Atk Zacian-Crowned Photon Geyser vs. 252 HP / 252 SpD Zekrom: 158-186 (39.1 - 46%) -- guaranteed 3HKO after toxic damage
 
Last edited:

Maple

Formerly DugZa
is a Tiering Contributoris the defending Monotype Circuit Champion
Currently the damage calculator is coded to halve the damage for every hit for multi strike moves vs Pokemon that hold a damage reducing berry but realistically damage is only halved for the first hit.

Damage for 2 hits without berry: 252+ Atk Venusaur Bullet Seed (2 hits) vs. 4 HP / 0 Def Azumarill: 160-192 (46.7 - 56.1%) -- approx. 73% chance to 2HKO

Damage for 2 hits with berry: 252+ Atk Venusaur Bullet Seed (2 hits) vs. 4 HP / 0 Def Rindo Berry Azumarill: 80-96 (23.3 - 28%) -- approx. 83.1% chance to 4HKO

So exactly half of the damage is dealt for both hits, with the berry according to the damage calculator. In practice it should be 1/2 damage for the first hit + full damage for the successive hits. Would be cool to see that fixed, thanks.
 
Last edited:
Currently the damage calculator is coded to halve the damage for every hit for multi strike moves vs Pokemon that hold a damage reducing berry but realistically damage is only halved for the first hit.

Damage for 2 hits without berry: 252+ Atk Venusaur Bullet Seed (2 hits) vs. 4 HP / 0 Def Azumarill: 160-192 (46.7 - 56.1%) -- approx. 73% chance to 2HKO

Damage for 2 hits with berry: 252+ Atk Venusaur Bullet Seed (2 hits) vs. 4 HP / 0 Def Rindo Berry Azumarill: 80-96 (23.3 - 28%) -- approx. 83.1% chance to 4HKO

So exactly half of the damage is dealt for both hits, with the berry according to the damage calculator. In practice it should be 1/2 damage for the first hit + full damage for the successive hits. Would be cool to see that fixed, thanks.
It also applies to Multiscale.
You could even argue that the chance to nhko becomes irrelevant for regular moves in these cases, and also with Gems but that's another issue.
 
Oh you're right. But why the heck is that "Charizard Y" for non-mega charizard? I don't get it.
The set is named OU Drought Wallbreaker Y because it's a set used on Mega Charizard Y.
They list the sets for Charizard under both its base and mega form because before mega evolving your Charizard will be in its base form and you may want to calc some situations without mega evolving.
 
The ability "Rivalry" doesn't seem to be working as intended. When I set two Luxrays against each other with rivalry, they do more damage to each other if one is female and one is male than if they are both male.
(Included pics for reference)
 

Attachments

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

Top