Skip to content

Commit

Permalink
* same as last but for AIS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mantas-2155X committed Jul 4, 2020
1 parent f1909c4 commit 2d4fee6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
23 changes: 18 additions & 5 deletions AI_BetterHScenes/AI_BetterHScenes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class AI_BetterHScenes : BaseUnityPlugin
private static Light sun;
private static List<SkinnedCollisionHelper> collisionHelpers;

private static bool OnHStart;
private static bool activeUI;
private static bool patched;

Expand Down Expand Up @@ -391,11 +392,6 @@ public static void HScene_SetStartVoice_Patch(HScene __instance, HSceneSprite __
Tools.SetGotoWeaknessCount(countToWeakness.Value);

SliderUI.InitDraggersUI();

HScene_StripClothes(
stripMaleClothes.Value == Tools.OffHStartAnimChange.OnHStart || stripMaleClothes.Value == Tools.OffHStartAnimChange.Both,
stripFemaleClothes.Value == Tools.OffHStartAnimChange.OnHStart || stripFemaleClothes.Value == Tools.OffHStartAnimChange.Both
);
}

//-- Enable map, simulation after H if disabled previously, disable dragger UI --//
Expand All @@ -410,6 +406,7 @@ public static void HScene_EndProc_Patch()
sun.shadows = oldSunShadowsState;

activeUI = false;
OnHStart = false;

if (!increaseBathDesire.Value || manager.bMerchant)
return;
Expand Down Expand Up @@ -447,6 +444,22 @@ public static void HScene_EndProc_Patch()
}
}

//-- Strip on start of H scene --//
//-- fuck you illusion for giving me 21 headaches over this when it's supposed to work everywhere else I patched. Why the fuck is it working for females but not males in the same fucking line of code, why do I have to pick other places to patch. Fuck you, fuck you and FUCK YOU!! --//
[HarmonyPostfix, HarmonyPatch(typeof(HScene), "SyncAnimation")]
public static void HScene_SyncAnimation_StripClothes()
{
if (!OnHStart)
{
HScene_StripClothes(
stripMaleClothes.Value == Tools.OffHStartAnimChange.OnHStart || stripMaleClothes.Value == Tools.OffHStartAnimChange.Both,
stripFemaleClothes.Value == Tools.OffHStartAnimChange.OnHStart || stripFemaleClothes.Value == Tools.OffHStartAnimChange.Both
);

OnHStart = true;
}
}

//-- Always gauges heart --//
[HarmonyPostfix, HarmonyPatch(typeof(FeelHit), "isHit")]
public static void FeelHit_isHit_AlwaysGaugesHeart(ref bool __result)
Expand Down
2 changes: 1 addition & 1 deletion HS2_BetterHScenes/HS2_BetterHScenes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public static void HScene_EndProc_Patch()
//-- Strip on start of H scene --//
//-- fuck you illusion for giving me 21 headaches over this when it's supposed to work everywhere else I patched. Why the fuck is it working for females but not males in the same fucking line of code, why do I have to pick other places to patch. Fuck you, fuck you and FUCK YOU!! --//
[HarmonyPostfix, HarmonyPatch(typeof(HScene), "SetStartVoice")]
public static void HScene_SetStartVoice_CacheMode()
public static void HScene_SetStartVoice_StripClothes()
{
HScene_StripClothes(
stripMaleClothes.Value == Tools.OffHStartAnimChange.OnHStart || stripMaleClothes.Value == Tools.OffHStartAnimChange.Both,
Expand Down

0 comments on commit 2d4fee6

Please sign in to comment.