fix: set quest inactive when deleting it (#2963)
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:
parent
b1c1b56de3
commit
cecc65197b
@ -61,6 +61,7 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
inventory.QuestKeys.pull({ ItemType: questItemType });
|
inventory.QuestKeys.pull({ ItemType: questItemType });
|
||||||
|
if (inventory.ActiveQuest == questItemType) inventory.ActiveQuest = "";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "completeKey": {
|
case "completeKey": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user