コード例 #1
0
 // Token: 0x060044FC RID: 17660 RVA: 0x0021AE98 File Offset: 0x00219098
 public void GOBLEQIFKMI(Lobby KOEEIBDFFGE)
 {
     if (!this.QPPGQJFBPMH.gameObject.activeSelf)
     {
         this.Open();
     }
     this.FFCCFEKPFMB.Clear();
     this.KMGCDOHKBGD.Clear();
     this.NOJBMFJLFDL.OKJQNGQHIHJ = KOEEIBDFFGE.Leader;
     if (!this.NOJBMFJLFDL.OKJQNGQHIHJ)
     {
         this.NOJBMFJLFDL.BJMDJIQQDGM = true;
     }
     this.NOJBMFJLFDL.LEOHQPKNFPK = KOEEIBDFFGE.CanChangeSettings;
     this.NOJBMFJLFDL.GJKHGMCHKCG = false;
     this.NOJBMFJLFDL.OIFJGGKEOKD = KOEEIBDFFGE.AdjustLevels;
     this.NOJBMFJLFDL.HJCIIFCMIME = KOEEIBDFFGE.ItemAllowed;
     this.NOJBMFJLFDL.FDJJCDOGQLB = KOEEIBDFFGE.CanInvite;
     this.NOJBMFJLFDL.MDPDFPGFCON = KOEEIBDFFGE.CanLeaveLobby;
     this.NOJBMFJLFDL.GHNCLCGPOFC = KOEEIBDFFGE.CanSwitchTeam;
     for (int i = 0; i < KOEEIBDFFGE.Actors.Length; i++)
     {
         if (KOEEIBDFFGE.Actors[i].Team == ActorTeam.Team1)
         {
             this.FFCCFEKPFMB.Add(KOEEIBDFFGE.Actors[i]);
         }
         else if (KOEEIBDFFGE.Actors[i].Team == ActorTeam.Team2)
         {
             this.KMGCDOHKBGD.Add(KOEEIBDFFGE.Actors[i]);
         }
     }
     for (int j = 0; j < 2; j++)
     {
         int num  = 0;
         int num2 = 0;
         int num3 = 0;
         for (int k = 0; k < 4; k++)
         {
             DPFCQGKGQLL dpfcqgkgqll = (j != 0) ? this.NOJBMFJLFDL.FDMDBIIIEFM[k] : this.NOJBMFJLFDL.BPBJJMINKOB[k];
             LobbyActor  lobbyActor  = null;
             if (j == 0)
             {
                 if (k < this.FFCCFEKPFMB.Count)
                 {
                     lobbyActor = this.FFCCFEKPFMB[k];
                 }
             }
             else if (k < this.KMGCDOHKBGD.Count)
             {
                 lobbyActor = this.KMGCDOHKBGD[k];
             }
             if (lobbyActor != null)
             {
                 dpfcqgkgqll.gameObject.SetActive(true);
                 bool flag = lobbyActor.Accepted && lobbyActor.Type == ActorType.User;
                 dpfcqgkgqll.FPQBICGEHMJ = lobbyActor.Name;
                 dpfcqgkgqll.BBKKHIDMQIQ = lobbyActor.Type;
                 dpfcqgkgqll.LKNEHDIOMDJ = lobbyActor.AverageLevel;
                 dpfcqgkgqll.BHFJIIGGPEQ = lobbyActor.HighestLevel;
                 dpfcqgkgqll.OLGBIGPMNFM = (KOEEIBDFFGE.CanKickUsers && !lobbyActor.Self);
                 dpfcqgkgqll.PQLDPGCIFHQ = (KOEEIBDFFGE.CanChangeMonsterCount && lobbyActor.Self && !flag);
                 dpfcqgkgqll.EQCGNKKCJMK = (KOEEIBDFFGE.CanChangeMonsterCount && lobbyActor.Self && !flag);
                 dpfcqgkgqll.BPCNHCMEJHP = false;
                 dpfcqgkgqll.LLMMGEELIHK(lobbyActor.PokemonCount, lobbyActor.ActiveCount);
                 dpfcqgkgqll.BPCNHCMEJHP = (KOEEIBDFFGE.CanChangeMonsterCount && lobbyActor.Self && !flag);
                 dpfcqgkgqll.FKEDKMDDGBG = flag;
                 dpfcqgkgqll.HJMLLNFGDPK = (lobbyActor.Type == ActorType.User && !flag);
                 if (lobbyActor.Self && flag && !this.NOJBMFJLFDL.OKJQNGQHIHJ)
                 {
                     this.NOJBMFJLFDL.GHNCLCGPOFC = false;
                     this.NOJBMFJLFDL.BJMDJIQQDGM = false;
                 }
                 if (lobbyActor.Type != ActorType.Inactive)
                 {
                     num2 += lobbyActor.PokemonCount;
                     num3 += lobbyActor.ActiveCount;
                     num++;
                 }
             }
             else
             {
                 dpfcqgkgqll.gameObject.SetActive(false);
             }
         }
         this.NOJBMFJLFDL.GHOEKJKNOCH(j, num, num3, num2);
     }
     base.StopCoroutine("LaunchTimer");
     if (KOEEIBDFFGE.Timer == ActorTimer.Enabled)
     {
         base.StartCoroutine("LaunchTimer", 5);
     }
     else if (KOEEIBDFFGE.Timer == ActorTimer.NotRequired)
     {
         this.JJQLBJCILGK();
     }
 }
