Exemplo n.º 1
0
        public Dictionary <string, float> GetWeakness()
        {
            Dictionary <string, float> type1Weakness = Type1.GetWeaknesses();
            Dictionary <string, float> type2Weakness = Type2.GetWeaknesses();
            Dictionary <string, float> result        = new Dictionary <string, float>();

            foreach (KeyValuePair <string, float> modifier in type1Weakness)
            {
                result.Add(modifier.Key, type1Weakness[modifier.Key] * type2Weakness[modifier.Key]);
            }
            return(result);
        }