Class FloatStoneTests
The tests that verify the Float Stone does not affect the Heavy Ball can be found in com.pixelmonmod.pixelmon.tests.pokeball.CaptureRateTests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture
<TestResult> A Pokémon's weight cannot be reduced below 0.1 kg by the Float Stone.static CompletableFuture
<TestResult> Autotomize is applied before other weight-modifying effects, including the Float Stone.static CompletableFuture
<TestResult> The Float Stone halves the weight of the holder.
-
Constructor Details
-
FloatStoneTests
public FloatStoneTests()
-
-
Method Details
-
testFloatStoneHalvesTheWeightOfTheHolder
public static CompletableFuture<TestResult> testFloatStoneHalvesTheWeightOfTheHolder(BattleTestHelper helper) The Float Stone halves the weight of the holder.In this test, an Aggron, which weighs 360.0 kg, holds a Float Stone and knows the move Heavy Slam. It faces an Aron, which has a weight of 60.0 kg, and knows the move Sleep Talk. The Aggron and Aron also have the Sturdy ability to prevent them rarely receiving their hidden ability, Heavy Metal. The Heavy Slam should typically have a power of 120 when the defender's (Aron's) weight is less than 20% of the attacker's (Aggron). The power drops to 80 when the defender's weight is less than 33.34% of the attacker's weight.
Turn 1 Aggron uses Heavy Slam. Aron uses Sleep Talk. - We verify that the Aggron has a weight half of what is species json file has. We verify that the Heavy Slam attack had a power of 80.
-
testFloatStoneHalvesTheWeightAfterAutotomize
public static CompletableFuture<TestResult> testFloatStoneHalvesTheWeightAfterAutotomize(BattleTestHelper helper) Autotomize is applied before other weight-modifying effects, including the Float Stone.In this test, an Aggron, which weighs 360.0 kg, holds a Float Stone and knows the move Autotomize. It faces an Aron, which has a weight of 60.0 kg, and knows the move Sleep Talk. The Aggron and Aron also have the Sturdy ability to prevent them rarely receiving their hidden ability, Heavy Metal.
Turn 1 Aggron uses Autotomize. Aron uses Sleep Talk. - We verify that the Aggron has a weight of ((360.0 kg - 100.0 kg) / 2) = 130.0 kg.
-
testFloatStoneCannotReduceWeightBelowOneTenthOfAKilogram
public static CompletableFuture<TestResult> testFloatStoneCannotReduceWeightBelowOneTenthOfAKilogram(BattleTestHelper helper) A Pokémon's weight cannot be reduced below 0.1 kg by the Float Stone.In this test, a Haunter that holds a Float Stone and knows the move Sleep Talk faces a Flabébé that also holds a Float Stone and knows the move Sleep Talk.
Turn 1 Haunter uses Sleep Talk. Flabébé uses Sleep Talk. - We verify that the Haunter's weight remain at 0.1 kg. We verify that the Flabébé's weight remain at 0.1 kg.
-