mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-07 09:33:51 +00:00
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:
parent
ce778ed674
commit
248dcd4eb4
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue