Class PoisonBadly
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.StatusPersist
com.pixelmonmod.pixelmon.battles.status.Poison
com.pixelmonmod.pixelmon.battles.status.PoisonBadly
Deals an increasing amount of damage to the Pokémon every turn.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
battleTurnGained, turnGained, type
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyEffect
(PixelmonWrapper user, PixelmonWrapper target) Causes various effects during the move.void
applyEndOfBattleEffect
(PixelmonWrapper pokemon) Triggers when the battle ends.void
Triggered at the end of every turn.void
applySwitchOutEffect
(PixelmonWrapper outgoing, PixelmonWrapper incoming) Triggers when the statused Pokémon switches out.copy()
If necessary, makes a deep copy of the status.protected float
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.restoreFromNBT
(net.minecraft.nbt.CompoundTag nbt) Loads the status from NBT.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.Poison
canPoison, getCureMessage, getCureMessageItem, isImmune, poison, weightEffect
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusPersist
addStatus, alreadyHasStatus, isStatus, readStatusFromNBT, writeToNBT
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, canAttackThisTurn, cantMiss, getNewInstance, ignoreStatus, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitching
Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, canHitMultipleTargets, changeChance, checkChance, dealtDamage, dealtDamagePerHit, doesPersist, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance
-
Constructor Details
-
PoisonBadly
public PoisonBadly()Initializes the status.
-
-
Method Details
-
applyEffect
Description copied from class:EffectBase
Causes various effects during the move.- Overrides:
applyEffect
in classPoison
- 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
Description copied from class:StatusBase
Triggered at the end of every turn.- Overrides:
applyRepeatedEffect
in classPoison
- Parameters:
pw
- The statused Pokémon.
-
getPoisonDamage
Description copied from class:Poison
Gets the amount of damage poison will do in the turn.- Overrides:
getPoisonDamage
in classPoison
- Parameters:
pw
- The poisoned Pokémon.- Returns:
- The amount of damage poison will do in the turn.
-
applySwitchOutEffect
Description copied from class:StatusBase
Triggers when the statused Pokémon switches out.- Overrides:
applySwitchOutEffect
in classStatusBase
- Parameters:
outgoing
- The statused Pokémon.incoming
- The incoming Pokémon.
-
applyEndOfBattleEffect
Description copied from class:StatusBase
Triggers when the battle ends.- Overrides:
applyEndOfBattleEffect
in classStatusBase
- Parameters:
pokemon
- The statused Pokémon.
-
restoreFromNBT
Description copied from class:StatusPersist
Loads the status from NBT.- Overrides:
restoreFromNBT
in classPoison
- Parameters:
nbt
- The NBT tag to read from.- Returns:
- A new instance of the status.
-
copy
Description copied from class:StatusBase
If necessary, makes a deep copy of the status.- Overrides:
copy
in classStatusBase
- Returns:
- A deep copy of the status.
-