EventDetailPage/RelItems

* fixed getting related items from QuestList
This commit is contained in:
Sarjuuk
2024-07-07 20:50:22 +02:00
parent b8898797ed
commit 9435c0fc2e

View File

@@ -190,7 +190,10 @@ class EventPage extends GenericPage
$questItems = []; $questItems = [];
foreach (array_column($quests->rewards, Type::ITEM) as $arr) foreach (array_column($quests->rewards, Type::ITEM) as $arr)
$questItems = array_merge($questItems, $arr); $questItems = array_merge($questItems, array_keys($arr));
foreach (array_column($quests->choices, Type::ITEM) as $arr)
$questItems = array_merge($questItems, array_keys($arr));
foreach (array_column($quests->requires, Type::ITEM) as $arr) foreach (array_column($quests->requires, Type::ITEM) as $arr)
$questItems = array_merge($questItems, $arr); $questItems = array_merge($questItems, $arr);