Base Stats Damage Calculator

By Mark Steinhauser, 2009

******************

Changelog:

v. 1.1

- "Additional Options" menu

v. 1.11

- Critical Hit damage ignores defense boosts and attack drops (this still
  isn't done right on Shoddy!)

v. 1.2

- Level and IV modification

v. 1.3

- Base Power Calculator
- ability to display damage done in HP

v. 1.4

- "Will it KO?" feature
- buttons to max out EVs quickly
- stat calculator

v. 1.41

- "Will it KO" window is borderless and expands from main window like "Additional
  Options"
- both "Additional Options" and "Will it KO" windows stay in place when you move the
  main window. Convenient!

******************

Overview of features and functionality

MAIN WINDOW

The main app. Contains only common information that is necessary and changes
often.

    "Attacker" section:
     
        Base Atk / SpA:     The attacking Pokémon's relevant base stat.
                            Attack for physical attacks and Special Attack
                            for special attacks. The arrow buttons
                            increment the base stat by 5.
                   
        Atk EVs:            The EVs placed in the relevant attack stat. The
                            small arrow buttons increment the EVs by 4. The large
                            arrow buttons set the EVs to max (252) or min (0).
                            
        Attack Boosts:      The total number of Attack or Special Attack boosts
                            gained or lost. The maximum is +6 and the minimum
                            is -6.
                            
        Nature:             "+ Nature" indicates a nature that boosts the
                            relevant attack stat. "- Nature" indicates a
                            nature detrimental to that stat." ~ " indicates
                            a neutral nature.
                            
        Base Power:         The base power of the attacking move used. The
                            arrow buttons increment the base power by 5.
        
        STAB:               Select this if the attacking move is the same type
                            as the attacking Pokémon.
                            
        Item:               The amount that the item carried boosts the attack.
                            It can range from 1.0 (no boost) to 2.0 (a full-
                            powered Metronome) and is incremented by 0.1.
                            
        Item Type:          - "Life Orb" includes Life Orb and Metronome.
        
                            - "Choice" includes Choice Band, Choice Specs, Thick
                            Club, Light Ball, Soul Dew and Deepseatooth.
                            
                            - "Plate" includes all plates and other type-boosting
                            items, Muscle Band, Wise Glasses, Adamant Orb and
                            Lustrous Orb.
                            
                            - "Expert Belt" includes only Expert Belt.
    
    "Defender" section:
    
        Base HP:            The attacking Pokémon's base HP stat. The arrow
                            buttons increment the base stat by 5.
                            
        HP EVs:             The EVs placed in the HP stat. The small
                            arrow buttons increment the EVs by 4. The large
                            arrow buttons set the EVs to max (252) or min (0).
                            
        Base Def / SpD:     The defending Pokémon's relevant base stat.
                            Defense for physical attacks and Special Defense
                            for special attacks. The arrow buttons
                            increment the base stat by 5.
                            
        Def / SpD EVs:      The EVs placed in the relevant defense stat. The
                            small arrow buttons increment the EVs by 4. The large
                            arrow buttons set the EVs to max (252) or min (0).
                            
        Defense Boosts:     The total number of Defense or Special Defense
                            boosts gained or lost. The maximum is +6 and the
                            minimum is -6.
                            
        Nature:             "+ Nature" indicates a nature that boosts the
                            relevant defense stat. "- Nature" indicates a
                            nature detrimental to that stat." ~ " indicates
                            a neutral nature.
                            
        Weak / Resist:      The weakness or resistance of the defender to the
                            attack's type. Values range from x4 damage (double
                            weakness) to 0.25x damage (double resist).
                            
                            "x1 (resist + weak)" refers to Pokémon that resist
                            an attack with their first type but are weak to it
                            with their second type. For example, Gyarados
                            resists Ice Beam with its first type (water) but
                            is weak to it with its second type (flying). When
                            calculating Ice Beam's damage on Gyarados, use
                            "x 1 (resist + weak)".
                            
                            In all other cases, use "x 1", including cases where
                            the defender is weak with its first type but resists
                            with its second type (Gyarados taking a Grass
                            Knot for example).
                            
        Calculate :         Go on...click it!
        
        Damage & "Show      The damage, in percentage. If "Show HP damage" is
        HP damage":         checked, the display will also show the damage in HP.
                            
        Additional Options: Brings up or conceals the additional options window.
        
        Will it KO?:        Brings up the KO calculator - the likelihood of an
                            attack to OHKO, 2HKO or 3HKO given various conditions.
                            
ADDITIONAL OPTIONS WINDOW

