diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index 00a57a20..564b6d93 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -2011,6 +2011,18 @@ void EditorUI::renderNpcPanel(EditorApp& app) { int bi2 = static_cast(sel->behavior); if (ImGui::Combo("AI##s", &bi2, beh2, 4)) sel->behavior = static_cast(bi2); + // NPC role flags — match the template editor's set so users can + // toggle these on already-placed NPCs without re-creating them. + ImGui::Checkbox("Hostile##s", &sel->hostile); + ImGui::SameLine(); ImGui::Checkbox("Quest##s", &sel->questgiver); + ImGui::SameLine(); ImGui::Checkbox("Vendor##s", &sel->vendor); + ImGui::Checkbox("Inn##s", &sel->innkeeper); + ImGui::SameLine(); ImGui::Checkbox("Train##s", &sel->trainer); + ImGui::SameLine(); ImGui::Checkbox("Bank##s", &sel->banker); + ImGui::Checkbox("Auc##s", &sel->auctioneer); + ImGui::SameLine(); ImGui::Checkbox("Repair##s", &sel->repair); + ImGui::SameLine(); ImGui::Checkbox("Flight##s", &sel->flightmaster); + // Patrol path editing if (sel->behavior == CreatureBehavior::Patrol) { ImGui::Text("Patrol Points: %zu", sel->patrolPath.size());