From 9625201952a72a46e819f832a351d19e89485551 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 04:15:39 -0700 Subject: [PATCH] feat(editor): selected-NPC editor gains Faction input (parity with template) --- tools/editor/editor_ui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index d6e0e05c..00a57a20 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -2003,6 +2003,9 @@ void EditorUI::renderNpcPanel(EditorApp& app) { if (sel->displayId == 0) ImGui::TextColored(ImVec4(0.9f, 0.6f, 0.3f, 1), "Display ID 0 = invisible in game; set for SQL export"); + int facSel = static_cast(sel->faction); + if (ImGui::InputInt("Faction##s", &facSel)) + sel->faction = static_cast(std::max(0, facSel)); const char* beh2[] = {"Stationary", "Patrol", "Wander", "Scripted"}; int bi2 = static_cast(sel->behavior);