Class ExpShareTests

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

public class ExpShareTests extends Object
Tests for the Exp. Share
  • Constructor Details

    • ExpShareTests

      public ExpShareTests()
  • Method Details

    • testExpShareDoesNotDoubleDipParticipants

      public static CompletableFuture<TestResult> testExpShareDoesNotDoubleDipParticipants(BattleTestHelper helper)
      A participating Pokémon must not also collect the Exp. Share cut on top of its full participation award. Two same-species, same-level, non-evolving Pokémon make every experience multiplier identical, so the participant should earn exactly double the benched holder's half share (give or take integer truncation).

      In this Single Battle test, a level 80 Tauros that knows Body Slam and a benched level 80 Tauros holding an Exp. Share face a level 10 Blissey, with a Magikarp to switch in after it faints.

           Turn 1
           The lead Tauros uses Body Slam. The Blissey faints.
           The Magikarp is switched in for the fainted Blissey.
           -
           We verify that neither Tauros levelled up, so the experience deltas are comparable.
           We verify that the benched Tauros received experience from the Exp. Share.
           We verify that the lead Tauros received double the benched Tauros's experience,
           not double plus the share (the double dip).
       
    • testExpAllDoesNotDoubleDipParticipants

      public static CompletableFuture<TestResult> testExpAllDoesNotDoubleDipParticipants(BattleTestHelper helper)
      Same as testExpShareDoesNotDoubleDipParticipants(BattleTestHelper) but through the EXP All rather than a held Exp. Share, since both feed the same branch when experience is handed out.
           Turn 1
           The lead Tauros uses Body Slam. The Blissey faints.
           The Magikarp is switched in for the fainted Blissey.
           -
           We verify that neither Tauros levelled up, so the experience deltas are comparable.
           We verify that the benched Tauros received experience from the EXP All.
           We verify that the lead Tauros received double the benched Tauros's experience,
           not double plus the share (the double dip).
       
    • testExpShareAwardsExperience

      public static CompletableFuture<TestResult> testExpShareAwardsExperience(BattleTestHelper helper)