Beispiel #1
0
 public static void RemoveEventEndFlag(Maid maid)
 {
     if (maid != null)
     {
         MyLog.LogDarkBlue(".RemoveEventEndFlag:" + maid.status.firstName + " , " + maid.status.lastName);;
         maid.status.RemoveEventEndFlagAll();
     }
 }
Beispiel #2
0
        /*
         * internal static void SetScenarioDataAll()
         * {
         *
         *  if (!isRunSetScenarioDataAll)
         *  {
         *      Task.Factory.StartNew(() =>
         *      {
         *          isRunSetScenarioDataAll = true;
         *          MyLog.LogDarkBlue("ScenarioDataUtill.SetScenarioDataAll. start");
         *          try
         *          {
         *              // 병렬 처리
         *              foreach (var scenarioData in GameMain.Instance.ScenarioSelectMgr.GetAllScenarioData())
         *              {
         *                  try
         *                  {
         *                      // MyLog.LogMessageS(".SetScenarioDataAll:" + scenarioData.ID + " , " + scenarioData.ScenarioScript + " , " + scenarioData.IsPlayable + " , " + scenarioData.Title); ;
         *                      if (scenarioData.IsPlayable)
         *                      {
         *                          //MyLog.LogMessageS(".m_EventMaid");
         *                          foreach (var maid in scenarioData.GetEventMaidList())
         *                          {
         *                              try
         *                              {
         *                                  bool b = maid.status.GetEventEndFlag(scenarioData.ID);
         *                                  if (!b)
         *                                  {
         *                                      MyLog.LogMessage(".SetEventEndFlagAll:" + scenarioData.ID + " , " + scenarioData.ScenarioScript + " , " + maid.status.firstName + " , " + maid.status.lastName + " , " + b + " , " + scenarioData.ScenarioScript.Contains("_Marriage") + " , " + scenarioData.Title); ;
         *                                      maid.status.SetEventEndFlag(scenarioData.ID, true);
         *                                      if (scenarioData.ScenarioScript.Contains("_Marriage"))
         *                                      {
         *                                          maid.status.specialRelation = SpecialRelation.Married;
         *                                          maid.status.relation = Relation.Lover;
         *                                          maid.status.OldStatus.isMarriage = true;
         *                                          maid.status.OldStatus.isNewWife = true;
         *                                          //SetMaidCondition(0, '嫁');
         *                                      }
         *                                  }
         *                              }
         *                              catch (Exception e)
         *                              {
         *                                  MyLog.LogError("ScenarioDataUtill.SetScenarioDataAll3 : " + e.ToString());
         *                              }
         *                          }
         *                      }
         *                  }
         *                  catch (Exception e)
         *                  {
         *                      MyLog.LogError("ScenarioDataUtill.SetScenarioDataAll2 : " + e.ToString());
         *                  }
         *              }
         *          }
         *          catch (Exception e)
         *          {
         *              MyLog.LogError("ScenarioDataUtill.SetScenarioDataAll1 : " + e.ToString());
         *          }
         *          MyLog.LogDarkBlue("ScenarioDataUtill.SetScenarioDataAll. end");
         *          isRunSetScenarioDataAll = false;
         *      });
         *  }
         * }
         */
        internal static void SetFreeModeItemEverydayAll()
        {
            MyLog.LogDarkBlue("ScenarioDataUtill.SetScenarioAll. start");

            SetEveryday(FreeModeItemEveryday.ScnearioType.Nitijyou);
            MyLog.LogInfo("ScenarioDataUtill.SetScenarioAll. Nitijyou end");

            SetEveryday(FreeModeItemEveryday.ScnearioType.Story);
            MyLog.LogInfo("ScenarioDataUtill.SetScenarioAll. Story emd");

            MyLog.LogDarkBlue("ScenarioDataUtill.SetScenarioAll. end");
        }
Beispiel #3
0
        public static void SetMaidStatus()
        {
            MyLog.LogDarkBlue("MaidStatusUtill.SetMaidStatusAll. start");

            SetMaidStatus(MaidManagementMainPatch.___select_maid_);

            /*
             * Parallel.ForEach(GameMain.Instance.CharacterMgr.GetStockMaidList(), maid =>
             * {
             *  //MyLog.LogMessageS("MaidStatusUtill.ActiveManSloatCount: " + maid.status.firstName +" , "+ maid.status.lastName);
             *
             *  SetMaidStatus(maid);
             * });
             */
            MyLog.LogDarkBlue("MaidStatusUtill.SetMaidStatusAll. end");
        }
