From 248dcd4eb42a3f28e83f3f9033319f9e6c85cc50 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 03:13:26 -0700 Subject: [PATCH] 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. --- tools/editor/editor_ui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index f2260c83..8da6950c 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -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);