Пример #1
0
        public static void OnInsertNoVoiceClickPre(HSprite __instance, out bool __state)
        {
            var heroineId = __instance.GetLeadingHeroineId();

            __state = __instance.flags.isInsertOK[heroineId];

            var heroine = Utilities.GetTargetHeroine(__instance);

            if (heroine == null)
            {
                return;
            }

            var girlOrgasms = __instance.flags.count.sonyuOrg;

            // Check if player can circumvent the raw deny
            if (!KoikatuGameplayMod.ForceInsert.Value)
            {
                return;
            }
            if (CanCircumventDeny(__instance) ||
                girlOrgasms >= 3 + UnityEngine.Random.Range(0, 3) - heroine.lewdness / 66)
            {
                MakeGirlAngry(heroine, 20, 10);

                __instance.flags.isInsertOK[heroineId] = true;
                __instance.flags.isDenialvoiceWait     = false;
            }
        }
Пример #2
0
        public static void OnInsertClickPre(HSprite __instance, out bool __state)
        {
            var heroineId = __instance.GetLeadingHeroineId();

            __state = __instance.flags.isInsertOK[heroineId];

            var heroine = Utilities.GetTargetHeroine(__instance);

            if (heroine == null)
            {
                return;
            }
            var girlOrgasms = __instance.flags.count.sonyuOrg;

            // Check if girl allows raw
            if (girlOrgasms >= 4 + UnityEngine.Random.Range(0, 3) - heroine.lewdness / 45)
            {
                __instance.flags.isInsertOK[heroineId] = true;
            }
        }
Пример #3
0
        public static void OnInsertNoVoiceClickPost(HSprite __instance, bool __state)
        {
            var heroineId = __instance.GetLeadingHeroineId();

            __instance.flags.isInsertOK[heroineId] = __state;
        }