Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DaWoblefet authored Dec 31, 2018
1 parent 9d47f59 commit 04fd09d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ Steps:
1) Input the HP stat of the target Pokemon. In this case, Stakataka has 168 HP.
2) Copy and paste the damage rolls for each of your attacks from the damage calculator (https://trainertower.com/damagecalc/). In this case, here are the damage rolls for each:

+2 252 SpA Fairy Aura Xerneas Moonblast vs. 252 HP / 4 SpD Stakataka: 106-126 (63 - 75%)
- +2 252 SpA Fairy Aura Xerneas Moonblast vs. 252 HP / 4 SpD Stakataka: 106-126 (63 - 75%)
(106, 108, 109, 110, 111, 113, 114, 115, 117, 117, 119, 120, 121, 123, 124, 126)

4 Atk Incineroar Flare Blitz vs. 252 HP / 0 Def Stakataka: 42-49 (25 - 29.1%)
- 4 Atk Incineroar Flare Blitz vs. 252 HP / 0 Def Stakataka: 42-49 (25 - 29.1%)
(42, 42, 42, 43, 43, 43, 45, 45, 45, 46, 46, 46, 48, 48, 48, 49)

You want to paste in just the numbers between the parentheses. So paste in 106, 108, 109, 110, 111, 113, 114, 115, 117, 117, 119, 120, 121, 123, 124, 126 and 42, 42, 42, 43, 43, 43, 45, 45, 45, 46, 46, 46, 48, 48, 48, 49 for set 1 and set 2.
Expand All @@ -28,11 +27,10 @@ Example 2: Let's say you wanted to calculate the odds of Breloom's 4-hit Bullet
The damage rolls are as follows for each hit: 33, 33, 34, 34, 35, 35, 36, 36, 36, 36, 37, 37, 38, 38, 39, 39.

Copy and paste this in 4 times. We see the given percent chance to KO is 25.7568359375%. Notice how much more precise this is compared to the Showdown/Trainer Tower-style damage calculators:
252 Atk Technician Breloom Bullet Seed (4 hits) vs. 4 HP / 0 Def Pheromosa: 132-156 (89.7 - 106.1%) -- approx. 18.8% chance to OHKO

- 252 Atk Technician Breloom Bullet Seed (4 hits) vs. 4 HP / 0 Def Pheromosa: 132-156 (89.7 - 106.1%) -- approx. 18.8% chance to OHKO

NOTE: if you add a lot of damage rolls (like more than 5), the program may lag and run more slowly, but it's working.

To compile: javac KOChanceGUI.java
To run: java KOChanceGUI
To build an executable jar: -jar cvfm KOChanceCalculator.jar manifest.MF KOChanceGUI.class woblescientist.png
- To compile: `javac KOChanceGUI.java`
- To run: `java KOChanceGUI`
- To build an executable jar: `-jar cvfm KOChanceCalculator.jar manifest.MF KOChanceGUI.class woblescientist.png`

0 comments on commit 04fd09d

Please sign in to comment.