Refactor tax counters into cast counts with separate ID space and user activated create/delete

This commit is contained in:
DawnFire42 2026-08-10 22:28:00 -04:00
parent 4354191918
commit f5e49a571e
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
50 changed files with 900 additions and 828 deletions

View file

@ -102,13 +102,13 @@ TEST(ServerCounter, IncrementClampsToCustomBounds)
EXPECT_EQ(c.getCount(), 0);
}
TEST(ServerCounter, CustomBoundsForCommanderTax)
TEST(ServerCounter, CustomBoundsForCastCount)
{
Server_Counter taxCounter(1, "tax", color(), 20, 0, 0, MAX_COUNTER_VALUE);
EXPECT_TRUE(taxCounter.setCount(1000));
EXPECT_EQ(taxCounter.getCount(), MAX_COUNTER_VALUE);
EXPECT_TRUE(taxCounter.setCount(-5));
EXPECT_EQ(taxCounter.getCount(), 0);
Server_Counter castCount(1, "cast_count", color(), 20, 0, 0, MAX_COUNTER_VALUE);
EXPECT_TRUE(castCount.setCount(1000));
EXPECT_EQ(castCount.getCount(), MAX_COUNTER_VALUE);
EXPECT_TRUE(castCount.setCount(-5));
EXPECT_EQ(castCount.getCount(), 0);
}
TEST(ServerCounter, SetActiveReportsChangeOnce)