public class PoisonBadly extends Poison
type
modifiers
Constructor and Description |
---|
PoisonBadly()
Initializes the status.
|
Modifier and Type | Method and Description |
---|---|
void |
applyEffect(PixelmonWrapper user,
PixelmonWrapper target)
Causes various effects during the move.
|
void |
applyEndOfBattleEffect(PixelmonWrapper pokemon)
Triggers when the battle ends.
|
void |
applyRepeatedEffect(PixelmonWrapper pw)
Triggered at the end of every turn.
|
void |
applySwitchOutEffect(PixelmonWrapper outgoing,
PixelmonWrapper incoming)
Triggers when the statused Pokémon switches out.
|
StatusBase |
copy()
If necessary, makes a deep copy of the status.
|
protected float |
getPoisonDamage(PixelmonWrapper pw)
Gets the amount of damage poison will do in the turn.
|
static boolean |
poisonBadly(PixelmonWrapper user,
PixelmonWrapper target,
Attack attack,
boolean showMessage)
Badly poisons the target if possible.
|
StatusPersist |
restoreFromNBT(net.minecraft.nbt.CompoundNBT nbt)
Loads the status from NBT.
|
canPoison, getCureMessage, getCureMessageItem, isImmune, poison, weightEffect
addStatus, alreadyHasStatus, isStatus, readStatusFromNBT, writeToNBT
allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, canAttackThisTurn, cantMiss, getEffectiveTypes, getNewInstance, ignoreStatus, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, onEndOfTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitching
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectiveness
public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBase
applyEffect
in class Poison
user
- The move's user.target
- The move's target.public static boolean poisonBadly(PixelmonWrapper user, PixelmonWrapper target, Attack attack, boolean showMessage)
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.public void applyRepeatedEffect(PixelmonWrapper pw)
StatusBase
applyRepeatedEffect
in class Poison
pw
- The statused Pokémon.protected float getPoisonDamage(PixelmonWrapper pw)
Poison
getPoisonDamage
in class Poison
pw
- The poisoned Pokémon.public void applySwitchOutEffect(PixelmonWrapper outgoing, PixelmonWrapper incoming)
StatusBase
applySwitchOutEffect
in class StatusBase
outgoing
- The statused Pokémon.incoming
- The incoming Pokémon.public void applyEndOfBattleEffect(PixelmonWrapper pokemon)
StatusBase
applyEndOfBattleEffect
in class StatusBase
pokemon
- The statused Pokémon.public StatusPersist restoreFromNBT(net.minecraft.nbt.CompoundNBT nbt)
StatusPersist
restoreFromNBT
in class Poison
nbt
- The NBT tag to read from.public StatusBase copy()
StatusBase
copy
in class StatusBase