private DomineerCost LoadDomineerCostFromXml(SecurityElement element) { DomineerCost cost = new DomineerCost { DomineerLevel = StrParser.ParseDecInt(element.Attribute("DomineerLevel"), 0), SameCardDeductItemCount = StrParser.ParseDecInt(element.Attribute("SameCardDeductItemCount"), 0), ItemCostItemId = StrParser.ParseHexInt(element.Attribute("ItemCostItemId"), 0), ItemCostItemCount = StrParser.ParseDecInt(element.Attribute("ItemCostItemCount"), 0) }; if (element.Children != null) { foreach (SecurityElement element2 in element.Children) { if (element2.Tag == "OtherCost") { cost.OtherCosts.Add(Cost.LoadFromXml(element2)); } } } return(cost); }
public int GetCostAvatarCount(int qualityLevel, int domineerLevel) { DomineerCost domineerCostByLevel = this.GetDomineerCostSetByQualityLevel(qualityLevel).GetDomineerCostByLevel(domineerLevel); return(domineerCostByLevel.ItemCostItemCount / domineerCostByLevel.SameCardDeductItemCount); }