Ejemplo n.º 1
0
    public float GetStat(DeltStat stat)
    {
        switch (stat)
        {
        case DeltStat.GPA:
            return(GPA);

        case DeltStat.Truth:
            return(Truth);

        case DeltStat.Courage:
            return(Courage);

        case DeltStat.Faith:
            return(Faith);

        case DeltStat.Power:
            return(Power);

        case DeltStat.ChillToPull:
            return(ChillToPull);

        default:
            throw new System.NotImplementedException();
        }
    }
Ejemplo n.º 2
0
    public static string ToStatString(this DeltStat stat)
    {
        switch (stat)
        {
        case DeltStat.GPA:
            return("GPA");

        case DeltStat.Truth:
            return("Truth");

        case DeltStat.Courage:
            return("Courage");

        case DeltStat.Faith:
            return("Faith");

        case DeltStat.Power:
            return("Power");

        case DeltStat.ChillToPull:
            return("Chill/Pull");

        default:
            throw new System.Exception("Error: UNSET DELT STAT: " + stat);
        }
    }
Ejemplo n.º 3
0
 public float GetStatAddition(bool isPlayer, DeltStat stat)
 {
     if (isPlayer)
     {
         return(PlayerState.StatAdditions[(int)stat]);
     }
     else
     {
         return(OpponentState.StatAdditions[(int)stat]);
     }
 }
Ejemplo n.º 4
0
 public void ChangeStatAddition(bool isPlayer, DeltStat stat, float value)
 {
     if (isPlayer)
     {
         PlayerState.StatAdditions[(int)stat] += value;
     }
     else
     {
         OpponentState.StatAdditions[(int)stat] += value;
     }
 }
Ejemplo n.º 5
0
        void PerformMoveBuff(buffTuple buff, DeltemonClass buffedDelt)
        {
            DeltStat       stat        = GetDeltStatFromBuffT(buff.BuffType);
            bool           isPlayer    = buffedDelt == State.PlayerState.DeltInBattle;
            float          valueChange = buff.BuffAmount * 0.02f * buffedDelt.GetStat(stat) + buff.BuffAmount;
            string         buffMessage = string.Format("{0}'s {1} stat went {2} {3}!", buffedDelt.nickname, stat, buff.BuffAmount > 5 ? "waaay" : "", buff.HasPositiveEffect ? "up" : "down");
            BattleAnimator animator    = BattleManager.Inst.Animator;

            State.ChangeStatAddition(isPlayer, stat, valueChange);

            if (buff.HasPositiveEffect)
            {
                valueChange *= -1;
                BattleManager.AddToBattleQueue(enumerator: animator.DeltAnimation("Debuff", isPlayer));
            }
            else
            {
                BattleManager.AddToBattleQueue(enumerator: animator.DeltAnimation("Buff", isPlayer));
            }
            BattleManager.AddToBattleQueue(message: buffMessage);
        }
Ejemplo n.º 6
0
 public float GetDeltBattleStat(DeltStat stat)
 {
     return(DeltInBattle.GetStat(stat) + StatAdditions[(int)stat]);
 }