Can you program the calc to take into account berry juice recovery like it does for leftovers? It would help in little cup damage calcs. For example-
236 Atk Gligar Earthquake vs. 196 HP / 196+ Def Phanpy: 12-15 (42.8 - 53.5%) -- 8.2% chance to 2HKO
(12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15)
Should actually be a 4.1% chance to OHKO, since Phanpy would be able to recover from berry juice if the 15 damage roll happened while it was at full health.
236 Atk Gligar Earthquake vs. 196 HP / 196+ Def Phanpy: 12-15 (42.8 - 53.5%) -- 8.2% chance to 2HKO
(12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15)
Should actually be a 4.1% chance to OHKO, since Phanpy would be able to recover from berry juice if the 15 damage roll happened while it was at full health.