show threat rate in debug output

This commit is contained in:
2026-06-14 13:11:35 +02:00
parent 123c544423
commit 1ea1cc59fb
10 changed files with 217 additions and 11 deletions

View File

@@ -103,6 +103,16 @@ double WaveSystem::threatLevel() const
return m_threatLevel;
}
double WaveSystem::threatAccumulationRate() const
{
if (isInQuietWindow())
{
return 0.0;
}
const double x = static_cast<double>(m_bossWaveCounter);
return std::max(0.0, m_config.world.waves.threatRateFormula.evaluate(x));
}
int WaveSystem::generation() const
{
return m_generation;