Beispiel #1
0
 // Token: 0x06000226 RID: 550 RVA: 0x0002E8A4 File Offset: 0x0002CCA4
 private void CheckTaskCompletion()
 {
     if (TaskGlobals.GetTaskStatus(this.Yandere.TargetStudent.StudentID) == 2 && this.Yandere.TargetStudent.StudentID == 32)
     {
         this.Yandere.Inventory.Cigs = false;
     }
 }
Beispiel #2
0
 // Token: 0x06000784 RID: 1924 RVA: 0x000713DE File Offset: 0x0006F7DE
 private void Start()
 {
     if (TaskGlobals.GetTaskStatus(7) > 2)
     {
         base.enabled = false;
     }
 }
    // Token: 0x0600087E RID: 2174 RVA: 0x00099D54 File Offset: 0x00098154
    public IEnumerator UpdateTaskInfo()
    {
        this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 200f - 25f * (float)this.ID, this.Highlight.localPosition.z);
        if (TaskGlobals.GetTaskStatus(this.ID) == 0)
        {
            this.StudentIcon.mainTexture = this.Silhouette;
            this.TaskIcon.mainTexture    = this.QuestionMark;
            this.TaskDesc.text           = "This task has not been discovered yet.";
        }
        else
        {
            string path = string.Concat(new string[]
            {
                "file:///",
                Application.streamingAssetsPath,
                "/Portraits/Student_",
                this.ID.ToString(),
                ".png"
            });
            WWW www = new WWW(path);
            yield return(www);

            this.StudentIcon.mainTexture = www.texture;
            this.TaskIcon.mainTexture    = this.TaskIcons[this.ID];
            this.TaskDesc.text           = this.TaskDescs[this.ID];
        }
        yield break;
    }
    // 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: 0x0600087D RID: 2173 RVA: 0x00099CEC File Offset: 0x000980EC
 public void UpdateTaskList()
 {
     for (int i = 1; i < this.TaskNames.Length; i++)
     {
         this.TaskNameLabels[i].text = ((TaskGlobals.GetTaskStatus(i) != 0) ? this.TaskNames[i] : "?????");
         this.Checkmarks[i].enabled  = (TaskGlobals.GetTaskStatus(i) == 3);
     }
 }
Beispiel #6
0
 // Token: 0x0600174C RID: 5964 RVA: 0x000C86AC File Offset: 0x000C68AC
 private void Start()
 {
     if (TaskGlobals.GetTaskStatus(38) == 0)
     {
         this.TitleScreens[1] = this.TitleScreens[5];
         UILabel uilabel = this.GameTitles[1];
         uilabel.text  = this.GameTitles[5].text;
         uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, 0.5f);
     }
     this.TitleScreen.mainTexture = this.TitleScreens[1];
 }
 private void Start()
 {
     if (TaskGlobals.GetTaskStatus(30) == 1)
     {
         this.Check = true;
         return;
     }
     if (TaskGlobals.GetTaskStatus(30) > 2)
     {
         base.enabled = false;
     }
 }
Beispiel #8
0
 // Token: 0x06000881 RID: 2177 RVA: 0x00099F90 File Offset: 0x00098390
 private void Update()
 {
     if (TaskGlobals.GetTaskStatus(6) == 1 && this.Prompts[6].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[6] != null)
         {
             this.StudentManager.Students[6].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(6, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[6]);
     }
     if (TaskGlobals.GetTaskStatus(15) == 1 && this.Prompts[15].Circle[3] != null && this.Prompts[15].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[15] != null)
         {
             this.StudentManager.Students[15].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(15, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[15]);
     }
     if (TaskGlobals.GetTaskStatus(33) == 1 && this.Prompts[33].Circle[3] != null && this.Prompts[33].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[33] != null)
         {
             this.StudentManager.Students[33].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(33, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[33]);
     }
     if (!this.Yandere.Talking)
     {
         if (TaskGlobals.GetTaskStatus(32) == 1)
         {
             if (this.Yandere.Inventory.Cigs)
             {
                 if (this.StudentManager.Students[32] != null)
                 {
                     this.StudentManager.Students[32].TaskPhase = 5;
                 }
                 TaskGlobals.SetTaskStatus(32, 2);
             }
         }
         else if (TaskGlobals.GetTaskStatus(32) == 2 && !this.Yandere.Inventory.Cigs)
         {
             if (this.StudentManager.Students[32] != null)
             {
                 this.StudentManager.Students[32].TaskPhase = 4;
             }
             TaskGlobals.SetTaskStatus(32, 1);
         }
     }
 }
 // Token: 0x060001AF RID: 431 RVA: 0x00021058 File Offset: 0x0001F458
 private void TaskCheck()
 {
     if (this.StudentID == 15)
     {
         if (TaskGlobals.GetTaskStatus(15) < 3 && !this.TakingPortrait)
         {
             this.MaleAccessories[1].SetActive(false);
         }
     }
     else if (this.StudentID == 33 && TaskGlobals.GetTaskStatus(33) < 3 && this.Charm != null)
     {
         this.Charm.SetActive(true);
     }
 }
