private void CreateGoblin(Map CurrentMap) { BaseNPC goblin = new Goblin(1, 1); Enemies.Add(goblin); goblin.SetPosition(CurrentMap.RandomPointInRandomRoom()); goblin.LoadContent(); goblin.Died += RaiseEnemyDied; if (RandomGenerator.IntBetween(1, 2) == 1) { int result = RandomGenerator.IntBetween(1, 3); // could use a factory class switch (result) { case 1: goblin.Loot = new BaseWeapon(BaseWeapon.WeaponType.Sword); break; case 2: goblin.Loot = new BaseWeapon(BaseWeapon.WeaponType.Shiv); break; case 3: goblin.Loot = new Potion(RandomGenerator.IntBetween(2, 5)); break; } } }