static void Main() { var possibleItemDrops = new List<Item> { new Item("Axe", 25, 5), new Item("Shield", 5, 50), new Item("Resilience Potion", 0, 30) }; var character = new Character(possibleItemDrops); var droppedItem = character.DropItem(); Console.WriteLine(droppedItem); }
private static void RunRpgGame(StandardKernel kernel) { var randomNumberProvider = kernel.Get<IRandomNumberProvider>(); var possibleItemDrops = new List<Item> { new Item("Axe", 25, 5), new Item("Shield", 5, 50), new Item("Resilience Potion", 0, 30) }; var character = new Character( possibleItemDrops, randomNumberProvider); var droppedItem = character.DropItem(); Console.WriteLine(droppedItem); }