Beispiel #10
0
 // Token: 0x06001C30 RID: 7216 RVA: 0x00151FE0 File Offset: 0x001501E0
 public void UpdateTaskList()
 {
     for (int i = 1; i < this.TaskNameLabels.Length; i++)
     {
         if (TaskGlobals.GetTaskStatus(i + this.ListPosition) == 0)
         {
             this.TaskNameLabels[i].text = "Undiscovered Task #" + (i + this.ListPosition);
         }
         else
         {
             this.TaskNameLabels[i].text = this.JSON.Students[i + this.ListPosition].Name + "'s Task";
         }
         this.Checkmarks[i].enabled = (TaskGlobals.GetTaskStatus(i + this.ListPosition) == 3);
     }
 }
    // 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);
    }
Beispiel #12
0
    public IEnumerator UpdateTaskInfo()
    {
        this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 200f - 25f * (float)this.ID, this.Highlight.localPosition.z);
        if (this.Tutorials)
        {
            this.TaskIcon.mainTexture = this.TutorialTextures[this.ID + this.ListPosition];
            this.TaskDesc.text        = "This tutorial will teach you about " + this.TutorialNames[this.ID + this.ListPosition];
        }
        else if (TaskGlobals.GetTaskStatus(this.ID + this.ListPosition) == 0)
        {
            this.StudentIcon.mainTexture = this.Silhouette;
            this.TaskIcon.mainTexture    = this.QuestionMark;
            this.TaskDesc.text           = "This task has not been discovered yet.";
        }
        else
        {
            string url = string.Concat(new string[]
            {
                "file:///",
                Application.streamingAssetsPath,
                "/Portraits/Student_",
                (this.ID + this.ListPosition).ToString(),
                ".png"
            });
            WWW www = new WWW(url);
            yield return(www);

            this.StudentIcon.mainTexture = www.texture;
            this.TaskWindow.AltGenericCheck(this.ID + this.ListPosition);
            if (this.TaskWindow.Generic)
            {
                this.TaskIcon.mainTexture = this.TaskWindow.Icons[0];
                this.TaskDesc.text        = this.TaskWindow.Descriptions[0];
            }
            else
            {
                this.TaskIcon.mainTexture = this.TaskWindow.Icons[this.ID + this.ListPosition];
                this.TaskDesc.text        = this.TaskWindow.Descriptions[this.ID + this.ListPosition];
            }
            www = null;
        }
        yield break;
    }
 // Token: 0x06001C10 RID: 7184 RVA: 0x0014EC38 File Offset: 0x0014CE38
 public void CheckTaskPickups()
 {
     Debug.Log("Checking Tasks that are completed by picking something up!");
     if (TaskGlobals.GetTaskStatus(11) == 1 && this.Prompts[11].Circle[3] != null && this.Prompts[11].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[11] != null)
         {
             this.StudentManager.Students[11].TaskPhase = 5;
         }
         ConversationGlobals.SetTopicDiscovered(15, true);
         this.Yandere.NotificationManager.TopicName = "Cats";
         this.Yandere.NotificationManager.DisplayNotification(NotificationType.Topic);
         this.Yandere.NotificationManager.DisplayNotification(NotificationType.Opinion);
         ConversationGlobals.SetTopicLearnedByStudent(15, 11, true);
         TaskGlobals.SetTaskStatus(11, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[11]);
     }
     if (TaskGlobals.GetTaskStatus(25) == 1 && this.Prompts[25].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[25] != null)
         {
             this.StudentManager.Students[25].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(25, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[25]);
     }
     if (TaskGlobals.GetTaskStatus(37) == 1 && this.Prompts[37].Circle[3] != null && this.Prompts[37].Circle[3].fillAmount == 0f)
     {
         if (this.StudentManager.Students[37] != null)
         {
             this.StudentManager.Students[37].TaskPhase = 5;
         }
         TaskGlobals.SetTaskStatus(37, 2);
         UnityEngine.Object.Destroy(this.TaskObjects[37]);
     }
 }
