From 5dd9cca14caedba6a84d251819d7139f1dbb2df2 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Thu, 20 Jul 2023 14:55:58 +0200 Subject: [PATCH] Don't draw Nothing weapon combos for NPC states. --- Glamourer/Gui/Equipment/EquipmentDrawer.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Glamourer/Gui/Equipment/EquipmentDrawer.cs b/Glamourer/Gui/Equipment/EquipmentDrawer.cs index 02be500..92e2c8f 100644 --- a/Glamourer/Gui/Equipment/EquipmentDrawer.cs +++ b/Glamourer/Gui/Equipment/EquipmentDrawer.cs @@ -107,6 +107,19 @@ public class EquipmentDrawer StainId cMainhandStain, out StainId rMainhandStain, StainId cOffhandStain, out StainId rOffhandStain, EquipFlag? cApply, out bool rApplyMainhand, out bool rApplyMainhandStain, out bool rApplyOffhand, out bool rApplyOffhandStain, bool locked) { + if (cMainhand.ModelId.Value == 0) + { + rOffhand = cOffhand; + rMainhand = cMainhand; + rMainhandStain = cMainhandStain; + rOffhandStain = cOffhandStain; + rApplyMainhand = false; + rApplyMainhandStain = false; + rApplyOffhand = false; + rApplyOffhandStain = false; + return DataChange.None; + } + var allWeapons = cApply.HasValue; if (_config.HideApplyCheckmarks) cApply = null;