public int GetAdditive(AttributeValue tybe)
 {
     foreach (Additive tem in Additives.GetArray())
     {
         if (tem.Key == "U-" + AttributeName.GetAttributeKey(tybe))
         {
             return(int.Parse(tem.Value));
         }
     }
     return(0);
 }
            public int GetAdditiveTotal(AttributeValue Tybe)
            {
                int total = 0;

                foreach (Equipment tem_equip in Equipments)
                {
                    if (tem_equip != null)
                    {
                        foreach (Additive tem_add in tem_equip.Additives.GetArray())
                        {
                            if (tem_add.Key == "U-" + AttributeName.GetAttributeKey(Tybe))
                            {
                                total += int.Parse(tem_add.Value);
                            }
                        }
                    }
                }
                return(total);
            }