Class PoisonBadly


public class PoisonBadly extends Poison
Deals an increasing amount of damage to the Pokémon every turn.
  • Constructor Details

    • PoisonBadly

      public PoisonBadly()
      Initializes the status.
  • Method Details

    • applyEffect

      public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from class: EffectBase
      Causes various effects during the move.
      Overrides:
      applyEffect in class Poison
      Parameters:
      user - The move's user.
      target - The move's target.
    • poisonBadly

      public static boolean poisonBadly(PixelmonWrapper user, PixelmonWrapper target, Attack attack, boolean showMessage)
      Badly poisons the target if possible.
      Parameters:
      user - The Pokémon causing the poison.
      target - The Pokémon to poison.
      attack - The attack that caused the poison.
      showMessage - Whether to show a message depending on what occurs.
      Returns:
      Whether the target was poisoned successfully.
    • applyRepeatedEffect

      public void applyRepeatedEffect(PixelmonWrapper pw)
      Description copied from class: StatusBase
      Triggered at the end of every turn.
      Overrides:
      applyRepeatedEffect in class Poison
      Parameters:
      pw - The statused Pokémon.
    • getPoisonDamage

      protected float getPoisonDamage(PixelmonWrapper pw)
      Description copied from class: Poison
      Gets the amount of damage poison will do in the turn.
      Overrides:
      getPoisonDamage in class Poison
      Parameters:
      pw - The poisoned Pokémon.
      Returns:
      The amount of damage poison will do in the turn.
    • applySwitchOutEffect

      public void applySwitchOutEffect(PixelmonWrapper outgoing, PixelmonWrapper incoming)
      Description copied from class: StatusBase
      Triggers when the statused Pokémon switches out.
      Overrides:
      applySwitchOutEffect in class StatusBase
      Parameters:
      outgoing - The statused Pokémon.
      incoming - The incoming Pokémon.
    • applyEndOfBattleEffect

      public void applyEndOfBattleEffect(PixelmonWrapper pokemon)
      Description copied from class: StatusBase
      Triggers when the battle ends.
      Overrides:
      applyEndOfBattleEffect in class StatusBase
      Parameters:
      pokemon - The statused Pokémon.
    • restoreFromNBT

      public StatusPersist restoreFromNBT(net.minecraft.nbt.CompoundTag nbt)
      Description copied from class: StatusPersist
      Loads the status from NBT.
      Overrides:
      restoreFromNBT in class Poison
      Parameters:
      nbt - The NBT tag to read from.
      Returns:
      A new instance of the status.
    • copy

      public StatusBase copy()
      Description copied from class: StatusBase
      If necessary, makes a deep copy of the status.
      Overrides:
      copy in class StatusBase
      Returns:
      A deep copy of the status.