From 9ca6e43114c64e1a1549906b4fbbf92cdd12df17 Mon Sep 17 00:00:00 2001 From: Deji Date: Wed, 4 Oct 2023 02:11:04 +0100 Subject: [PATCH] Fix for proxy deaths affecting ratings --- src/Stats.h | 1 + src/Stealthometer.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Stats.h b/src/Stats.h index 3ec4155..6dd947c 100644 --- a/src/Stats.h +++ b/src/Stats.h @@ -114,6 +114,7 @@ struct KillStats std::set targets; std::set nonTargets; + std::set proxyDeaths; std::unordered_map noticedKillInfos; int total = 0; int noticed = 0; diff --git a/src/Stealthometer.cpp b/src/Stealthometer.cpp index cf8c329..3e657a9 100644 --- a/src/Stealthometer.cpp +++ b/src/Stealthometer.cpp @@ -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) {