From ba1d016d71e66d4187674f55e83b218e88fbdf5e Mon Sep 17 00:00:00 2001 From: ManlyMarco <39247311+ManlyMarco@users.noreply.github.com> Date: Tue, 11 Apr 2023 01:27:22 +0200 Subject: [PATCH] [KK/KKS] Fixed masks not being copied to another outfit --- Shared_KKEC/Clothes/KoiClothesOverlayController.Hooks.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Shared_KKEC/Clothes/KoiClothesOverlayController.Hooks.cs b/Shared_KKEC/Clothes/KoiClothesOverlayController.Hooks.cs index 247a772..1f54ec6 100644 --- a/Shared_KKEC/Clothes/KoiClothesOverlayController.Hooks.cs +++ b/Shared_KKEC/Clothes/KoiClothesOverlayController.Hooks.cs @@ -229,10 +229,14 @@ private static void CopyClothesPostfix(TMP_Dropdown[] ___ddCoordeType, Toggle[] // MainClothesNames is the same as ChaFileDefine.ClothesKind so index lines up var copySlots = KoiClothesOverlayMgr.MainClothesNames.Where((x, i) => ___tglKind[i].isOn).ToList(); - // SubClothesNames is the same as ChaFileDefine.ClothesSubKind so index lines up + // Top clothes are on if (___tglKind[0].isOn) { - // If Top is on, check which parts of it should be copied + // Copy body/bra masks + copySlots.AddRange(Enum.GetNames(typeof(MaskKind))); + + // Check which sub parts of top should be copied + // SubClothesNames is the same as ChaFileDefine.ClothesSubKind so index lines up // bug? These toggles don't seem to be doing anything in the game, if top is selected then everything is always copied regardless of these toggles // copySlots.AddRange(KoiClothesOverlayMgr.SubClothesNames.Where((x, i) => ___tglSubKind[i].isOn)); copySlots.AddRange(KoiClothesOverlayMgr.SubClothesNames);