Exemple #1
0
        public void pbPinchChange(int idxPokemon)
        {
            Pokemon thispkmn = @battlers[idxPokemon];

            if (!thispkmn.effects.Pinch && thispkmn.Status != Status.SLEEP &&
                thispkmn.HP <= (int)Math.Floor(thispkmn.TotalHP / 2f))
            {
                Natures nature = thispkmn.pokemon.Nature;
                thispkmn.effects.Pinch = true;
                if (nature == Natures.QUIET ||
                    nature == Natures.BASHFUL ||
                    nature == Natures.NAIVE ||
                    nature == Natures.QUIRKY ||
                    nature == Natures.HARDY ||
                    nature == Natures.DOCILE ||
                    nature == Natures.SERIOUS)
                {
                    pbDisplay(Game._INTL("{1} is eager for more!", thispkmn.ToString()));
                }
                if (nature == Natures.CAREFUL ||
                    nature == Natures.RASH ||
                    nature == Natures.LAX ||
                    nature == Natures.SASSY ||
                    nature == Natures.MILD ||
                    nature == Natures.TIMID)
                {
                    pbDisplay(Game._INTL("{1} began growling deeply!", thispkmn.ToString()));
                }
                if (nature == Natures.GENTLE ||
                    nature == Natures.ADAMANT ||
                    nature == Natures.HASTY ||
                    nature == Natures.LONELY ||
                    nature == Natures.RELAXED ||
                    nature == Natures.NAUGHTY)
                {
                    pbDisplay(Game._INTL("A glint appears in {1}'s eyes!", thispkmn.ToString(true)));
                }
                if (nature == Natures.JOLLY ||
                    nature == Natures.BOLD ||
                    nature == Natures.BRAVE ||
                    nature == Natures.CALM ||
                    nature == Natures.IMPISH ||
                    nature == Natures.MODEST)
                {
                    pbDisplay(Game._INTL("{1} is getting into position!", thispkmn.ToString()));
                }
            }
        }
Exemple #2
0
 public override void pbEffectAfterHit(Pokemon attacker, Pokemon opponent, Effects.Move turneffects)
 {
     if (!attacker.isFainted() && turneffects.TotalDamage > 0)
     {
         attacker.ReduceHP((int)Math.Round(attacker.HP / 2.0));
         this.Battle.pbDisplay(Game._INTL("{1} is damaged by recoil!", attacker.ToString()));
     }
 }
Exemple #3
0
 public override bool pbCanSwitchLax(int idxPokemon, int pkmnidxTo, bool showMessages)
 {
     if (showMessages)
     {
         Pokemon thispkmn = @battlers[idxPokemon];
         pbDisplayPaused(Game._INTL("{1} can't be switched out!", thispkmn.ToString()));
     }
     return(false);
 }