Factors that do not change often in competetive play (level, IVs) or are not commonly
seens (weather, abilities, etc).

    "Attacker" section:
    
        Me First:           If the attack is being copied by Me First.
        
        Self-KO Move:       If the attack is Selfdestruct or Explosion.
        
        Critical Hit:       If the attack is a critical hit.
        
        Burn:               If the attacker is burned.
        
        Weather:            "+ Weather" denotes Fire attacks in Sun and Water
                            attacks in Rain. "- Weather" denotes Fire attacks
                            in Rain and Water attacks in Sun. If unchecked, weather
                            is not a factor.
                            
        Ability:            The attacking Pokémon's ability. If unchecked, the ability
                            is not a factor. Some abilities will only activate if other
                            conditions are met:

                            - Adaptability: STAB attack
                            - Sniper: critical hit
                            - Technician: attack is 60 base power or lower
                            - Tinted Lens: attack is resisted by the defender
                            
                            For all other abilities, it is assumed to be currently
                            activated if checked.
                            
        Level:              The attacker's level. The default is 100.
        
        Attack IV:          The attacker's IV in the relevant offensive stat.
                            The default is 31.
                            
    "Defender" section:
    
        Reflect /           If protected by Reflect or Light Screen.
        Light Screen:
        
        Rock-Type           If a special attack is being used on a Rock-type
        (in Sandstorm):     Pokémon in Sandstorm.
        
        Item:               Defensive items. If unchecked, the item is not a factor.
                            Type-resist berries will only activate on super-effective
                            attacks. Chilan is the Normal-resist berry and will only
                            activate on a neutral or resisted hit.
                            
        Ability:            The defending Pokémon's ability. If unchecked, the ability
                            is not a factor. Filter and Solid Rock will only activate
                            on super-effective attacks. Dry Skin modifies damage for
                            Fire-type attacks, not Water-type atatcks.
                            
        Level:              The defender's level. The default is 100.
        
        HP IV:              The defender's HP IV. The default is 31.
        
        Defense IV:         The defender's IV in the relevant defensive stat.
                            The default is 31.
                            
    "2 vs 2 Options"
    
        2 vs 2 Mode:        When activated, Reflect and Light Screen reduce
                            damage by 25% instead of 50%.
                            
        Helping Hand:       Attack is boosted by Helping Hand.
        
        Multiple Targets:   Some attacks that hit multiple targets in 2 vs 2 deal
                            75% damage; however, this is not true of all multiple-
                            target attacks. Research on this subject is ongoing.
                            
    "Obscure Options"
    
        Charge:             Charge was used last turn, and an Electric attack
                            is being used this turn.
                            
        Spit Up:            The attack Spit Up, which aways deals max damage.
        
        Water / Mud Sport:  An Electric attack used on a Pokémon that used Mud Sport,
                            or a Fire attack used on a Pokémon that used Water Sport.
                            
WILL IT KO? WINDOW

Allows user to calculate the likelihood of a OHKO, 2HKO, or 3HKO based on the
previously calculated damage and various other factors. Note that a "100% chance to
2HKO" essentially means a 0% chance to OHKO.
    
    "Defender's Ramaining HP"
    
        %:                  The percentage of the defender's HP that is left.
                            Will adjust if an exact HP amount is selected.
        
        hp:                 The exact number of defender's hit points remaining.
                            Will adjust if an HP percentage is selected.
        
        of X hp:            The defender's max HP, based on the base HP
                            and HP EVs provided in the main window.
                            
    "Entry hazard damage"
    
        Stealth Rock:       If Stealth Rock is on the field, and how weak the opponent
                            is to Rock-type attacks.
                            
        Spikes:             How many layers of Spikes are on the field.
        
    "End-of-turn effects"
                            
        Burn / Poison:      Burn, or poison dealing 12.5% damage per turn.
        
        Toxic:              Toxic poison dealing 6.25% damage on the first turn, 12.5%
                            damage on the second turn and 18.75% damage on the third
                            turn.
                            
        Leftovers:          Heals 6.25% per turn, after other residual effects.
        
        Sandstorm / Hail:   Weather dealing 6.25% damage per turn.
        
    Switching in:           Whether or not the first attack is dealt as the opponent
                            switches in. If this is not selected, Stealth Rock damage 
                            will not be added (but can be manually added at the top).
                            As well, end-of-turn effects will count towards OHKOs,
                            even if the "End-of-turn KO" option is uncheked (but not
                            2HKOs or 3HKOs).
     
    End-of-turn KO:         When checked, a Pokémon fainted from end-of-turn residual
                            damage will count for having fainted that turn. (So, an
                            attack that brings a poisoned Pokémon down to 5% will
                            still count as a OHKO, since the Pokémon dies from poison
                            damage afterwards.) When unchecked, a Pokémon is only
                            counted as being fainted if it is down at the end of the
                            attack.
                            
    Calculate:              Click it!
    
BASE POWER CALCULATOR

Found under Tools, this calculator gives you the base power value of several attacks
with variable base power: Gyro Ball, Flail / Reversal, Eruption / Water Spout, Crush
Grip / Wring Out, and Grass Knot / Low Kick. The Submit button will put the calculated
base power into the main wondow.

    "Gyro Ball"
    
        (Most of these categories are self-explainatory. Attacker is the user of Gyro Ball.)
        
        Attacker's /
        Defender's Item:    Macho Brace could be any Speed-halving item like Iron Ball
                            or Power Anklet, as well as the ability Slow Start. For rare
                            Speed-doubling effects like Quick Feet or Quickpowder, simply
                            add 2 Speed boosts.
                            
    "Flail / Reversal" &
    "Eruption / Water Spout" &
    "Crush Grip / Wring Out"
    
        If you want to find a percentile HP from a numerical amount, you can use
        the Will it KO? window. Type in the HP amount and click Calculate, and
        the % section should display an exact percentile amount.
        
        Note that Flail / Reversal and Eruption / Water Spout depend on the
        attacker's HP, while Crush Grip / Wring Out depend on the defender's HP.
        
    "Grass Knot"
    
        Input the defender's weight in either pounds or kilograms. Note, however, that an
        easier way to find this base powe value is to use a weight listing like the
        the one in Bulbapedia (use CTRL + F to find the Pokémon's name):
        
        http://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_weight
        
STAT CALCULATOR

This is a simple stat calculator, and most of the fields are self-explainatory.
Unlisted abilities and items (like Thick Club) can be fudged by using one of
the listed abilities, or just muliplied in afterwards. (Remember to always round
down.)