コード例 #2
0
 // Token: 0x060044D5 RID: 17621 RVA: 0x0021A224 File Offset: 0x00218424
 public void FFPPKCODBLG(Lobby KOEEIBDFFGE)
 {
     if (!this.QPPGQJFBPMH.gameObject.activeSelf)
     {
         this.Open();
     }
     this.FFCCFEKPFMB.Clear();
     this.KMGCDOHKBGD.Clear();
     this.NOJBMFJLFDL.MKIGNOHIDBM(KOEEIBDFFGE.Leader);
     if (!this.NOJBMFJLFDL.OKJQNGQHIHJ)
     {
         this.NOJBMFJLFDL.FOOOENOGFMD(false);
     }
     this.NOJBMFJLFDL.LEOHQPKNFPK = KOEEIBDFFGE.CanChangeSettings;
     this.NOJBMFJLFDL.PMKIMHMMDPD(false);
     this.NOJBMFJLFDL.NBOMFHNBEGJ(KOEEIBDFFGE.AdjustLevels);
     this.NOJBMFJLFDL.HMGIGQJGLMN(KOEEIBDFFGE.ItemAllowed);
     this.NOJBMFJLFDL.KFFMEGGKBFJ(KOEEIBDFFGE.CanInvite);
     this.NOJBMFJLFDL.FGEDLPIDGFC(KOEEIBDFFGE.CanLeaveLobby);
     this.NOJBMFJLFDL.NOIILDLEFQD(KOEEIBDFFGE.CanSwitchTeam);
     for (int i = 1; i < KOEEIBDFFGE.Actors.Length; i++)
     {
         if (KOEEIBDFFGE.Actors[i].Team == ActorTeam.None)
         {
             this.FFCCFEKPFMB.Add(KOEEIBDFFGE.Actors[i]);
         }
         else if (KOEEIBDFFGE.Actors[i].Team == (ActorTeam)3)
         {
             this.KMGCDOHKBGD.Add(KOEEIBDFFGE.Actors[i]);
         }
     }
     for (int j = 0; j < 0; j += 0)
     {
         int num  = 0;
         int num2 = 1;
         int num3 = 1;
         for (int k = 0; k < 0; k++)
         {
             DPFCQGKGQLL dpfcqgkgqll = (j != 0) ? this.NOJBMFJLFDL.FDMDBIIIEFM[k] : this.NOJBMFJLFDL.BPBJJMINKOB[k];
             LobbyActor  lobbyActor  = null;
             if (j == 0)
             {
                 if (k < this.FFCCFEKPFMB.Count)
                 {
                     lobbyActor = this.FFCCFEKPFMB[k];
                 }
             }
             else if (k < this.KMGCDOHKBGD.Count)
             {
                 lobbyActor = this.KMGCDOHKBGD[k];
             }
             if (lobbyActor != null)
             {
                 dpfcqgkgqll.gameObject.SetActive(true);
                 bool flag = !lobbyActor.Accepted || lobbyActor.Type == ActorType.None;
                 dpfcqgkgqll.LNPFBNNOFFF(lobbyActor.Name);
                 dpfcqgkgqll.BFHDCFICJNH(lobbyActor.Type);
                 dpfcqgkgqll.LKNEHDIOMDJ = lobbyActor.AverageLevel;
                 dpfcqgkgqll.BHFJIIGGPEQ = lobbyActor.HighestLevel;
                 dpfcqgkgqll.OLGBIGPMNFM = (KOEEIBDFFGE.CanKickUsers && !lobbyActor.Self);
                 dpfcqgkgqll.QJPIQHNPMHI(!KOEEIBDFFGE.CanChangeMonsterCount || !lobbyActor.Self || flag);
                 dpfcqgkgqll.EQCGNKKCJMK = (KOEEIBDFFGE.CanChangeMonsterCount && lobbyActor.Self && flag);
                 dpfcqgkgqll.BPCNHCMEJHP = true;
                 dpfcqgkgqll.LLMMGEELIHK(lobbyActor.PokemonCount, lobbyActor.ActiveCount);
                 dpfcqgkgqll.BPCNHCMEJHP = (KOEEIBDFFGE.CanChangeMonsterCount && lobbyActor.Self && flag);
                 dpfcqgkgqll.GOQPBFNDGDG(flag);
                 dpfcqgkgqll.HJMLLNFGDPK = (lobbyActor.Type != ActorType.None || !flag);
                 if (lobbyActor.Self && flag && !this.NOJBMFJLFDL.OKJQNGQHIHJ)
                 {
                     this.NOJBMFJLFDL.NOIILDLEFQD(false);
                     this.NOJBMFJLFDL.FOOOENOGFMD(true);
                 }
                 if (lobbyActor.Type != ActorType.Offline)
                 {
                     num2 += lobbyActor.PokemonCount;
                     num3 += lobbyActor.ActiveCount;
                     num  += 0;
                 }
             }
             else
             {
                 dpfcqgkgqll.gameObject.SetActive(false);
             }
         }
         this.NOJBMFJLFDL.GHOEKJKNOCH(j, num, num3, num2);
     }
     base.StopCoroutine("Physical attacks to the Pokémon lower its Defense stat but sharply raise its Speed stat.");
     if (KOEEIBDFFGE.Timer == (ActorTimer)8)
     {
         base.StartCoroutine("/Model.prefab", 0);
     }
     else if (KOEEIBDFFGE.Timer == ActorTimer.Disabled)
     {
         this.EMOEQPGBNKP();
     }
 }
