private Dictionary <String, float> GetSpellCooldownsAsPercent() { Dictionary <String, float> dic = new Dictionary <string, float>(); foreach (KeyValuePair <string, Spell> spell in m_getSpellTree().GetSpells()) { dic.Add(spell.Value._id, MathsUtils.PercentValueFromAnotherValue((float)spell.Value.m_turnCooling, (float)spell.Value.cooldown) / 100f); } return(dic); }