Skip to content

Commit

Permalink
Display total damage did not include zanverse damage when split
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyazasu committed Apr 17, 2018
1 parent fdf267c commit 0cc9f81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OverParse/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public string WriteLog()
// Logging the total time occured through out the encounter
string totalDamage = combatants.Sum(x => x.Damage).ToString("N0");
string timer = timespan.ToString(@"mm\:ss");
string log = DateTime.Now.ToString("F") + " | " + timer + " | Total Damage : " + totalDamage + " dmg" + Environment.NewLine + Environment.NewLine;
string log = DateTime.Now.ToString("F") + " | " + timer + " | Total Damage: " + totalDamage + " dmg" + Environment.NewLine + Environment.NewLine;

log += "[ Encounter Overview ]" + Environment.NewLine; // Title

Expand Down
7 changes: 4 additions & 3 deletions OverParse/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ public void UpdateForm(object sender, EventArgs e)
}

// get group damage totals
int totalReadDamage = workingList.Where(c => (c.IsAlly)).Sum(x => x.ReadDamage);
int totalDamage = workingList.Sum(x => x.Damage);
int totalReadDamage = workingList.Sum(x => x.ReadDamage);

// dps calcs!
foreach (Combatant c in workingList)
Expand Down Expand Up @@ -667,10 +668,10 @@ public void UpdateForm(object sender, EventArgs e)
string timer = timespan.ToString(@"h\:mm\:ss");
EncounterStatus.Content = $"{timer}";

float totalDPS = totalReadDamage / (float)elapsed;
float totalDPS = totalDamage / (float)elapsed;

if (totalDPS > 0)
EncounterStatus.Content += $" - Total : {totalReadDamage.ToString("N0")}" + $" - {totalDPS.ToString("N0")} DPS";
EncounterStatus.Content += $" - Total : {totalDamage.ToString("N0")}" + $" - {totalDPS.ToString("N0")} DPS";

if (!Properties.Settings.Default.SeparateZanverse)
EncounterStatus.Content += $" - Zanverse : {totalZanverse.ToString("N0")}";
Expand Down

1 comment on commit 0cc9f81

@mayonnaisefarmer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably the wrong place for it, but since there isn't an issues tab with this project, I figured I'd put it in the release commit, but ever since the 3.0+ updates I've been unable to get OverParse to stay open for more than a few seconds (I have the 4.7 .Net installed already as well)

The error log is the same every time, which I've attached as well.
ErrorLogs - 2018-05-18_22-48-16.txt

Please sign in to comment.