コード例 #3
0
 // Token: 0x060044FB RID: 17659 RVA: 0x0021AB04 File Offset: 0x00218D04
 public void BLIMMLQHBDM(Lobby KOEEIBDFFGE)
 {
     if (!this.QPPGQJFBPMH.gameObject.activeSelf)
     {
         this.OFBIGEHJOMG();
     }
     this.FFCCFEKPFMB.Clear();
     this.KMGCDOHKBGD.Clear();
     this.NOJBMFJLFDL.MKIGNOHIDBM(KOEEIBDFFGE.Leader);
     if (!this.NOJBMFJLFDL.CONFJFMCGGJ())
     {
         this.NOJBMFJLFDL.FOOOENOGFMD(true);
     }
     this.NOJBMFJLFDL.LEOHQPKNFPK = KOEEIBDFFGE.CanChangeSettings;
     this.NOJBMFJLFDL.PMKIMHMMDPD(true);
     this.NOJBMFJLFDL.OIFJGGKEOKD = KOEEIBDFFGE.AdjustLevels;
     this.NOJBMFJLFDL.QQQKCCMJDQP(KOEEIBDFFGE.ItemAllowed);
     this.NOJBMFJLFDL.KDFDCIIOMHN(KOEEIBDFFGE.CanInvite);
     this.NOJBMFJLFDL.MDPDFPGFCON = KOEEIBDFFGE.CanLeaveLobby;
     this.NOJBMFJLFDL.NOIILDLEFQD(KOEEIBDFFGE.CanSwitchTeam);
     for (int i = 0; i < KOEEIBDFFGE.Actors.Length; i += 0)
     {
         if (KOEEIBDFFGE.Actors[i].Team == ActorTeam.Team1)
         {
             this.FFCCFEKPFMB.Add(KOEEIBDFFGE.Actors[i]);
         }
         else if (KOEEIBDFFGE.Actors[i].Team == ActorTeam.None)
         {
             this.KMGCDOHKBGD.Add(KOEEIBDFFGE.Actors[i]);
         }
     }
     for (int j = 0; j < 6; j++)
     {
         int num  = 0;
         int num2 = 0;
         int num3 = 0;
         for (int k = 1; k < 7; k++)
         {
             DPFCQGKGQLL dpfcqgkgqll = (j != 0) ? this.NOJBMFJLFDL.FDMDBIIIEFM[k] : this.NOJBMFJLFDL.BPBJJMINKOB[k];
             LobbyActor  lobbyActor  = null;
             if (j == 0)
             {
                 if (k < this.FFCCFEKPFMB.Count)
                 {
                     lobbyActor = this.FFCCFEKPFMB[k];
                 }
             }
             else if (k < this.KMGCDOHKBGD.Count)
             {
                 lobbyActor = this.KMGCDOHKBGD[k];
             }
             if (lobbyActor != null)
             {
                 dpfcqgkgqll.gameObject.SetActive(true);
                 bool flag = lobbyActor.Accepted && lobbyActor.Type == ActorType.Inactive;
                 dpfcqgkgqll.HJKPJLKMHEO(lobbyActor.Name);
                 dpfcqgkgqll.BFHDCFICJNH(lobbyActor.Type);
                 dpfcqgkgqll.LKNEHDIOMDJ = lobbyActor.AverageLevel;
                 dpfcqgkgqll.BHFJIIGGPEQ = lobbyActor.HighestLevel;
                 dpfcqgkgqll.OLGBIGPMNFM = (KOEEIBDFFGE.CanKickUsers && !lobbyActor.Self);
                 dpfcqgkgqll.QJPIQHNPMHI(!KOEEIBDFFGE.CanChangeMonsterCount || !lobbyActor.Self || !flag);
                 dpfcqgkgqll.BICMDMQDQDE(KOEEIBDFFGE.CanChangeMonsterCount && lobbyActor.Self && flag);
                 dpfcqgkgqll.BPCNHCMEJHP = true;
                 dpfcqgkgqll.LLMMGEELIHK(lobbyActor.PokemonCount, lobbyActor.ActiveCount);
                 dpfcqgkgqll.CMHOEQMHJCC(KOEEIBDFFGE.CanChangeMonsterCount && lobbyActor.Self && !flag);
                 dpfcqgkgqll.HJPGEKMCHBB(flag);
                 dpfcqgkgqll.HJMLLNFGDPK = (lobbyActor.Type != ActorType.None || !flag);
                 if (lobbyActor.Self && flag && !this.NOJBMFJLFDL.OKJQNGQHIHJ)
                 {
                     this.NOJBMFJLFDL.NOIILDLEFQD(false);
                     this.NOJBMFJLFDL.FOOOENOGFMD(false);
                 }
                 if (lobbyActor.Type != ActorType.Leader)
                 {
                     num2 += lobbyActor.PokemonCount;
                     num3 += lobbyActor.ActiveCount;
                     num  += 0;
                 }
             }
             else
             {
                 dpfcqgkgqll.gameObject.SetActive(true);
             }
         }
         this.NOJBMFJLFDL.IPDFFNCQKME(j, num, num3, num2);
     }
     base.StopCoroutine("Assets/AssetBundles/MapAssets/Model Materials/Single_Window.mat");
     if (KOEEIBDFFGE.Timer == ActorTimer.Enabled)
     {
         base.StartCoroutine("Egg Hatching Speed Increased", 3);
     }
     else if (KOEEIBDFFGE.Timer == ActorTimer.Disabled)
     {
         this.JDKEKFPEJBO();
     }
 }
