Skip to content

Commit

Permalink
maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
adya authored and github-actions[bot] committed Mar 26, 2024
1 parent 30d8fa7 commit 719ef95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions SPID/src/Distribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,11 @@ namespace Distribute
Forms::DistributionSet::empty<RE::BGSOutfit>(),
Forms::DistributionSet::empty<RE::TESObjectARMO>()
};

detail::distribute(npcData, input, entries, &distributedForms);
// TODO: We can now log per-NPC distributed forms.

if (!distributedForms.empty()) {

LinkedDistribution::Manager::GetSingleton()->ForEachLinkedDeathDistributionSet(distributedForms, [&](Forms::DistributionSet& set) {
detail::distribute(npcData, input, set, nullptr); // TODO: Accumulate forms here? to log what was distributed.
});
Expand Down
2 changes: 1 addition & 1 deletion SPID/src/DistributeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ namespace Distribute::Event
const auto actor = a_event->actorDying->As<RE::Actor>();
const auto npc = actor ? actor->GetActorBase() : nullptr;
if (actor && npc) {
auto npcData = NPCData(actor, npc);
auto npcData = NPCData(actor, npc);
const auto input = PCLevelMult::Input{ actor, npc, false };

DistributeDeathItems(npcData, input);
Expand Down
2 changes: 1 addition & 1 deletion SPID/src/LinkedDistribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ namespace LinkedDistribution
{
for (const auto form : targetForms) {
auto& linkedDeathItems = LinkedFormsForForm(form, deathItems);

DistributionSet linkedEntries{
DistributionSet::empty<RE::SpellItem>(),
DistributionSet::empty<RE::BGSPerk>(),
Expand Down

0 comments on commit 719ef95

Please sign in to comment.