Class ZoomLensTests
java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.item.ZoomLensTests
Tests for the Zoom Lens
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture
<TestResult> Boosts the holder's accuracy by 20% (a factor of 4915/4096 in Generation V onward) against targets that have already used a move in the same turn.static CompletableFuture
<TestResult> Boosts the holder's accuracy by 20% (a factor of 4915/4096 in Generation V onward) against targets that have already used a move in the same turn.
-
Constructor Details
-
ZoomLensTests
public ZoomLensTests()
-
-
Method Details
-
testZoomLensIncreasesAccuracyAgainstOpponentsThatHaveAlreadyUsedAMove
public static CompletableFuture<TestResult> testZoomLensIncreasesAccuracyAgainstOpponentsThatHaveAlreadyUsedAMove(BattleTestHelper helper) Boosts the holder's accuracy by 20% (a factor of 4915/4096 in Generation V onward) against targets that have already used a move in the same turn.In this test, a Clauncher that holds a Zoom Lens and knows the move Hydro Pump faces a Poliwhirl that holds a Lagging Tail and knows the move Fling.
Turn 1 Clauncher uses Hydro Pump. Poliwhirl uses Fling and loses its Lagging Tail. Turn 2 Poliwhirl uses Fling and the move fails. Clauncher uses Hydro Pump. - We verify that Hydro Pump has its accuracy set to 80 in its json file. We verify that the Clauncher's Hydro Pump's accuracy is 80 when the user moves before the opponent. We verify that the Clauncher's Hydro Pump's accuracy when the user moves after the opponent is (80 * 1.2) = 96.
-
testZoomLensIncreasesAccuracyEvenWhenTheUserDoesNotMoveLast
public static CompletableFuture<TestResult> testZoomLensIncreasesAccuracyEvenWhenTheUserDoesNotMoveLast(BattleTestHelper helper) Boosts the holder's accuracy by 20% (a factor of 4915/4096 in Generation V onward) against targets that have already used a move in the same turn.In this test, a Clauncher that holds a Zoom Lens and knows the move Hydro Pump is on a team with a Silcoon that knows the move Harden. They face a Poliwhirl that knows the move Sleep Talk along with a Elgyem that knows the move Agility.
Turn 1 Poliwhirl uses Sleep Talk. Clauncher uses Hydro Pump on Poliwhirl. Elgyem uses Agility. Silcoon uses Harden. Turn 2 Poliwhirl uses Sleep Talk. Elgyem uses Agility. Clauncher uses Hydro Pump on Poliwhirl. Silcoon uses Harden. - We verify that Hydro Pump has its accuracy set to 80 in its json file. During both turn one and turn two, we verify that the Clauncher's Hydro Pump's accuracy is (80 * 1.2) = 96 because its target (Poliwhirl) moves before the Clauncher.
-