feat(editor): quest objective limit raised to 10 (matches SQL slot capacity)

UI was capped at 4 but the SQL exporter writes RequiredNpcOrGo[1..4] +
RequiredItemId[1..6] = 10 total slots. Allowing 10 lets users define
mixed kill+collect quests fully.
This commit is contained in:
Kelsi 2026-05-06 03:13:26 -07:00
parent ce778ed674
commit 248dcd4eb4

View file

@ -2172,8 +2172,10 @@ void EditorUI::renderQuestPanel(EditorApp& app) {
}
ImGui::Separator();
ImGui::Text("Objectives:");
if (tmpl.objectives.size() < 4 && ImGui::Button("Add Objective")) {
ImGui::Text("Objectives (max 4 Kill + 6 Collect):");
// Limit to 10 total — matches the SQL exporter slot capacity
// (RequiredNpcOrGo[1..4] + RequiredItemId[1..6]).
if (tmpl.objectives.size() < 10 && ImGui::Button("Add Objective")) {
QuestObjective obj;
obj.description = "Kill 5 creatures";
tmpl.objectives.push_back(obj);