Skip to content

Commit

Permalink
set long body in camo comms properly
Browse files Browse the repository at this point in the history
  • Loading branch information
whichtwix committed May 7, 2024
1 parent eddc89e commit 1bffaa7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/Patches/AprilFools_LongBoi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ public static void LongBoy_ColorHeightPatch(LongBoiPlayerBody __instance, ref in
{
while (colorIndex >= __instance.heightsPerColor.Count) colorIndex -= __instance.heightsPerColor.Count;
}

[HarmonyPatch(nameof(LongBoiPlayerBody.GrowNeck))]
[HarmonyPrefix]
public static bool LongBoy_GrowNeckPatch()
{
return !CamouflageUnCamouflage.IsCamoed;
}
}
5 changes: 5 additions & 0 deletions source/Patches/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public static void Camouflage()
PlayerName = " ",
PetId = ""
});
if (AprilFoolsMode.ShouldLongAround())
{
player.cosmetics.currentBodySprite.LongModeParts.Do(x => PlayerMaterial.SetColors(Color.grey, x));
player.cosmetics.GetLongBoi().ResetNeck();
}
PlayerMaterial.SetColors(Color.grey, player.myRend());
player.nameText().color = Color.clear;
player.cosmetics.colorBlindText.color = Color.clear;
Expand Down

0 comments on commit 1bffaa7

Please sign in to comment.