Class ToxicSpikes
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.EntryHazard
com.pixelmonmod.pixelmon.battles.status.ToxicSpikes
Poisons Pokémon upon switching in.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.EntryHazard
ENTRY_HAZARDS, initialPlacer, numLayers
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
Triggers when the statused Pokémon switches in.protected void
Affects a Pokémon when it switches in.protected String
Gets the lang key for the message displayed when a hazard is triggered.int
Gets the weight per Pokémon that an AI will assign to the move.protected String
Gets the lang key for the message displayed when a hazard is first laid.protected String
Gets the lang key for the message displayed when a hazard layer is added to an existing one.Gets a new instance of the entry hazard.boolean
Checks if the Pokémon is unharmed by the entry hazard.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.EntryHazard
applyEffect, applyHazards, copy, getDamage, getInitialPlacer, getNumLayers, isAirborne, isTeamStatus, weightEffect
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, 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
-
ToxicSpikes
public ToxicSpikes()Initializes Toxic Spikes with one layer.
-
-
Method Details
-
isUnharmed
Description copied from class:EntryHazard
Checks if the Pokémon is unharmed by the entry hazard.- Overrides:
isUnharmed
in classEntryHazard
- Parameters:
pw
- The Pokémon to check.- Returns:
- Whether the Pokémon is unharmed by the entry hazard.
-
applyEffectOnSwitch
Description copied from class:StatusBase
Triggers when the statused Pokémon switches in.- Overrides:
applyEffectOnSwitch
in classEntryHazard
- Parameters:
pw
- The statused Pokémon.
-
doEffect
Description copied from class:EntryHazard
Affects a Pokémon when it switches in.- Overrides:
doEffect
in classEntryHazard
- Parameters:
pw
- The Pokémon to affect.
-
getNewInstance
Description copied from class:EntryHazard
Gets a new instance of the entry hazard.- Specified by:
getNewInstance
in classEntryHazard
- Returns:
- A new instance of the entry hazard.
-
getFirstLayerMessage
Description copied from class:EntryHazard
Gets the lang key for the message displayed when a hazard is first laid.- Specified by:
getFirstLayerMessage
in classEntryHazard
- Returns:
- The lang key for the message displayed when a hazard is first laid.
-
getMultiLayerMessage
Description copied from class:EntryHazard
Gets the lang key for the message displayed when a hazard layer is added to an existing one.- Overrides:
getMultiLayerMessage
in classEntryHazard
- Returns:
- The lang key for the message displayed when a hazard layer is added to an existing one.
-
getAffectedMessage
Description copied from class:EntryHazard
Gets the lang key for the message displayed when a hazard is triggered.- Specified by:
getAffectedMessage
in classEntryHazard
- Returns:
- The lang key for the message displayed when a hazard is triggered.
-
getAIWeight
public int getAIWeight()Description copied from class:EntryHazard
Gets the weight per Pokémon that an AI will assign to the move.- Specified by:
getAIWeight
in classEntryHazard
- Returns:
- The weight per Pokémon that an AI will assign to the move.
-