• 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

xJoelituh

is a member of the Site Staffis a Community Leaderis a Live Chat Contributoris a Battle Simulator Moderator
Discord Leader
Facade should be 140 BP in ADV when getting a status, basically working the same as in gen4 and 5(something weird is going on in bw too because damage changes slightly, cant figure out what tho)

ADV:
96 Atk Snorlax Facade vs. 0 HP / 0 Def Moltres: 99-117 (30.8 - 36.4%) -- 60.1% chance to 3HKO
Possible damage amounts: (99, 100, 101, 102, 104, 105, 106, 107, 108, 109, 111, 112, 113, 114, 115, 117)
96 Atk burned Snorlax Facade vs. 0 HP / 0 Def Moltres: 51-60 (15.8 - 18.6%) -- possible 6HKO <------------- this is wrong
Possible damage amounts: (51, 51, 52, 52, 53, 54, 54, 55, 55, 56, 57, 57, 58, 58, 59, 60) <-------------------- ^

DPP:
96 Atk Snorlax Facade vs. 0 HP / 0 Def Moltres: 99-117 (30.8 - 36.4%) -- 55.1% chance to 3HKO
Possible damage amounts: (99, 100, 100, 102, 103, 105, 105, 106, 108, 109, 111, 111, 112, 114, 115, 117)
96 Atk burned Snorlax Facade (140 BP) vs. 0 HP / 0 Def Moltres: 99-117 (30.8 - 36.4%) -- 55.1% chance to 3HKO
Possible damage amounts: (99, 100, 100, 102, 103, 105, 105, 106, 108, 109, 111, 111, 112, 114, 115, 117)

BW:
96 Atk Snorlax Facade vs. 0 HP / 0 Def Moltres: 99-117 (30.8 - 36.4%) -- 55.1% chance to 3HKO
Possible damage amounts: (99, 100, 100, 102, 103, 105, 105, 106, 108, 109, 111, 111, 112, 114, 115, 117)
96 Atk burned Snorlax Facade (140 BP) vs. 0 HP / 0 Def Moltres: 97-115 (30.2 - 35.8%) -- 40.9% chance to 3HKO <---------- this is slightly wrong Possible damage amounts: (97, 99, 99, 101, 102, 103, 105, 105, 107, 108, 109, 110, 111, 112, 114, 115) <----------------- ^

Because there was some confusing(mostly from my part though here):
https://www.smogon.com/forums/posts/8625938/
https://www.smogon.com/forums/posts/8625994/
 
Facade should be 140 BP in ADV when getting a status, basically working the same as in gen4 and 5(something weird is going on in bw too because damage changes slightly, cant figure out what tho)

ADV:
96 Atk Snorlax Facade vs. 0 HP / 0 Def Moltres: 99-117 (30.8 - 36.4%) -- 60.1% chance to 3HKO
Possible damage amounts: (99, 100, 101, 102, 104, 105, 106, 107, 108, 109, 111, 112, 113, 114, 115, 117)
96 Atk burned Snorlax Facade vs. 0 HP / 0 Def Moltres: 51-60 (15.8 - 18.6%) -- possible 6HKO <------------- this is wrong
Possible damage amounts: (51, 51, 52, 52, 53, 54, 54, 55, 55, 56, 57, 57, 58, 58, 59, 60) <-------------------- ^

DPP:
96 Atk Snorlax Facade vs. 0 HP / 0 Def Moltres: 99-117 (30.8 - 36.4%) -- 55.1% chance to 3HKO
Possible damage amounts: (99, 100, 100, 102, 103, 105, 105, 106, 108, 109, 111, 111, 112, 114, 115, 117)
96 Atk burned Snorlax Facade (140 BP) vs. 0 HP / 0 Def Moltres: 99-117 (30.8 - 36.4%) -- 55.1% chance to 3HKO
Possible damage amounts: (99, 100, 100, 102, 103, 105, 105, 106, 108, 109, 111, 111, 112, 114, 115, 117)

BW:
96 Atk Snorlax Facade vs. 0 HP / 0 Def Moltres: 99-117 (30.8 - 36.4%) -- 55.1% chance to 3HKO
Possible damage amounts: (99, 100, 100, 102, 103, 105, 105, 106, 108, 109, 111, 111, 112, 114, 115, 117)
96 Atk burned Snorlax Facade (140 BP) vs. 0 HP / 0 Def Moltres: 97-115 (30.2 - 35.8%) -- 40.9% chance to 3HKO <---------- this is slightly wrong Possible damage amounts: (97, 99, 99, 101, 102, 103, 105, 105, 107, 108, 109, 110, 111, 112, 114, 115) <----------------- ^

Because there was some confusing(mostly from my part though here):
https://www.smogon.com/forums/posts/8625938/
https://www.smogon.com/forums/posts/8625994/

According to this smogon post about the BW damage formula https://www.smogon.com/bw/articles/bw_complete_damage_formula, when afflicted by a status, Facade base power is doubled (it's a base power modifier) whereas Burn is a damage modifier (it's applied after computing the base damage).
Because of rounding these two factors don't cancel each other out, because they are not applied at the same stage of the damage calculation.
It works the same way in generations 6, 7 and 8 (I don't know how the damage formula worked precisely in older generations, like DPP where your damage calcs are the same).
So I don't think there is any mistake other than Facade not doubling power when the user is statused in ADV.
 
When the damage calculator is considering an ability, can it please display that ability in the "Ability" dropdown menu?
ability.png
 

Plague von Karma

Os gwelwch yn dda fod yn garedig!
is a Pokemon Researcher
Not sure if these have been discussed before, but I thought I'd drop in.

Is it possible to have RBY and GSC allow modification of Stat Exp? While it's not the most relevant thing in the world, Confusion damage among other bits are. Mewtwo in RBY Ubers also uses very specific Stat Exp distributions to prevent rollovers in the event its Special is dropped post-Amnesia. It's also somewhat relevant in a few side formats (eg. Hackmons with L255s to avoid rollovers, level-limited formats where getting Stat Exp isn't really possible).

On a side note, is it possible to add calculation for potential Confusion damage as well?
 

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

Top