Skip to content

Commit

Permalink
[KK/KKS] Fixed masks not being copied to another outfit
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Apr 10, 2023
1 parent 6d8b94a commit ba1d016
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Shared_KKEC/Clothes/KoiClothesOverlayController.Hooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ba1d016

Please sign in to comment.