// Token: 0x06001A1C RID: 6684 RVA: 0x000FF190 File Offset: 0x000FD390
    public static TaskSaveData ReadFromGlobals()
    {
        TaskSaveData taskSaveData = new TaskSaveData();

        foreach (int num in TaskGlobals.KeysOfGuitarPhoto())
        {
            if (TaskGlobals.GetGuitarPhoto(num))
            {
                taskSaveData.guitarPhoto.Add(num);
            }
        }
        foreach (int num2 in TaskGlobals.KeysOfKittenPhoto())
        {
            if (TaskGlobals.GetKittenPhoto(num2))
            {
                taskSaveData.kittenPhoto.Add(num2);
            }
        }
        foreach (int num3 in TaskGlobals.KeysOfHorudaPhoto())
        {
            if (TaskGlobals.GetHorudaPhoto(num3))
            {
                taskSaveData.horudaPhoto.Add(num3);
            }
        }
        foreach (int num4 in TaskGlobals.KeysOfTaskStatus())
        {
            taskSaveData.taskStatus.Add(num4, TaskGlobals.GetTaskStatus(num4));
        }
        return(taskSaveData);
    }
    // Token: 0x06000750 RID: 1872 RVA: 0x0006F0F4 File Offset: 0x0006D4F4
    public static TaskSaveData ReadFromGlobals()
    {
        TaskSaveData taskSaveData = new TaskSaveData();

        foreach (int num in TaskGlobals.KeysOfKittenPhoto())
        {
            if (TaskGlobals.GetKittenPhoto(num))
            {
                taskSaveData.kittenPhoto.Add(num);
            }
        }
        foreach (int num2 in TaskGlobals.KeysOfTaskStatus())
        {
            taskSaveData.taskStatus.Add(num2, TaskGlobals.GetTaskStatus(num2));
        }
        return(taskSaveData);
    }
 // Token: 0x06001C11 RID: 7185 RVA: 0x0014EE04 File Offset: 0x0014D004
 public void UpdateTaskStatus()
 {
     if (TaskGlobals.GetTaskStatus(8) == 1 && this.StudentManager.Students[8] != null)
     {
         if (this.StudentManager.Students[8].TaskPhase == 0)
         {
             this.StudentManager.Students[8].TaskPhase = 4;
         }
         if (this.Yandere.Inventory.Soda)
         {
             this.StudentManager.Students[8].TaskPhase = 5;
         }
     }
     if (TaskGlobals.GetTaskStatus(11) == 1)
     {
         if (this.StudentManager.Students[11] != null)
         {
             if (this.StudentManager.Students[11].TaskPhase == 0)
             {
                 this.StudentManager.Students[11].TaskPhase = 4;
             }
             this.TaskObjects[11].SetActive(true);
         }
     }
     else if (this.TaskObjects[11] != null)
     {
         this.TaskObjects[11].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(25) == 1)
     {
         if (this.StudentManager.Students[25] != null)
         {
             if (this.StudentManager.Students[25].TaskPhase == 0)
             {
                 this.StudentManager.Students[25].TaskPhase = 4;
             }
             this.TaskObjects[25].SetActive(true);
         }
     }
     else if (this.TaskObjects[25] != null)
     {
         this.TaskObjects[25].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(28) == 1 && this.StudentManager.Students[28] != null)
     {
         if (this.StudentManager.Students[28].TaskPhase == 0)
         {
             this.StudentManager.Students[28].TaskPhase = 4;
         }
         for (int i = 1; i < 26; i++)
         {
             if (TaskGlobals.GetKittenPhoto(i))
             {
                 Debug.Log("Riku's Task can be turned in.");
                 this.StudentManager.Students[28].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(30) == 1 && this.StudentManager.Students[30] != null && this.StudentManager.Students[30].TaskPhase == 0)
     {
         this.StudentManager.Students[30].TaskPhase = 4;
     }
     if (TaskGlobals.GetTaskStatus(36) == 1 && this.StudentManager.Students[36] != null)
     {
         if (this.StudentManager.Students[36].TaskPhase == 0)
         {
             this.StudentManager.Students[36].TaskPhase = 4;
         }
         if (this.GirlsQuestioned[1] && this.GirlsQuestioned[2] && this.GirlsQuestioned[3] && this.GirlsQuestioned[4] && this.GirlsQuestioned[5])
         {
             Debug.Log("Gema's task should be ready to turn in!");
             this.StudentManager.Students[36].TaskPhase = 5;
         }
     }
     if (TaskGlobals.GetTaskStatus(37) == 1)
     {
         if (this.StudentManager.Students[37] != null)
         {
             if (this.StudentManager.Students[37].TaskPhase == 0)
             {
                 this.StudentManager.Students[37].TaskPhase = 4;
             }
             this.TaskObjects[37].SetActive(true);
         }
     }
     else if (this.TaskObjects[37] != null)
     {
         this.TaskObjects[37].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(38) == 1)
     {
         if (this.StudentManager.Students[38] != null && this.StudentManager.Students[38].TaskPhase == 0)
         {
             this.StudentManager.Students[38].TaskPhase = 4;
         }
     }
     else if (TaskGlobals.GetTaskStatus(38) == 2 && this.StudentManager.Students[38] != null)
     {
         this.StudentManager.Students[38].TaskPhase = 5;
     }
     if (ClubGlobals.GetClubClosed(ClubType.LightMusic) || this.StudentManager.Students[51] == null)
     {
         if (this.StudentManager.Students[52] != null)
         {
             this.StudentManager.Students[52].TaskPhase = 100;
         }
         TaskGlobals.SetTaskStatus(52, 100);
     }
     else if (TaskGlobals.GetTaskStatus(52) == 1 && this.StudentManager.Students[52] != null)
     {
         this.StudentManager.Students[52].TaskPhase = 4;
         for (int j = 1; j < 52; j++)
         {
             if (TaskGlobals.GetGuitarPhoto(j))
             {
                 this.StudentManager.Students[52].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(81) == 1 && this.StudentManager.Students[81] != null)
     {
         if (this.StudentManager.Students[81].TaskPhase == 0)
         {
             this.StudentManager.Students[81].TaskPhase = 4;
         }
         for (int k = 1; k < 26; k++)
         {
             if (TaskGlobals.GetHorudaPhoto(k))
             {
                 Debug.Log("Musume's Task can be turned in.");
                 this.StudentManager.Students[81].TaskPhase = 5;
             }
         }
     }
     TaskGlobals.GetTaskStatus(81);
 }
Exemple #4
0
 // Token: 0x06000882 RID: 2178 RVA: 0x0009A1E0 File Offset: 0x000985E0
 public void UpdateTaskStatus()
 {
     if (TaskGlobals.GetTaskStatus(6) == 1)
     {
         if (this.StudentManager.Students[6] != null)
         {
             if (this.StudentManager.Students[6].TaskPhase == 0)
             {
                 this.StudentManager.Students[6].TaskPhase = 4;
             }
             this.TaskObjects[6].SetActive(true);
         }
     }
     else if (this.TaskObjects[6] != null)
     {
         this.TaskObjects[6].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(7) == 1 && this.StudentManager.Students[7] != null && this.StudentManager.Students[7].TaskPhase == 0)
     {
         this.StudentManager.Students[7].TaskPhase = 4;
     }
     if (TaskGlobals.GetTaskStatus(13) == 1 && this.StudentManager.Students[13] != null)
     {
         this.StudentManager.Students[13].TaskPhase = 4;
         for (int i = 1; i < 26; i++)
         {
             if (TaskGlobals.GetKittenPhoto(i))
             {
                 this.StudentManager.Students[13].TaskPhase = 5;
             }
         }
     }
     if (TaskGlobals.GetTaskStatus(14) == 1)
     {
         if (this.StudentManager.Students[14] != null && this.StudentManager.Students[14].TaskPhase == 0)
         {
             this.StudentManager.Students[14].TaskPhase = 4;
         }
     }
     else if (TaskGlobals.GetTaskStatus(14) == 2 && this.StudentManager.Students[14] != null)
     {
         this.StudentManager.Students[14].TaskPhase = 5;
     }
     if (TaskGlobals.GetTaskStatus(15) == 1)
     {
         if (this.StudentManager.Students[15] != null)
         {
             if (this.StudentManager.Students[15].TaskPhase == 0)
             {
                 this.StudentManager.Students[15].TaskPhase = 4;
             }
             this.TaskObjects[15].SetActive(true);
         }
     }
     else if (this.TaskObjects[15] != null)
     {
         this.TaskObjects[15].SetActive(false);
     }
     if (TaskGlobals.GetTaskStatus(32) == 3)
     {
     }
     if (TaskGlobals.GetTaskStatus(33) == 1)
     {
         if (this.StudentManager.Students[33] != null)
         {
             if (this.StudentManager.Students[33].TaskPhase == 0)
             {
                 this.StudentManager.Students[33].TaskPhase = 4;
             }
             this.TaskObjects[33].SetActive(true);
         }
     }
     else if (this.TaskObjects[33] != null)
     {
         this.TaskObjects[33].SetActive(false);
     }
 }