public Item CreateRandomItem() { int itemType = Globals.random.Next(1, 3); //TODO: remove magic number switch (itemType) { case 1: return(_factory.CreatePotion(Globals.potionMaxAmount)); case 2: return(_factory.CreateWeapon(Globals.weaponMaxAmount)); } return(null); }