Ejemplo n.º 1
0
        static void RunTest(ArkDinosaur dino, float expectedHealth, float expectedStamina, float expectedFood, float expectedWeight)
        {
            //Find dino and get stats
            ArkDinosaurStats stats = dino.GetMaxStats();
            string           label = $"{dino.tamedName} ({dino.dino_entry.screen_name}, {dino.dinosaurId})";

            //Log
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine($"====[ {label} ]====");

            //Check
            RunSingleStatTest(label, "Health", stats.health, expectedHealth);
            RunSingleStatTest(label, "Stamina", stats.stamina, expectedStamina);
            RunSingleStatTest(label, "Food", stats.food, expectedFood);
            RunSingleStatTest(label, "Weight", stats.inventoryWeight, expectedWeight);
        }
Ejemplo n.º 2
0
        static void RunTestNamed(ArkWorld w, string name, string species, float expectedHealth, float expectedStamina, float expectedFood, float expectedWeight)
        {
            //Find
            ArkDinosaur dino = null;

            foreach (ArkDinosaur d in w.dinos)
            {
                if (d.dino_entry == null)
                {
                    continue;
                }
                if (d.dino_entry.screen_name == species && name == d.tamedName)
                {
                    dino = d;
                }
            }
            RunTest(dino, expectedHealth, expectedStamina, expectedFood, expectedWeight);
        }