Class EVAdjustingItemsTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.item.EVAdjustingItemsTests

public class EVAdjustingItemsTests extends Object
Tests for the Macho Brace and the Power Items
  • Constructor Details

    • EVAdjustingItemsTests

      public EVAdjustingItemsTests()
  • Method Details

    • testMachoBraceDoublesEVsGained

      public static CompletableFuture<TestResult> testMachoBraceDoublesEVsGained(BattleTestHelper helper)
      The Macho Brace doubles any effort values (EVs) that are obtained by the Pokémon holding it during a battle.

      In this test, a Grovyle that holds a Macho Brace and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 4 Attack EVs.
       
    • testMachoBraceDoublesEVsGainedWhenGettingEVsInTwoStats

      public static CompletableFuture<TestResult> testMachoBraceDoublesEVsGainedWhenGettingEVsInTwoStats(BattleTestHelper helper)
      The Macho Brace doubles any effort values (EVs) that are obtained by the Pokémon holding it during a battle.

      In this test, a Grovyle that holds a Macho Brace and knows the move Aerial Ace faces a Venomoth at 10% HP that knows the move Sleep Talk.

           Turn 1
           Venomoth uses Sleep Talk.
           Grovyle uses Aerial Ace.
           Venomoth faints.
           -
           We verify that Grovyle received 2 Special Attack EVs and 2 Speed EVs.
       
    • testMachoBraceDoublesEVsGainedAndStacksWithPokerus

      public static CompletableFuture<TestResult> testMachoBraceDoublesEVsGainedAndStacksWithPokerus(BattleTestHelper helper)
      The Macho Brace doubles any effort values (EVs) that are obtained by the Pokémon holding it during a battle. The effect stacks with Pokérus.

      In this test, a Grovyle with Pokérus that holds a Macho Brace and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 8 Attack EVs.
       
    • testMachoBraceHalvesSpeed

      public static CompletableFuture<TestResult> testMachoBraceHalvesSpeed(BattleTestHelper helper)
      The Speed stat of a Pokémon holding a Macho Brace is halved during battle.

      In this test, two Grovyles that know the move Sleep Talk face a Marshtomp that knows the move Sleep Talk. One Grovyle holds a Macho Brace.

           Turn 1
           The Grovyle without a Macho Brace uses Sleep Talk.
           Marshtomp uses Sleep Talk.
           The Grovyle with a Macho Brace uses Sleep Talk.
           -
           We verify that the Grovyle holding a Macho Brace has half the speed of the Grovyle without one.
       
    • testPowerWeightGrantsEightHPEVs

      public static CompletableFuture<TestResult> testPowerWeightGrantsEightHPEVs(BattleTestHelper helper)
      The Power Bracer grants eight HP EVs whenever the holder gains experience.

      In this test, a Grovyle that holds a Power Weight and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 2 Attack EVs.
           We verify that Grovyle received 8 HP EVs.
       
    • testPowerWeightGrantsEightHPEVsAndStacksWithPokerus

      public static CompletableFuture<TestResult> testPowerWeightGrantsEightHPEVsAndStacksWithPokerus(BattleTestHelper helper)
      The Power Weight grants eight HP EVs whenever the holder gains experience; its effect is doubled by Pokérus.

      In this test, a Grovyle with Pokérus that holds a Power Weight and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 4 Attack EVs.
           We verify that Grovyle received 16 HP EVs.
       
    • testPowerWeightHalvesSpeed

      public static CompletableFuture<TestResult> testPowerWeightHalvesSpeed(BattleTestHelper helper)
      Any Pokémon holding a Power item has its Speed halved while it is holding the item.

      In this test, two Grovyles that know the move Sleep Talk face a Marshtomp that knows the move Sleep Talk. One Grovyle holds a Power Weight.

           Turn 1
           The Grovyle without a Power Weight uses Sleep Talk.
           Marshtomp uses Sleep Talk.
           The Grovyle with a Power Weight uses Sleep Talk.
           -
           We verify that the Grovyle holding a Power Weight has half the speed of the Grovyle without one.
       
    • testPowerBracerGrantsEightAttackEVs

      public static CompletableFuture<TestResult> testPowerBracerGrantsEightAttackEVs(BattleTestHelper helper)
      The Power Bracer grants eight Attack EVs whenever the holder gains experience.

      In this test, a Grovyle that holds a Power Bracer and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 10 Attack EVs.
       
    • testPowerBracerGrantsEightAttackEVsAndStacksWithPokerus

      public static CompletableFuture<TestResult> testPowerBracerGrantsEightAttackEVsAndStacksWithPokerus(BattleTestHelper helper)
      The Power Bracer grants eight Attack EVs whenever the holder gains experience; its effect is doubled by Pokérus.

      In this test, a Grovyle with Pokérus that holds a Power Bracer and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 20 Attack EVs.
       
    • testPowerBracerHalvesSpeed

      public static CompletableFuture<TestResult> testPowerBracerHalvesSpeed(BattleTestHelper helper)
      Any Pokémon holding a Power item has its Speed halved while it is holding the item.

      In this test, two Grovyles that know the move Sleep Talk face a Marshtomp that knows the move Sleep Talk. One Grovyle holds a Power Bracer.

           Turn 1
           The Grovyle without a Power Bracer uses Sleep Talk.
           Marshtomp uses Sleep Talk.
           The Grovyle with a Power Bracer uses Sleep Talk.
           -
           We verify that the Grovyle holding a Power Bracer has half the speed of the Grovyle without one.
       
    • testPowerBeltGrantsEightDefenseEVs

      public static CompletableFuture<TestResult> testPowerBeltGrantsEightDefenseEVs(BattleTestHelper helper)
      The Power Belt grants eight Defense EVs whenever the holder gains experience.

      In this test, a Grovyle that holds a Power Belt and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 2 Attack EVs.
           We verify that Grovyle received 8 Defense EVs.
       
    • testPowerBeltGrantsEightDefenseEVsAndStacksWithPokerus

      public static CompletableFuture<TestResult> testPowerBeltGrantsEightDefenseEVsAndStacksWithPokerus(BattleTestHelper helper)
      The Power Belt grants eight Defense EVs whenever the holder gains experience; its effect is doubled by Pokérus.

      In this test, a Grovyle with Pokérus that holds a Power Belt and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 4 Attack EVs.
           We verify that Grovyle received 16 Defense EVs.
       
    • testPowerBeltHalvesSpeed

      public static CompletableFuture<TestResult> testPowerBeltHalvesSpeed(BattleTestHelper helper)
      Any Pokémon holding a Power item has its Speed halved while it is holding the item.

      In this test, two Grovyles that know the move Sleep Talk face a Marshtomp that knows the move Sleep Talk. One Grovyle holds a Power Belt.

           Turn 1
           The Grovyle without a Power Belt uses Sleep Talk.
           Marshtomp uses Sleep Talk.
           The Grovyle with a Power Belt uses Sleep Talk.
           -
           We verify that the Grovyle holding a Power Belt has half the speed of the Grovyle without one.
       
    • testPowerLensGrantsEightSpecialAttackEVs

      public static CompletableFuture<TestResult> testPowerLensGrantsEightSpecialAttackEVs(BattleTestHelper helper)
      The Power Lens grants eight Special Attack EVs whenever the holder gains experience.

      In this test, a Grovyle that holds a Power Lens and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 2 Attack EVs.
           We verify that Grovyle received 8 Special Attack EVs.
       
    • testPowerLensGrantsEightSpecialAttackEVsAndStacksWithPokerus

      public static CompletableFuture<TestResult> testPowerLensGrantsEightSpecialAttackEVsAndStacksWithPokerus(BattleTestHelper helper)
      The Power Lens grants eight Special Attack EVs whenever the holder gains experience; its effect is doubled by Pokérus.

      In this test, a Grovyle with Pokérus that holds a Power Lens and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 4 Attack EVs.
           We verify that Grovyle received 16 Special Attack EVs.
       
    • testPowerLensHalvesSpeed

      public static CompletableFuture<TestResult> testPowerLensHalvesSpeed(BattleTestHelper helper)
      Any Pokémon holding a Power item has its Speed halved while it is holding the item.

      In this test, two Grovyles that know the move Sleep Talk face a Marshtomp that knows the move Sleep Talk. One Grovyle holds a Power Lens.

           Turn 1
           The Grovyle without a Power Lens uses Sleep Talk.
           Marshtomp uses Sleep Talk.
           The Grovyle with a Power Lens uses Sleep Talk.
           -
           We verify that the Grovyle holding a Power Lens has half the speed of the Grovyle without one.
       
    • testPowerBandGrantsEightSpecialDefenseEVs

      public static CompletableFuture<TestResult> testPowerBandGrantsEightSpecialDefenseEVs(BattleTestHelper helper)
      The Power Band grants eight Special Defense EVs whenever the holder gains experience.

      In this test, a Grovyle that holds a Power Band and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 2 Attack EVs.
           We verify that Grovyle received 8 Special Defense EVs.
       
    • testPowerBandGrantsEightSpecialDefenseEVsAndStacksWithPokerus

      public static CompletableFuture<TestResult> testPowerBandGrantsEightSpecialDefenseEVsAndStacksWithPokerus(BattleTestHelper helper)
      The Power Band grants eight Special Defense EVs whenever the holder gains experience; its effect is doubled by Pokérus.

      In this test, a Grovyle with Pokérus that holds a Power Band and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 4 Attack EVs.
           We verify that Grovyle received 16 Special Defense EVs.
       
    • testPowerBandHalvesSpeed

      public static CompletableFuture<TestResult> testPowerBandHalvesSpeed(BattleTestHelper helper)
      Any Pokémon holding a Power item has its Speed halved while it is holding the item.

      In this test, two Grovyles that know the move Sleep Talk face a Marshtomp that knows the move Sleep Talk. One Grovyle holds a Power Band.

           Turn 1
           The Grovyle without a Power Band uses Sleep Talk.
           Marshtomp uses Sleep Talk.
           The Grovyle with a Power Band uses Sleep Talk.
           -
           We verify that the Grovyle holding a Power Band has half the speed of the Grovyle without one.
       
    • testPowerAnkletGrantsEightSpeedEVs

      public static CompletableFuture<TestResult> testPowerAnkletGrantsEightSpeedEVs(BattleTestHelper helper)
      The Power Anklet grants eight Speed EVs whenever the holder gains experience.

      In this test, a Grovyle that holds a Power Anklet and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 2 Attack EVs.
           We verify that Grovyle received 8 Speed EVs.
       
    • testPowerAnkletGrantsEightSpeedEVsAndStacksWithPokerus

      public static CompletableFuture<TestResult> testPowerAnkletGrantsEightSpeedEVsAndStacksWithPokerus(BattleTestHelper helper)
      The Power Anklet grants eight Speed EVs whenever the holder gains experience; its effect is doubled by Pokérus.

      In this test, a Grovyle with Pokérus that holds a Power Anklet and knows the move Leaf Blade faces a Marshtomp that knows the move Sleep Talk.

           Turn 1
           Marshtomp uses Sleep Talk.
           Grovyle uses Leaf Blade.
           Marshtomp faints.
           -
           We verify that Grovyle received 4 Attack EVs.
           We verify that Grovyle received 16 Speed EVs.
       
    • testPowerAnkletHalvesSpeed

      public static CompletableFuture<TestResult> testPowerAnkletHalvesSpeed(BattleTestHelper helper)
      Any Pokémon holding a Power item has its Speed halved while it is holding the item.

      In this test, two Grovyles that know the move Sleep Talk face a Marshtomp that knows the move Sleep Talk. One Grovyle holds a Power Anklet.

           Turn 1
           The Grovyle without a Power Anklet uses Sleep Talk.
           Marshtomp uses Sleep Talk.
           The Grovyle with a Power Anklet uses Sleep Talk.
           -
           We verify that the Grovyle holding a Power Anklet has half the speed of the Grovyle without one.