diff --git a/SPID/include/LinkedDistribution.h b/SPID/include/LinkedDistribution.h index 5fb6bf1..482bf15 100644 --- a/SPID/include/LinkedDistribution.h +++ b/SPID/include/LinkedDistribution.h @@ -92,6 +92,13 @@ namespace LinkedDistribution type(type) {} + bool IsEmpty(DistributionType type) const { + if (const auto it = forms.find(type); it != forms.end()) { + return it->second.empty(); + } + return true; + } + RECORD::TYPE GetType() const { return type; } const FormsMap& GetForms() const { return forms; } diff --git a/SPID/src/DistributeManager.cpp b/SPID/src/DistributeManager.cpp index be99113..699dd1d 100644 --- a/SPID/src/DistributeManager.cpp +++ b/SPID/src/DistributeManager.cpp @@ -128,7 +128,7 @@ namespace Distribute { using namespace Forms; - logger::info("{:*^50}", "RESULTS"); + logger::info("{:*^50}", "MAIN MENU DISTRIBUTION"); ForEachDistributable([&](Distributables
& a_distributable) { if (a_distributable && a_distributable.GetType() != RECORD::kDeathItem) { diff --git a/SPID/src/LinkedDistribution.cpp b/SPID/src/LinkedDistribution.cpp index 1cf5011..8e2b284 100644 --- a/SPID/src/LinkedDistribution.cpp +++ b/SPID/src/LinkedDistribution.cpp @@ -298,7 +298,17 @@ namespace LinkedDistribution bool Manager::IsEmpty(DistributionType type) const { - return false; + return spells.IsEmpty(type) && + perks.IsEmpty(type) && + items.IsEmpty(type) && + shouts.IsEmpty(type) && + levSpells.IsEmpty(type) && + packages.IsEmpty(type) && + outfits.IsEmpty(type) && + keywords.IsEmpty(type) && + factions.IsEmpty(type) && + sleepOutfits.IsEmpty(type) && + skins.IsEmpty(type); } #pragma endregion }