public class Recoil extends AttackModifierBase
Modifier and Type | Field and Description |
---|---|
int |
percentRecoil |
modifiers
Constructor and Description |
---|
Recoil(Value... values)
Initializes the effect.
|
Modifier and Type | Method and Description |
---|---|
void |
applyRecoil(PixelmonWrapper user,
float damage)
Deals recoil damage to the user.
|
void |
weightEffect(PixelmonWrapper pw,
MoveChoice userChoice,
java.util.List<MoveChoice> userChoices,
java.util.List<MoveChoice> bestUserChoices,
java.util.List<MoveChoice> opponentChoices,
java.util.List<MoveChoice> bestOpponentChoices)
Determines a weight for the move that has this effect.
|
applyEffect, applyEffectDuring, cantMiss
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectiveness
public Recoil(Value... values)
values
- The percentage of recoil to deal as damage.public void applyRecoil(PixelmonWrapper user, float damage)
user
- The Pokémon to deal recoil damage to.damage
- The damage caused by the user's move.public void weightEffect(PixelmonWrapper pw, MoveChoice userChoice, java.util.List<MoveChoice> userChoices, java.util.List<MoveChoice> bestUserChoices, java.util.List<MoveChoice> opponentChoices, java.util.List<MoveChoice> bestOpponentChoices)
EffectBase
weightEffect
in class EffectBase
pw
- The Pokémon using the move.userChoice
- The move with this effect.userChoices
- All choices the Pokémon has for the turn.bestUserChoices
- The best offensive choices the Pokémon has for the turn.opponentChoices
- All choices the opponent has for the turn.bestOpponentChoices
- The best choices the opponent has for the turn.