Class MoveResultsTests
java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.MoveResultsTests
Tests to verify that the values of MoveResults are saved as intended for the most basic scenarios.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult> Verifies that the MoveResults are correctly saved for multi-strike attacks.static CompletableFuture<TestResult> Verifies that the MoveResults are correctly saved for increased priority attacks.static CompletableFuture<TestResult> Verifies that the MoveResults are correctly saved for single-target single-strike attacks.
-
Constructor Details
-
MoveResultsTests
public MoveResultsTests()
-
-
Method Details
-
testMoveResultsSavesSingleHitFixedDamageAttack
public static CompletableFuture<TestResult> testMoveResultsSavesSingleHitFixedDamageAttack(BattleTestHelper helper) Verifies that the MoveResults are correctly saved for single-target single-strike attacks.In this test, a Yanma that knows Sonic Boom faces a Fuecoco that knows Sleep Talk. Sonic Boom always hits for exactly 20 damage.
Turn 1 The Yanma uses Sonic Boom. The Fuecoco uses Sleep Talk. - After Turn 1 We verify that the Yanma's only target was Fuecoco. We verify that the Yanma's total power was 0, since Sonic Boom has a Base Power of 0 and deals fixed damage. We verify that the Yanma's priority was 0. We verify that the Yanma's total damage was 20. We verify that the Yanma's total potential damage was 20. We verify that the Yanma's last attack succeeded. -
testMoveResultsSavesPriority
Verifies that the MoveResults are correctly saved for increased priority attacks.In this test, an Impidimp with Prankster that knows Confide faces a Fuecoco that knows Sleep Talk.
Turn 1 The Impidimp uses Confide. The Fuecoco uses Sleep Talk. - After Turn 1 We verify that the Impidimp's only target was Fuecoco. We verify that the Impidimp's total power was 0, since Confide is a status move. We verify that the Impidimp's priority was 1. We verify that the Impidimp's total damage was 0. We verify that the Impidimp's total potential damage was 0. We verify that the Impidimp's last attack succeeded. -
testMoveResultsSavesMultiStrikeAttacks
public static CompletableFuture<TestResult> testMoveResultsSavesMultiStrikeAttacks(BattleTestHelper helper) Verifies that the MoveResults are correctly saved for multi-strike attacks.In this test, a Klink that knows Gear Grind faces a Crocalor that knows Sleep Talk.
Turn 1 The Crocalor uses Sleep Talk. The Klink uses Gear Grind. - After Turn 1 For each hit of Gear Grind... We verify that the Klink's only target was Crocalor. We verify that the Klink's power was 50, which is its base power. We verify that the Klink's strikes had an Attack Result of AttackResult.hit. For the final results of Gear Grind... We verify that the Klink's only target was Crocalor. We verify that the Klink's total power was 100, since Gear Grind has 50 base power and hit twice. We verify that the Klink's priority was 0. We verify that the Klink's total damage was the addition of both of its strikes. We verify that the Klink's total potential damage was the addition of both of its strikes. We verify that the Klink's last attack succeeded.
-