public virtual string GenTooltip(float ttldpsRW, /*float ttldpsOH,*/ float ttldps) { // ==== MAIN HAND ==== float acts = RwActivates; float misses = GetXActs(AttackTableSelector.Missed, acts), missesPerc = (acts == 0f ? 0f : misses / acts); //float dodges = GetXActs(AttackTableSelector.Dodged, acts), dodgesPerc = (acts == 0f ? 0f : dodges / acts); //float parrys = GetXActs(AttackTableSelector.Parried, acts), parrysPerc = (acts == 0f ? 0f : parrys / acts); //float blocks = GetXActs(AttackTableSelector.Blocked, acts), blocksPerc = (acts == 0f ? 0f : blocks / acts); float crits = GetXActs(AttackTableSelector.Crit, acts), critsPerc = (acts == 0f ? 0f : crits / acts); //float glncs = GetXActs(AttackTableSelector.Glance, acts), glncsPerc = (acts == 0f ? 0f : glncs / acts); float hits = GetXActs(AttackTableSelector.Hit, acts), hitsPerc = (acts == 0f ? 0f : hits / acts); bool showmisss = misses > 0f; //bool showdodge = dodges > 0f; //bool showparry = parrys > 0f; //bool showblock = blocks > 0f; bool showcrits = crits > 0f; string tooltip = "*" + "White Damage (Ranged Weapon)" + Environment.NewLine + "Cast Time: Instant" + ", CD: " + (RwEffectiveSpeed != -1 ? RwEffectiveSpeed.ToString("0.00") : "None") + //", Mana Generated: " + (MHSwingMana != -1 ? MHSwingMana.ToString("0.00") : "None") + Environment.NewLine + Environment.NewLine + acts.ToString("000.00") + " Activates over Attack Table:" + (showmisss ? Environment.NewLine + "- " + misses.ToString("000.00") + " : " + missesPerc.ToString("00.00%") + " : Missed " : "") + //(showdodge ? Environment.NewLine + "- " + dodges.ToString("000.00") + " : " + dodgesPerc.ToString("00.00%") + " : Dodged " : "") + //(showparry ? Environment.NewLine + "- " + parrys.ToString("000.00") + " : " + parrysPerc.ToString("00.00%") + " : Parried " : "") + //(showblock ? Environment.NewLine + "- " + blocks.ToString("000.00") + " : " + blocksPerc.ToString("00.00%") + " : Blocked " : "") + (showcrits ? Environment.NewLine + "- " + crits.ToString("000.00") + " : " + critsPerc.ToString("00.00%") + " : Crit " : "") + //Environment.NewLine + "- " + glncs.ToString("000.00") + " : " + glncsPerc.ToString("00.00%") + " : Glanced " + Environment.NewLine + "- " + hits.ToString("000.00") + " : " + hitsPerc.ToString("00.00%") + " : Hit " + Environment.NewLine + //Environment.NewLine + "Damage per Blocked|Hit|Crit: x|x|x" + Environment.NewLine + "Targets Hit: " + (Targets != -1 ? Targets.ToString("0.00") : "None") + Environment.NewLine + "DPS: " + (ttldpsRW > 0 ? ttldpsRW.ToString("0.00") : "None") + Environment.NewLine + "Percentage of Total DPS: " + (ttldpsRW > 0 ? (ttldpsRW / ttldps).ToString("00.00%") : "None"); return(tooltip); }
public string GenTooltip(float totalDPS = 0) { float acts = RwActivates; float misses = GetXActs(AttackTableSelector.Missed, acts), missesPerc = (acts == 0f ? 0f : misses / acts); float crits = GetXActs(AttackTableSelector.Crit, acts), critsPerc = (acts == 0f ? 0f : crits / acts); float hits = GetXActs(AttackTableSelector.Hit, acts), hitsPerc = (acts == 0f ? 0f : hits / acts); bool showmisss = misses > 0f; bool showcrits = crits > 0f; string tooltip = string.Format("{0:0.0}*White Damage (Ranged Weapon)", RwDPS) + Environment.NewLine + "Shot Speed: " + (RwEffectiveSpeed != -1 ? RwEffectiveSpeed.ToString("0.00") : "None") + Environment.NewLine + Environment.NewLine + acts.ToString("000.00") + " Activates over Attack Table:" + (showmisss ? Environment.NewLine + "- " + misses.ToString("000.00") + " : " + missesPerc.ToString("00.00%") + " : Missed " : "") + (showcrits ? Environment.NewLine + "- " + crits.ToString("000.00") + " : " + critsPerc.ToString("00.00%") + " : Crit " : "") + Environment.NewLine + "- " + hits.ToString("000.00") + " : " + hitsPerc.ToString("00.00%") + " : Hit " + Environment.NewLine + Environment.NewLine + string.Format("DPS: {0}", RwDPS) + Environment.NewLine + string.Format("% of Total: {0:0.0}%", (totalDPS > 0 ? (this.RwDPS / totalDPS) * 100 : 100)); return(tooltip); }