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; } } }
float FindDamageBonus(DmgBonus.Type type) { for (int i = 0; i < dmgBonuses.Length; i++) { if (dmgBonuses[i].type == type) { return(dmgBonuses[i].damageBonus); } } return(1f); }