示例#1
0
        private void OnStatStageShifted(object sender, StatStageShiftedEventArgs e)
        {
            if (e.Action.Delta == 0)
            {
                return;
            }

            int currentStage = e.Action.Pokemon.Stats.Stage(e.Action.Stat);

            if (currentStage == 6 && e.Action.Delta > 0)
            {
                Trace.WriteLine($"{e.Action.Pokemon.Species}'s {e.Action.Stat.ToString()} won't go any higher!");
            }
            if (currentStage == -6 && e.Action.Delta < 0)
            {
                Trace.WriteLine($"{e.Action.Pokemon.Species}'s {e.Action.Stat.ToString()} won't go any lower!");
            }

            string word1 = "";

            if (e.Action.Delta == 2)
            {
                word1 = "greatly ";
            }
            if (e.Action.Delta >= 3)
            {
                word1 = "sharply ";
            }
            if (e.Action.Delta == -2)
            {
                word1 = "harshly ";
            }
            if (e.Action.Delta <= -3)
            {
                word1 = "severely ";
            }

            string word2 = e.Action.Delta > 0 ? "rose" : "fell";

            Trace.WriteLine($"{e.Action.Pokemon.Species}'s {e.Action.Stat.ToString()} {word1}{word2}!");
        }
示例#2
0
 public virtual void OnStatStageShifted(object sender, StatStageShiftedEventArgs args)
 {
 }