Ejemplo n.º 1
0
        // Token: 0x06000030 RID: 48 RVA: 0x00002E64 File Offset: 0x00001064
        public override void RecordKillFor(string name)
        {
            global::PlayerData playerData = global::GameManager.instance.playerData;
            string             boolName   = "killed" + name;
            string             intName    = "kills" + name;
            string             boolName2  = "newData" + name;
            bool flag  = false;
            bool flag2 = !playerData.GetBool(boolName);

            if (flag2)
            {
                flag = true;
                playerData.SetBool(boolName, true);
                playerData.SetBool(boolName2, true);
            }
            bool flag3 = false;
            int  num   = playerData.GetInt(intName);
            bool flag4 = num > 0;

            if (flag4)
            {
                num--;
                playerData.SetInt(intName, num);
                bool flag5 = num <= 0;
                if (flag5)
                {
                    flag3 = true;
                }
            }
            bool @bool = playerData.GetBool("hasJournal");

            if (@bool)
            {
                bool flag6 = false;
                bool flag7 = flag3;
                if (flag7)
                {
                    flag6 = true;
                    playerData.SetInt("journalEntriesCompleted", playerData.GetInt("journalEntriesCompleted") + 1);
                }
                else
                {
                    bool flag8 = flag;
                    if (flag8)
                    {
                        flag6 = true;
                        playerData.SetInt("journalNotesCompleted", playerData.GetInt("journalNotesCompleted") + 1);
                    }
                }
                bool flag9 = flag6;
                if (flag9)
                {
                    this.DisplayJournalUpdate(flag3);
                }
            }
        }
Ejemplo n.º 2
0
        // Token: 0x0600002F RID: 47 RVA: 0x00002E24 File Offset: 0x00001024
        public override int KillsLeft(string name)
        {
            global::PlayerData playerData = global::GameManager.instance.playerData;
            string             intName    = "kills" + name;
            int  num  = playerData.GetInt(intName);
            bool flag = num < 0;

            if (flag)
            {
                num = 0;
            }
            return(num);
        }