예제 #1
0
 static void Postfix()
 {
     RapedEvent.isAdded = false;
     //if (!Main.enabled) return;
     QuquEvent.Add();
     RapedEvent.Add();
 }
예제 #2
0
 static bool Prefix(MassageWindow __instance)
 {
     if (__instance.eventValue.Count > 0 && __instance.eventValue[0] != 0)
     {
         int num = __instance.eventValue[0];
         if (num == QuquEvent.eventId)
         {
             Main.Logger.Log("相虫事件跳转");
             QuquEvent.EndEvent(__instance.mianEventDate[1]);
         }
         else if (num == RapedEvent.ID.option1)
         {
             Main.Logger.Log("被欺侮事件跳转");
             RapedEvent.DoRape(__instance.mianEventDate[1], DateFile.instance.mianActorId);
         }
         else if (num == RapedEvent.ID.option21)
         {
             Main.Logger.Log("没收工具事件跳转");
             RapedEvent.Spay(__instance.mianEventDate[1]);
         }
         else
         {
             return(true);
         }
         __instance.eventValue = new List <int>();
         return(false);
     }
     return(true);
 }
예제 #3
0
        static void OnGUI(UnityModManager.ModEntry modEntry)
        {
            GUILayout.BeginHorizontal();
            GUILayout.Label("<color=#F28234FF>本mod要求太吾版本1.7.5及以上</color>");
            GUILayout.Label("<color=#F28234FF>注意:不要在已积有被欺侮事件的情况下卸载本mod</color>");
            GUILayout.EndHorizontal();
            GUILayout.BeginHorizontal();
            GUILayout.Label("功能:相虫失败时可以选择将对方变成蛐蛐", new GUILayoutOption[0]);
            settings.needNoImpression = GUILayout.Toggle(settings.needNoImpression, "无需印象", new GUILayoutOption[0]);
            GUILayout.EndHorizontal();
            GUILayout.BeginHorizontal();
            bool flag = GUILayout.Button("切换", GUILayout.Width(60));

            if (flag)
            {
                QuquEvent.Switch();
            }
            GUILayout.Label("将【取其性命】改为【化为促织】:" + (settings.ququEnabled ? "开启" : "关闭"));
            GUILayout.EndHorizontal();
            GUILayout.BeginHorizontal();
            bool flag2 = GUILayout.Button("切换", GUILayout.Width(60));

            if (flag2)
            {
                RapedEvent.Switch();
            }
            GUILayout.Label("允许触发欺侮太吾事件&提高欺侮触发率:" + (settings.rapedEnabled ? "开启" : "关闭"));
            GUILayout.EndHorizontal();
        }