Esempio n. 1
0
        public static void DevolveAll(string path)
        {
            List <int> forms = new();

            forms.AddRange(Enumerable.Repeat(0, Editor.GetCatAmount(path)));

            EvolveCats.SetEvolveForms(path, forms.ToArray());
            Console.WriteLine("Successfully removed evolve forms");
        }
        public static void EvolveCurrent(string path)
        {
            int[]      curr_cats = CatHandler.GetCurrentCats(path);
            List <int> forms     = EvolveCats.GetEvolveForms(path).ToList();
            List <int> max_forms = Enumerable.Repeat(0, 9).ToList();

            max_forms.AddRange(Editor.EvolvedFormsGetter().ToList());
            for (int i = 0; i < curr_cats.Length; i++)
            {
                if (curr_cats[i] == 1 && max_forms[i] == 2)
                {
                    forms[i] = 2;
                }
            }
            EvolveCats.SetEvolveForms(path, forms.ToArray());
            Console.WriteLine("Successfully set evolve forms");
        }
Esempio n. 3
0
        public static void DevolveSpecific(string path)
        {
            List <int> forms = EvolveCats.GetEvolveForms(path).ToList();

            Editor.ColouredText($"&What cats do you want to edit?\nenter the cat release order of the cat:&https://battle-cats.fandom.com/wiki/Cat_Release_Order& {Editor.multipleVals}:\n");
            string[] cats = Console.ReadLine().Split(' ');
            foreach (string cat in cats)
            {
                int cat_id = int.Parse(cat);
                if (cat_id > forms.Count)
                {
                    Console.WriteLine($"Error, cat {cat_id} doesn't exist in your current game version");
                    continue;
                }
                forms[cat_id] = 0;
            }
            EvolveCats.SetEvolveForms(path, forms.ToArray());
            Console.WriteLine("Successfully removed evolve forms");
        }