public Hero(int x, int y, int happiness, int experience) { Inventory = new Inventory(); Notepad = new Notepad(); Direction = DirectionType.Down; X = x; Y = y; Happiness = happiness; Experience = experience; ExperienceLevel = 0; }
private void RenderNotepad(Notepad notepad) { Console.Clear(); Console.WriteLine("БЛОКНОТ"); Console.WriteLine("\n--------------------------------------------------------\n"); Console.WriteLine("Диалоги:\n\n"); for (int i = 0; i < notepad.Dilogs.Count; i++) { Console.WriteLine(notepad.Dilogs[i]); } Console.WriteLine("--------------------------------------------------------\n"); Console.WriteLine("Рецепты:"); Console.WriteLine(); for (int i = 0; i < notepad.Recipes.Count; i++) { Console.WriteLine(notepad.Recipes[i].Name + ":"); ShowIngredients(notepad.Recipes[i].Ingredients); Console.WriteLine("(эффект чая: + " + notepad.Recipes[i].ThingEffect + " к счастью, стоимость: " + notepad.Recipes[i].ThingCost + ")"); Console.WriteLine(); } Console.WriteLine("--------------------------------------------------------"); Console.WriteLine("\nЗакрыть(Q)"); }