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);
|
bAdd = a_refBase->Is(RE::FormType::Misc) && a_refBase->As<RE::BGSKeywordForm>()->HasKeyword(keywordIngot);
|
||||||
|
|
||||||
} else if (bIsFlora || bIsTree || bIsIngredient) {
|
} else if (bIsFlora || bIsTree || bIsIngredient) {
|
||||||
|
if (a_refBase == produceItem) {
|
||||||
|
bAdd = true;
|
||||||
|
} else {
|
||||||
const auto floraBase = a_refBase->As<RE::TESFlora>();
|
const auto floraBase = a_refBase->As<RE::TESFlora>();
|
||||||
if (floraBase && (floraBase->produceItem == produceItem || floraBase->produceItem == baseObj)) {
|
if (floraBase && (floraBase->produceItem == produceItem || floraBase->produceItem == baseObj)) {
|
||||||
bAdd = true;
|
bAdd = true;
|
||||||
@ -120,6 +123,7 @@ auto EventListener::ProcessEvent(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (bAdd) {
|
if (bAdd) {
|
||||||
refQueue.insert(a_ref);
|
refQueue.insert(a_ref);
|
||||||
|
Loading…
Reference in New Issue
Block a user