fix: set quest inactive when deleting it (#2963)
Some checks failed
Build Docker image / docker (push) Waiting to run
Build / build (push) Has been cancelled

Closes #2958

Reviewed-on: #2963
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:
Sainan 2025-11-01 02:52:05 -07:00 committed by Sainan
parent b1c1b56de3
commit cecc65197b

View File

@ -61,6 +61,7 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
break;
}
inventory.QuestKeys.pull({ ItemType: questItemType });
if (inventory.ActiveQuest == questItemType) inventory.ActiveQuest = "";
break;
}
case "completeKey": {