public static float GetStatusBonus(StatusConditions conditions)
    {
        if (conditions == null)
        {
            return(1f);
        }
        else if (conditions.Id == StatusID.slp || conditions.Id == StatusID.frz)
        {
            return(2.5f);
        }
        else if (conditions.Id == StatusID.par || conditions.Id == StatusID.psn || conditions.Id == StatusID.brn)
        {
            return(1.5f);
        }



        return(1f);
    }
Exemple #2
0
 // Start is called before the first frame update
 public Hit(int damage = 0, int heal = 0, StatusConditions cond = StatusConditions.NONE) //add condition enum for giving conditions, In this implementation, you can only have 1 status at a time like Pokemon
 {
     this.damage = damage;
     this.heal   = heal;
     this.cond   = cond;
 }