Example #1
0
        private void Win()
        {
            // Check/Add-to Achievements
            Achievements.AddToDefeatedMonsters(CurrentMonster);
            Hero.IncrementMonsterKills();

            // Fight reward will be called here.
            var GoldWon = Loot.LootGenerator(Hero, CurrentMonster.Difficulty);

            Console.Clear();
            UI.DefaultBoxes.DrawInventory(Hero, UI.Grid.Left);
            UI.Draw.PrintToOutput(new List <string>
            {
                CurrentMonster.Name + " has been defeated! You win the battle!",
                $"Rewards: Gold: {GoldWon}"
            });
            UI.DefaultBoxes.DrawOptions(new List <string>
            {
                "Press any key to continue..."
            }, UI.Grid.Center);
            UI.Draw.UpdateInputCursor();
            Console.ReadLine();
        }