[Game] Implement total power tally (#7057)

* [Game] Implement total power tally

* PR comments
This commit is contained in:
RickyRister 2026-08-02 19:20:47 -07:00 committed by GitHub
parent a4557454a7
commit ca1c063687
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 67 additions and 1 deletions

View file

@ -1,5 +1,6 @@
#include "tally.h"
#include "stats_tally.h"
#include "subtype_tally.h"
TallyType Tally::intToType(int value)
@ -18,6 +19,8 @@ QList<TallyRow> Tally::compute(const QList<CardItem *> &cards, const TallyType t
return {};
case TallyType::Subtypes:
return SubtypeTally::countSubtypes(cards);
case TallyType::TotalPower:
return StatsTally::computeTotalPower(cards);
}
return {};
}