Results 1 to 3 of 3

Thread: Damage Formula

  1. #1

    Default Damage Formula

    Hey guys, just posting here to let you know that the B/W Damage Formula article has been posted at Smogon. The whole thread submission phase took less than a day so not many people got wind of it before it was uploaded.

    Here's the article.

    The Pokecheck.org team is working on an upcoming feature relating to battling, and we discovered (through debugging) that the D/P methodology of calculating damage wasn't matching up with predictions based on the Battle RNG. We then had the entire "damage" portion of the battle code debugged and then made it into a very technical but still readable article for Smogon. We've included the multiplication factors for each special case, as simple 1.x decimal multipliers are not how the game does it.

    If you have questions about the damage formula / article feel free to ask, either here or at #smogonwifi @ synirc.

  2. #2
    I see what you did there
    Pokémon Online DeveloperCo-Lead DeveloperManages PO ScriptsMafia AdminManages PO MafiaServer Owner and the MOST AWESOME VIKING!Global Forum Moderator
    Lamperi's Avatar
    Join Date
    Apr 2010
    Location
    Tampere, Finland
    Posts
    2,617

    Default

    Looking at the article, at least some moves are using wrong methods, at least Pledges and Present.

    Revamping the modifier and multiplication system would be a tough thing to do, especially since the errors are very small (There's is no 1.1 or 1.3 in floating point either, there's another source for error).
    Master of Science (Tech), Mathematics
    Dad with three daughters, full time Design Engineer in a software company
    I wish days had 28 hours instead of 24

  3. #3

    Default

    Present is weird. It's got 2 rand() calls if it deals damage, one to see if it heals or damages, then how much Base Power. [rand(100) and then rand(80)] -- the article didn't mention this but that's how the game does it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •