Esempio n. 1
0
 public void UpdateDamageBonus(DmgBonus.Type type, int count)
 {
     for (int i = 0; i < dmgBonuses.Length; i++)
     {
         if (dmgBonuses[i].type == type)
         {
             dmgBonuses[i].statCount = count;
         }
     }
 }
Esempio n. 2
0
    float FindDamageBonus(DmgBonus.Type type)
    {
        for (int i = 0; i < dmgBonuses.Length; i++)
        {
            if (dmgBonuses[i].type == type)
            {
                return(dmgBonuses[i].damageBonus);
            }
        }

        return(1f);
    }