Beispiel #14
0
 // Token: 0x06000785 RID: 1925 RVA: 0x000713F4 File Offset: 0x0006F7F4
 private void Update()
 {
     if (TaskGlobals.GetTaskStatus(7) == 1)
     {
         if (this.Yandere.PickUp != null)
         {
             if (this.Yandere.PickUp.Clothing && this.Yandere.PickUp.GetComponent <FoldedUniformScript>().Clean&& this.Yandere.PickUp.GetComponent <FoldedUniformScript>().Type == 1 && this.Yandere.PickUp.gameObject.GetComponent <FoldedUniformScript>().Type == 1)
             {
                 this.Prompt.enabled = true;
             }
         }
         else
         {
             this.Prompt.Hide();
             this.Prompt.enabled = false;
         }
     }
     if (this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Yandere.Character.GetComponent <Animation>().CrossFade("f02_sewing_00");
         this.Yandere.MyController.radius = 0.1f;
         this.Prompt.Circle[0].fillAmount = 1f;
         this.Yandere.CanMove             = false;
         this.Chair.enabled = false;
         this.Sewing        = true;
         base.GetComponent <AudioSource>().Play();
         this.Uniform = this.Yandere.PickUp;
         this.Yandere.EmptyHands();
         this.Uniform.transform.parent           = this.Yandere.RightHand;
         this.Uniform.transform.localPosition    = new Vector3(0f, 0f, 0.09f);
         this.Uniform.transform.localEulerAngles = new Vector3(0f, 0f, 0f);
         this.Uniform.MyRigidbody.useGravity     = false;
         this.Uniform.MyCollider.enabled         = false;
     }
     if (this.Sewing)
     {
         this.Timer += Time.deltaTime;
         if (this.Timer < 5f)
         {
             this.targetRotation             = Quaternion.LookRotation(base.transform.parent.transform.parent.position - this.Yandere.transform.position);
             this.Yandere.transform.rotation = Quaternion.Slerp(this.Yandere.transform.rotation, this.targetRotation, Time.deltaTime * 10f);
             this.Yandere.MoveTowardsTarget(this.Chair.transform.position);
         }
         else if (!this.MoveAway)
         {
             this.Yandere.Character.GetComponent <Animation>().CrossFade(this.Yandere.IdleAnim);
             this.Yandere.Inventory.ModifiedUniform    = true;
             this.StudentManager.Students[7].TaskPhase = 5;
             TaskGlobals.SetTaskStatus(7, 2);
             UnityEngine.Object.Destroy(this.Uniform.gameObject);
             this.MoveAway = true;
         }
         else
         {
             this.Yandere.MoveTowardsTarget(this.Chair.gameObject.transform.position + new Vector3(-0.5f, 0f, 0f));
             if (this.Timer > 6f)
             {
                 this.Yandere.MyController.radius = 0.2f;
                 this.Yandere.CanMove             = true;
                 this.Chair.enabled = true;
                 base.enabled       = false;
                 this.Sewing        = false;
                 this.Prompt.Hide();
                 this.Prompt.enabled = false;
             }
         }
     }
 }
