static void GetEventADVPrefix(Info __instance, int _command, PassingInfo ____passingInfo) { _currentCrestType = ____passingInfo?.heroine?.GetCurrentCrest() ?? CrestType.None; _currentPassingInfo = ____passingInfo; Console.WriteLine("GetEventADVPrefix " + _currentCrestType); _isHEvent = _command == 3; }
static void GetEventADVPrefix(Info __instance, int _command) { _currentCrestType = __instance.passingInfo?.heroine?.GetCurrentCrest() ?? CrestType.None; _currentPassingInfo = __instance.passingInfo; _isHEvent = #if KK _command == 3; // 3 is lets have h #elif KKS _command == 20 || _command == 21; // 20 is lets have h, 21 is come to my room #endif //Console.WriteLine($"GetEventADVPrefix crest={_currentCrestType} _command={_command} _isHEvent={_isHEvent}"); }
static void isHPossiblePatch(ref bool __result, PassingInfo __instance) { var crest = _currentCrestType; if (_currentCrestType == CrestType.None) { crest = __instance.heroine.GetCurrentCrest(); } //Console.WriteLine($"isHPossiblePatch crest={_currentCrestType}"); switch (crest) { case CrestType.command: case CrestType.libido: case CrestType.liberated: __result = true; break; } }