private static string getLootRankWeightFilter(Character character) { StringBuilder wtf = new StringBuilder(); ComparisonCalculationBase[] statValues = CalculationsBase.GetRelativeStatValues(character); foreach (ComparisonCalculationBase ccb in statValues) { string stat = getLootrankStatID(ccb.Name); if (!stat.Equals(string.Empty)) { wtf.Append(stat + "=" + ccb.OverallPoints.ToString("F2", System.Globalization.CultureInfo.InvariantCulture) + "&"); } } if (character.CurrentModel == "Enhance") { wtf.Append("s1=2.4&s3=2.4&dps=6&odps=3&"); } if (wtf.Length == 0) { return(string.Empty); } else { return(wtf.ToString()); } }
public void LoadRelativeStatValues() { comparisonGraph1.RoundValues = true; comparisonGraph1.CustomRendered = false; comparisonGraph1.ItemCalculations = CalculationsBase.GetRelativeStatValues(Character); comparisonGraph1.EquipSlot = CharacterSlot.None; _characterSlot = CharacterSlot.None; }
private static string getPawnWeightFilter(Character character) { StringBuilder wtf = new StringBuilder(); ComparisonCalculationBase[] statValues = CalculationsBase.GetRelativeStatValues(character); foreach (ComparisonCalculationBase ccb in statValues) { string stat = getPawnStatID(ccb.Name); if (!stat.Equals(string.Empty)) { wtf.Append(stat + "=" + ccb.OverallPoints.ToString("F2", System.Globalization.CultureInfo.InvariantCulture) + ", "); } } if (wtf.Length == 0) { return(string.Empty); } else { return(wtf.ToString().Substring(0, wtf.Length - 2)); // remove trailing comma } }