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, typeFields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffect(PixelmonWrapper user, PixelmonWrapper target) Causes various effects during the move.voidapplyEndOfBattleEffect(PixelmonWrapper pokemon) Triggers when the battle ends.voidTriggered at the end of every turn.voidapplySwitchOutEffect(PixelmonWrapper outgoing, PixelmonWrapper incoming) Triggers when the statused Pokémon switches out.copy()If necessary, makes a deep copy of the status.protected floatGets the amount of damage poison will do in the turn.static booleanpoisonBadly(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, weightEffectMethods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusPersist
addStatus, alreadyHasStatus, isStatus, readStatusFromNBT, writeToNBTMethods 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, stopsSwitchingMethods 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, preventsRedirection, setChance
-
Constructor Details
-
PoisonBadly
public PoisonBadly()Initializes the status.
-
-
Method Details
-
applyEffect
Description copied from class:EffectBaseCauses various effects during the move.- Overrides:
applyEffectin 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:StatusBaseTriggered at the end of every turn.- Overrides:
applyRepeatedEffectin classPoison- Parameters:
pw- The statused Pokémon.
-
getPoisonDamage
Description copied from class:PoisonGets the amount of damage poison will do in the turn.- Overrides:
getPoisonDamagein classPoison- Parameters:
pw- The poisoned Pokémon.- Returns:
- The amount of damage poison will do in the turn.
-
applySwitchOutEffect
Description copied from class:StatusBaseTriggers when the statused Pokémon switches out.- Overrides:
applySwitchOutEffectin classStatusBase- Parameters:
outgoing- The statused Pokémon.incoming- The incoming Pokémon.
-
applyEndOfBattleEffect
Description copied from class:StatusBaseTriggers when the battle ends.- Overrides:
applyEndOfBattleEffectin classStatusBase- Parameters:
pokemon- The statused Pokémon.
-
restoreFromNBT
Description copied from class:StatusPersistLoads the status from NBT.- Overrides:
restoreFromNBTin classPoison- Parameters:
nbt- The NBT tag to read from.- Returns:
- A new instance of the status.
-
copy
Description copied from class:StatusBaseIf necessary, makes a deep copy of the status.- Overrides:
copyin classStatusBase- Returns:
- A deep copy of the status.
-