Beispiel #15
0
    // Token: 0x06000225 RID: 549 RVA: 0x0002D9A0 File Offset: 0x0002BDA0
    public void HideShadows()
    {
        this.TaskIcon.spriteName   = ((!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID)) ? "Task" : "Heart");
        this.Impatience.fillAmount = 0f;
        for (int i = 1; i < 7; i++)
        {
            UISprite uisprite = this.Shadow[i];
            uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0f);
        }
        for (int j = 1; j < 5; j++)
        {
            UISprite uisprite2 = this.FavorShadow[j];
            uisprite2.color = new Color(uisprite2.color.r, uisprite2.color.g, uisprite2.color.b, 0f);
        }
        for (int k = 1; k < 7; k++)
        {
            UISprite uisprite3 = this.ClubShadow[k];
            uisprite3.color = new Color(uisprite3.color.r, uisprite3.color.g, uisprite3.color.b, 0f);
        }
        for (int l = 1; l < 5; l++)
        {
            UISprite uisprite4 = this.LoveShadow[l];
            uisprite4.color = new Color(uisprite4.color.r, uisprite4.color.g, uisprite4.color.b, 0f);
        }
        if (!this.Yandere.TargetStudent.Witness || this.Yandere.TargetStudent.Forgave || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite5 = this.Shadow[1];
            uisprite5.color = new Color(uisprite5.color.r, uisprite5.color.g, uisprite5.color.b, 0.75f);
        }
        if (this.Yandere.TargetStudent.Complimented || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite6 = this.Shadow[2];
            uisprite6.color = new Color(uisprite6.color.r, uisprite6.color.g, uisprite6.color.b, 0.75f);
        }
        if (this.Yandere.TargetStudent.Gossiped || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite7 = this.Shadow[3];
            uisprite7.color = new Color(uisprite7.color.r, uisprite7.color.g, uisprite7.color.b, 0.75f);
        }
        if (this.Yandere.Bloodiness > 0f || this.Yandere.Sanity < 33.33333f || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite8 = this.Shadow[3];
            uisprite8.color = new Color(uisprite8.color.r, uisprite8.color.g, uisprite8.color.b, 0.75f);
            UISprite uisprite9 = this.Shadow[5];
            uisprite9.color = new Color(uisprite9.color.r, uisprite9.color.g, uisprite9.color.b, 0.75f);
            UISprite uisprite10 = this.Shadow[6];
            uisprite10.color = new Color(uisprite10.color.r, uisprite10.color.g, uisprite10.color.b, 0.75f);
        }
        else if (this.Reputation.Reputation < -33.33333f)
        {
            UISprite uisprite11 = this.Shadow[3];
            uisprite11.color = new Color(uisprite11.color.r, uisprite11.color.g, uisprite11.color.b, 0.75f);
        }
        if (!this.Yandere.TargetStudent.Indoors || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite12 = this.Shadow[5];
            uisprite12.color = new Color(uisprite12.color.r, uisprite12.color.g, uisprite12.color.b, 0.75f);
        }
        else if (!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID))
        {
            if (this.Yandere.TargetStudent.StudentID != 6 && this.Yandere.TargetStudent.StudentID != 7 && this.Yandere.TargetStudent.StudentID != 13 && this.Yandere.TargetStudent.StudentID != 14 && this.Yandere.TargetStudent.StudentID != 15 && this.Yandere.TargetStudent.StudentID != 32 && this.Yandere.TargetStudent.StudentID != 33)
            {
                UISprite uisprite13 = this.Shadow[5];
                uisprite13.color = new Color(uisprite13.color.r, uisprite13.color.g, uisprite13.color.b, 0.75f);
            }
            else
            {
                if (this.Yandere.TargetStudent.TaskPhase > 0 && this.Yandere.TargetStudent.TaskPhase < 5)
                {
                    UISprite uisprite14 = this.Shadow[5];
                    uisprite14.color = new Color(uisprite14.color.r, uisprite14.color.g, uisprite14.color.b, 0.75f);
                }
                if (this.Yandere.TargetStudent.StudentID == 32)
                {
                    if (this.Clock.Period != 3 || this.Yandere.TargetStudent.DistanceToDestination > 1f)
                    {
                        UISprite uisprite15 = this.Shadow[5];
                        uisprite15.color = new Color(uisprite15.color.r, uisprite15.color.g, uisprite15.color.b, 0.75f);
                    }
                    else if (TaskGlobals.GetTaskStatus(32) == 1 && this.Yandere.Inventory.Cigs)
                    {
                        UISprite uisprite16 = this.Shadow[5];
                        uisprite16.color = new Color(uisprite16.color.r, uisprite16.color.g, uisprite16.color.b, 0f);
                    }
                }
            }
        }
        else if (this.Yandere.TargetStudent.StudentID != 7 && this.Yandere.TargetStudent.StudentID != 13)
        {
            UISprite uisprite17 = this.Shadow[5];
            uisprite17.color = new Color(uisprite17.color.r, uisprite17.color.g, uisprite17.color.b, 0.75f);
        }
        else if (!this.Yandere.TargetStudent.Male && this.LoveManager.SuitorProgress == 0)
        {
            UISprite uisprite18 = this.Shadow[5];
            uisprite18.color = new Color(uisprite18.color.r, uisprite18.color.g, uisprite18.color.b, 0.75f);
        }
        if (!this.Yandere.TargetStudent.Indoors || this.Yandere.TargetStudent.Club == ClubType.Council)
        {
            UISprite uisprite19 = this.Shadow[6];
            uisprite19.color = new Color(uisprite19.color.r, uisprite19.color.g, uisprite19.color.b, 0.75f);
        }
        else
        {
            if (!PlayerGlobals.GetStudentFriend(this.Yandere.TargetStudent.StudentID))
            {
                UISprite uisprite20 = this.Shadow[6];
                uisprite20.color = new Color(uisprite20.color.r, uisprite20.color.g, uisprite20.color.b, 0.75f);
            }
            if ((this.Yandere.TargetStudent.Male && PlayerGlobals.Seduction + PlayerGlobals.SeductionBonus > 3) || PlayerGlobals.Seduction + PlayerGlobals.SeductionBonus > 4)
            {
                UISprite uisprite21 = this.Shadow[6];
                uisprite21.color = new Color(uisprite21.color.r, uisprite21.color.g, uisprite21.color.b, 0f);
            }
        }
        if (ClubGlobals.Club == this.Yandere.TargetStudent.Club)
        {
            UISprite uisprite22 = this.ClubShadow[1];
            uisprite22.color = new Color(uisprite22.color.r, uisprite22.color.g, uisprite22.color.b, 0.75f);
            UISprite uisprite23 = this.ClubShadow[2];
            uisprite23.color = new Color(uisprite23.color.r, uisprite23.color.g, uisprite23.color.b, 0.75f);
        }
        if (this.Yandere.ClubAttire || this.Yandere.Mask != null || this.Yandere.Gloves != null || this.Yandere.Container != null)
        {
            UISprite uisprite24 = this.ClubShadow[3];
            uisprite24.color = new Color(uisprite24.color.r, uisprite24.color.g, uisprite24.color.b, 0.75f);
        }
        if (ClubGlobals.Club != this.Yandere.TargetStudent.Club)
        {
            UISprite uisprite25 = this.ClubShadow[2];
            uisprite25.color = new Color(uisprite25.color.r, uisprite25.color.g, uisprite25.color.b, 0f);
            UISprite uisprite26 = this.ClubShadow[3];
            uisprite26.color = new Color(uisprite26.color.r, uisprite26.color.g, uisprite26.color.b, 0.75f);
            UISprite uisprite27 = this.ClubShadow[5];
            uisprite27.color = new Color(uisprite27.color.r, uisprite27.color.g, uisprite27.color.b, 0.75f);
        }
        UISprite uisprite28 = this.ClubShadow[6];

        uisprite28.color = new Color(uisprite28.color.r, uisprite28.color.g, uisprite28.color.b, 0.75f);
        if (this.Yandere.Followers > 0)
        {
            UISprite uisprite29 = this.FavorShadow[1];
            uisprite29.color = new Color(uisprite29.color.r, uisprite29.color.g, uisprite29.color.b, 0.75f);
        }
        if (this.Yandere.TargetStudent.DistanceToDestination > 0.5f)
        {
            UISprite uisprite30 = this.FavorShadow[2];
            uisprite30.color = new Color(uisprite30.color.r, uisprite30.color.g, uisprite30.color.b, 0.75f);
        }
        if (!this.Yandere.TargetStudent.Male)
        {
            UISprite uisprite31 = this.LoveShadow[1];
            uisprite31.color = new Color(uisprite31.color.r, uisprite31.color.g, uisprite31.color.b, 0.75f);
        }
        if (this.DatingMinigame == null || !this.Yandere.Inventory.Headset || (this.Yandere.TargetStudent.Male && !this.LoveManager.RivalWaiting) || this.LoveManager.Courted)
        {
            UISprite uisprite32 = this.LoveShadow[2];
            uisprite32.color = new Color(uisprite32.color.r, uisprite32.color.g, uisprite32.color.b, 0.75f);
        }
        if (!this.Yandere.TargetStudent.Male || !this.Yandere.Inventory.Rose || this.Yandere.TargetStudent.Rose)
        {
            UISprite uisprite33 = this.LoveShadow[4];
            uisprite33.color = new Color(uisprite33.color.r, uisprite33.color.g, uisprite33.color.b, 0.75f);
        }
    }
Beispiel #16
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);
     }
 }
 // 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);
 }