Skip to content

Commit

Permalink
Fix for proxy deaths affecting ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
Deji69 committed Oct 4, 2023
1 parent bd2e527 commit 9ca6e43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ struct KillStats

std::set<std::string, InsensitiveCompareLexicographic> targets;
std::set<std::string, InsensitiveCompareLexicographic> nonTargets;
std::set<std::string, InsensitiveCompareLexicographic> proxyDeaths;
std::unordered_map<std::string, NoticedKillInfo, StringHashLowercase, InsensitiveCompare> noticedKillInfos;
int total = 0;
int noticed = 0;
Expand Down
2 changes: 2 additions & 0 deletions src/Stealthometer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,8 @@ auto Stealthometer::SetupEvents() -> void {
++stats.bodies.targetBodyWitnessesKilled;
}
}
else if (ev.Value.KillContext == EDeathContext::eDC_NOT_HERO)
stats.kills.proxyDeaths.emplace(repoId);
else {
auto res = stats.kills.nonTargets.emplace(repoId);
if (res.second) {
Expand Down

0 comments on commit 9ca6e43

Please sign in to comment.