Skip to content

Commit

Permalink
Merge pull request #69 from cordbleibaum/maintenance
Browse files Browse the repository at this point in the history
Maintenance
  • Loading branch information
EliphasNUIT authored Jul 1, 2018
2 parents f8dea1f + 033d0ae commit 9924444
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
16 changes: 11 additions & 5 deletions LuckParser/Controllers/StatisticsCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -687,18 +687,24 @@ private void setPresentBoons()
}
}
List<CombatItem> c_list = log.getCombatData().getCombatList();

foreach (Player p in log.getPlayerList())
{
statistics.present_personnal[p.getInstid()] = new List<Boon>();
if (settings.PlayerBoonsAllProf)
{//All class specefic boons
foreach (Boon boon in Boon.getRemainingBuffsList())
List<Boon> notYetFoundBoons = Boon.getRemainingBuffsList();
c_list.ForEach(item =>
{
if (c_list.Exists(x => x.getSkillID() == boon.getID() && x.getDstInstid() == p.getInstid()))
{
statistics.present_personnal[p.getInstid()].Add(boon);
if (item.getDstInstid() == p.getInstid()) {
Boon foundBoon = notYetFoundBoons.Find(boon => boon.getID() == item.getSkillID());
if (foundBoon != null)
{
notYetFoundBoons.Remove(foundBoon);
statistics.present_personnal[p.getInstid()].Add(foundBoon);
}
}
}
});
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion LuckParser/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ static class Program
private static extern IntPtr GetStdHandle(StandardHandle nStdHandle);
[DllImport("kernel32.dll")]
private static extern FileType GetFileType(IntPtr handle);
[DllImport("user32.dll")]
private static extern bool SetProcessDPIAware();

private const int ATTACH_PARENT_PROCESS = -1;

Expand Down Expand Up @@ -86,7 +88,8 @@ static int Main(string[] args)
new ConsoleProgram(parserArgs);
return 0;
}


SetProcessDPIAware();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
Expand Down

0 comments on commit 9924444

Please sign in to comment.