Ejemplo n.º 1
0
        public static int[] GetRandomItemList(GameVersion game)
        {
            if (GameVersion.XY.Contains(game))
            {
                return(Items_HeldXY.Concat(Items_Ball).Where(i => i != 0).ToArray());
            }

            if (GameVersion.ORAS.Contains(game) || game == GameVersion.ORASDEMO)
            {
                return(Items_HeldAO.Concat(Items_Ball).Where(i => i != 0).ToArray());
            }

            if (GameVersion.SM.Contains(game) || GameVersion.USUM.Contains(game))
            {
                return(HeldItemsBuy_SM.Select(i => (int)i).Concat(Items_Ball).Where(i => i != 0).ToArray());
            }

            if (GameVersion.GG.Contains(game))
            {
                return(HeldItems_GG.Select(i => (int)i).Where(i => i != 0).ToArray());
            }

            if (GameVersion.SWSH.Contains(game))
            {
                return(HeldItems_SWSH.Select(i => (int)i).Where(i => i != 0).ToArray());
            }

            return(new int[1]);
        }
Ejemplo n.º 2
0
 internal static int[] getRandomItemList()
 {
     if (Main.Config.ORAS)
         return Items_HeldAO.Concat(Items_Ball).Where(i => i != 0).ToArray();
     if (Main.Config.XY)
         return Items_HeldXY.Concat(Items_Ball).Where(i => i != 0).ToArray();
     if (Main.Config.SM)
         return HeldItemsBuy_SM.Select(i => (int)i).Concat(Items_Ball).Where(i => i != 0).ToArray();
     return new int[0];
 }
Ejemplo n.º 3
0
 internal static int[] getRandomItemList()
 {
     if (Main.Config.ORAS)
     {
         return(Items_HeldAO.Concat(Items_Ball).Where(i => i != 0).ToArray());
     }
     if (Main.Config.XY)
     {
         return(Items_HeldXY.Concat(Items_Ball).Where(i => i != 0).ToArray());
     }
     if (Main.Config.SM)
     {
         return(HeldItemsBuy_SM.Select(i => (int)i).Concat(Items_Ball).Where(i => i != 0).ToArray());
     }
     return(new int[0]);
 }