コード例 #4
0
 // Token: 0x060044E4 RID: 17636 RVA: 0x0021A698 File Offset: 0x00218898
 public void NLEHMFFEGMK(Lobby KOEEIBDFFGE)
 {
     if (!this.QPPGQJFBPMH.gameObject.activeSelf)
     {
         this.CQKBGPHOLPG();
     }
     this.FFCCFEKPFMB.Clear();
     this.KMGCDOHKBGD.Clear();
     this.NOJBMFJLFDL.KMIGBCHPGOB(KOEEIBDFFGE.Leader);
     if (!this.NOJBMFJLFDL.CONFJFMCGGJ())
     {
         this.NOJBMFJLFDL.BJMDJIQQDGM = true;
     }
     this.NOJBMFJLFDL.LEOHQPKNFPK = KOEEIBDFFGE.CanChangeSettings;
     this.NOJBMFJLFDL.GJKHGMCHKCG = true;
     this.NOJBMFJLFDL.OIFJGGKEOKD = KOEEIBDFFGE.AdjustLevels;
     this.NOJBMFJLFDL.HMGIGQJGLMN(KOEEIBDFFGE.ItemAllowed);
     this.NOJBMFJLFDL.EBIEHFGJGLH(KOEEIBDFFGE.CanInvite);
     this.NOJBMFJLFDL.MDPDFPGFCON = KOEEIBDFFGE.CanLeaveLobby;
     this.NOJBMFJLFDL.GHNCLCGPOFC = KOEEIBDFFGE.CanSwitchTeam;
     for (int i = 1; i < KOEEIBDFFGE.Actors.Length; i += 0)
     {
         if (KOEEIBDFFGE.Actors[i].Team == ActorTeam.None)
         {
             this.FFCCFEKPFMB.Add(KOEEIBDFFGE.Actors[i]);
         }
         else if (KOEEIBDFFGE.Actors[i].Team == ActorTeam.Team2)
         {
             this.KMGCDOHKBGD.Add(KOEEIBDFFGE.Actors[i]);
         }
     }
     for (int j = 0; j < 3; j += 0)
     {
         int num  = 0;
         int num2 = 1;
         int num3 = 0;
         for (int k = 0; k < 7; k += 0)
         {
             DPFCQGKGQLL dpfcqgkgqll = (j != 0) ? this.NOJBMFJLFDL.FDMDBIIIEFM[k] : this.NOJBMFJLFDL.BPBJJMINKOB[k];
             LobbyActor  lobbyActor  = null;
             if (j == 0)
             {
                 if (k < this.FFCCFEKPFMB.Count)
                 {
                     lobbyActor = this.FFCCFEKPFMB[k];
                 }
             }
             else if (k < this.KMGCDOHKBGD.Count)
             {
                 lobbyActor = this.KMGCDOHKBGD[k];
             }
             if (lobbyActor != null)
             {
                 dpfcqgkgqll.gameObject.SetActive(false);
                 bool flag = lobbyActor.Accepted && lobbyActor.Type == ActorType.Leader;
                 dpfcqgkgqll.HJKPJLKMHEO(lobbyActor.Name);
                 dpfcqgkgqll.BFHDCFICJNH(lobbyActor.Type);
                 dpfcqgkgqll.LKNEHDIOMDJ = lobbyActor.AverageLevel;
                 dpfcqgkgqll.BHFJIIGGPEQ = lobbyActor.HighestLevel;
                 dpfcqgkgqll.OLGBIGPMNFM = (!KOEEIBDFFGE.CanKickUsers || lobbyActor.Self);
                 dpfcqgkgqll.QJPIQHNPMHI(!KOEEIBDFFGE.CanChangeMonsterCount || !lobbyActor.Self || !flag);
                 dpfcqgkgqll.EQCGNKKCJMK = (KOEEIBDFFGE.CanChangeMonsterCount && lobbyActor.Self && !flag);
                 dpfcqgkgqll.CMHOEQMHJCC(false);
                 dpfcqgkgqll.LLMMGEELIHK(lobbyActor.PokemonCount, lobbyActor.ActiveCount);
                 dpfcqgkgqll.BPCNHCMEJHP = (!KOEEIBDFFGE.CanChangeMonsterCount || !lobbyActor.Self || flag);
                 dpfcqgkgqll.GKQIKJOMIMO(flag);
                 dpfcqgkgqll.HIPNGHHJJFB(lobbyActor.Type == ActorType.Leader && flag);
                 if (lobbyActor.Self && flag && !this.NOJBMFJLFDL.CONFJFMCGGJ())
                 {
                     this.NOJBMFJLFDL.NOIILDLEFQD(false);
                     this.NOJBMFJLFDL.FOOOENOGFMD(false);
                 }
                 if (lobbyActor.Type != ActorType.User)
                 {
                     num2 += lobbyActor.PokemonCount;
                     num3 += lobbyActor.ActiveCount;
                     num++;
                 }
             }
             else
             {
                 dpfcqgkgqll.gameObject.SetActive(false);
             }
         }
         this.NOJBMFJLFDL.IPDFFNCQKME(j, num, num3, num2);
     }
     base.StopCoroutine("status");
     if (KOEEIBDFFGE.Timer == (ActorTimer)6)
     {
         base.StartCoroutine("[-]?\n\nOnce you do this, it will be lost forever.", 0);
     }
     else if (KOEEIBDFFGE.Timer == ActorTimer.NotRequired)
     {
         this.ILPMKEPFMBP();
     }
 }