Beispiel #4
0
        public static void SetMaidStatusAll()
        {
            MyLog.LogDarkBlue("MaidStatusUtill.SetMaidStatusAll. start");


            foreach (var maid in GameMain.Instance.CharacterMgr.GetStockMaidList())
            {
                SetMaidStatus(maid);
            }

            /*
             * Parallel.ForEach(GameMain.Instance.CharacterMgr.GetStockMaidList(), maid =>
             * {
             *  //MyLog.LogMessageS("MaidStatusUtill.ActiveManSloatCount: " + maid.status.firstName +" , "+ maid.status.lastName);
             *
             *  SetMaidStatus(maid);
             * });
             */
            MyLog.LogDarkBlue("MaidStatusUtill.SetMaidStatusAll. end");
        }
Beispiel #5
0
        internal static void SetAllPlayerStatus()
        {
            MyLog.LogDarkBlue("SetAllPlayerStatus st");

            PlayerStatus.Status status = GameMain.Instance.CharacterMgr.status;
            status.casinoCoin = 999999L;
            status.clubGauge  = 100;
            status.clubGrade  = 5;
            status.money      = 9999999999L;

            ScheduleCSVData.vipFullOpenDay = 0;

            try
            {
                foreach (Trophy.Data item in Trophy.GetAllDatas(false))
                {
                    if (GameMain.Instance.CharacterMgr.status.IsHaveTrophy(item.id))
                    {
                        continue;
                    }

                    MyLog.LogMessage("Trophy"
                                     , item.id
                                     , item.name
                                     , item.type
                                     , item.rarity
                                     , item.maidPoint
                                     , item.infoText
                                     , item.bonusText
                                     );
                    GameMain.Instance.CharacterMgr.status.AddHaveTrophy(item.id);
                }
            }
            catch (Exception e)
            {
                MyLog.LogError("Trophy:" + e.ToString());
            }


            MyLog.LogDarkBlue("SetAllPlayerStatus ed");
        }
Beispiel #6
0
        public Lilly()
        {
            Instance  = this;
            name      = "COM3D2.Lilly.Plugin";
            MyLog.log = BepInEx.Logging.Logger.CreateLogSource("Lilly");

            MyLog.LogDarkBlue("https://github.com/customordermaid3d2/COM3D2.Lilly.BepInExPlugin");

            stopwatch.Start(); // 시간측정 시작
            MyLog.LogMessage("Lilly", string.Format("{0:0.000} ", stopwatch.Elapsed.ToString()));
            MyLog.LogMessage("Lilly", DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss"));

            customFile  = Config;
            ShowCounter = Config.Bind("KeyboardShortcut", "KeyboardShortcut0", new BepInEx.Configuration.KeyboardShortcut(KeyCode.Alpha0, KeyCode.LeftControl));
            ConfigEntryUtill.init(Config);


            //GearMenu.SetButton();
            GUIHarmony.init();
            GUIMgr.GUIMgr.init();
#if PresetUtill
            PresetUtill.init();
#endif

            MyLog.LogMessage("ConfigFilePath", customFile.ConfigFilePath);

            // 성능이 너무 나쁨. 하모니가 괜히 클래스 지정한게 아닌듯
            //InvokeInit.Invoke();
            //InvokeAwake.Invoke();
            if (actionsInit.GetLength() > 0)
            {
                actionsInit();
            }

            configEntryUtill = ConfigEntryUtill.Create(
                "Lilly"
                , "OnSceneLoaded"
                , "GameObjectMgr" //configEntryUtill["GameObjectMgr"]
                );
        }
Beispiel #7
0
        internal static void SetYotogiAll()
        {
            MyLog.LogDarkBlue("SetAllYotogi START"
                              );

            foreach (var item in ScheduleCSVData.YotogiData)
            {
                ScheduleCSVData.Yotogi yotogi = item.Value;
                if (yotogi.condManVisibleFlag1.Count > 0)
                {
                    for (int j = 0; j < yotogi.condManVisibleFlag1.Count; j++)
                    {
                        if (GameMain.Instance.CharacterMgr.status.GetFlag(yotogi.condManVisibleFlag1[j]) == 0)
                        {
                            MyLog.LogMessage("SetScenarioAll.yotogi." + yotogi.condManVisibleFlag1[j]);
                            GameMain.Instance.CharacterMgr.status.SetFlag(yotogi.condManVisibleFlag1[j], 1);
                        }
                    }
                }
            }

            MyLog.LogDarkBlue("SetAllYotogi END"
                              );
        }