1

Pickup ingredients when activating flora

This commit is contained in:
Eddoursul 2024-07-04 14:39:14 +02:00
parent bebafe8a80
commit d22595f6d2

View File

@ -110,6 +110,9 @@ auto EventListener::ProcessEvent(
bAdd = a_refBase->Is(RE::FormType::Misc) && a_refBase->As<RE::BGSKeywordForm>()->HasKeyword(keywordIngot);
} else if (bIsFlora || bIsTree || bIsIngredient) {
if (a_refBase == produceItem) {
bAdd = true;
} else {
const auto floraBase = a_refBase->As<RE::TESFlora>();
if (floraBase && (floraBase->produceItem == produceItem || floraBase->produceItem == baseObj)) {
bAdd = true;
@ -120,6 +123,7 @@ auto EventListener::ProcessEvent(
}
}
}
}
if (bAdd) {
refQueue.insert(a_ref);