public virtual void GetHtmlString(Mobile viewer, StringBuilder html) { html.Append("".WrapUOHtmlColor(SuperGump.DefaultHtmlColor, false)); if (Deleted) { html.Append("<B>This profile has been deleted.</B>"); return; } html.AppendLine("<B>PvP Profile for {0}</B>", Owner.RawName); html.AppendLine(); html.Append("".WrapUOHtmlColor(Color.YellowGreen, false)); html.AppendLine("<B>Statistics</B>"); html.AppendLine(); int oRank = GetRank(), sRank = GetRank(AutoPvP.CurrentSeason); html.AppendLine("* Season Rank: {0}", sRank > 0 ? sRank.ToString("#,0") : "Unranked"); html.AppendLine("* Overall Rank: {0}", oRank > 0 ? oRank.ToString("#,0") : "Unranked"); html.AppendLine("* Overall Points: {0}", _Points.ToString("#,0")); html.AppendLine(); Statistics.GetHtmlString(viewer, html); html.Append("".WrapUOHtmlColor(Color.Cyan, false)); html.AppendLine("<B>Statisctics For All Seasons:</B>"); html.AppendLine(); html.AppendLine("<B>Main Statistic Totals</B>"); html.AppendLine(); html.AppendLine("* Battles Attended: {0}", TotalBattles.ToString("#,0")); html.AppendLine("* Battles Won: {0}", TotalWins.ToString("#,0")); html.AppendLine("* Battles Lost: {0}", TotalLosses.ToString("#,0")); html.AppendLine("* Points Gained: {0}", TotalPointsGained.ToString("#,0")); html.AppendLine("* Points Lost: {0}", TotalPointsLost.ToString("#,0")); html.AppendLine("* Kills: {0}", TotalKills.ToString("#,0")); html.AppendLine("* Deaths: {0}", TotalDeaths.ToString("#,0")); html.AppendLine("* Resurrections: {0}", TotalResurrections.ToString("#,0")); html.AppendLine("* Damage Taken: {0}", TotalDamageTaken.ToString("#,0")); html.AppendLine("* Damage Done: {0}", TotalDamageDone.ToString("#,0")); html.AppendLine("* Healing Taken: {0}", TotalHealingTaken.ToString("#,0")); html.AppendLine("* Healing Done: {0}", TotalHealingDone.ToString("#,0")); html.AppendLine(); html.Append("".WrapUOHtmlColor(Color.GreenYellow, false)); html.AppendLine("<B>Misc Statistic Totals</B>"); html.AppendLine(); foreach (var kvp in GetMiscStatisticTotals()) { html.AppendLine("* {0}: {1}", kvp.Key, kvp.Value.ToString("#,0")); } html.AppendLine(); html.Append("".WrapUOHtmlColor(SuperGump.DefaultHtmlColor, false)); }
public void getHealthStats() { Debug.Log("Total healing: " + TotalHealing.ToString()); Debug.Log("Total damage: " + TotalDamageTaken.ToString()); Debug.Log("overhealing: " + OverHealing.ToString()); }