fix: complete all quests not working (#1755)
Fixes #1742 Reviewed-on: #1755 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
98975edca1
commit
9912a623b1
@ -35,11 +35,9 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
|
|||||||
|
|
||||||
switch (operation) {
|
switch (operation) {
|
||||||
case "completeAll": {
|
case "completeAll": {
|
||||||
if (allQuestKeys.includes(questItemType)) {
|
|
||||||
for (const questKey of inventory.QuestKeys) {
|
for (const questKey of inventory.QuestKeys) {
|
||||||
await completeQuest(inventory, questKey.ItemType);
|
await completeQuest(inventory, questKey.ItemType);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "resetAll": {
|
case "resetAll": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user