This required a bigger refactor than I had anticipated, honestly.
Problem was that I needed access to QuestListInfo#category way down in completeQuest, but all I had was a string questName. I do think this improves the code by introducing some type safety, though.
In-game now, using the test quest "quest/test_grant_quest_complete" bundled with SWG:
This required a bigger refactor than I had anticipated, honestly. Problem was that I needed access to
QuestListInfo#category
way down incompleteQuest
, but all I had was a stringquestName
. I do think this improves the code by introducing some type safety, though.In-game now, using the test quest "quest/test_grant_quest_complete" bundled with SWG:
From an original screenshot: