Pickup ingredients when activating flora
This commit is contained in:
parent
bebafe8a80
commit
d22595f6d2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user