Exemplo n.º 1
0
        public static Area Shop()
        {
            var spawn = new Vector2(288, 256);
            var map = ContentLoader.Shop;
            var inventory = new Inventory();
            inventory.Add(Capture.RottenNet(), 99);
            inventory.Add(Capture.RegularNet(), 99);
            inventory.Add(Capture.GreatNet(), 99);
            inventory.Add(Capture.MasterNet(), 99);

            inventory.Add(Medicine.LeafBandage(), 99);
            inventory.Add(Medicine.MagicStone(), 99);
            inventory.Add(Medicine.NastySpoon(), 99);
            inventory.Add(Medicine.AntiPoison(), 99);
            inventory.Add(Medicine.BucketOfWater(), 99);
            inventory.Add(Medicine.Salt(), 99);
            inventory.Add(Medicine.AirHorn(), 99);
            inventory.Add(Medicine.RoosVicee(), 99);

            var introShopLines = new List<string> { "Hello!\n Do you want to buy something?" };
            var byeShopLines = new List<string> { "Take a look", "Thanks for stopping by" };
            var ShopLady = new Character("HealLady", 0, inventory, introShopLines, byeShopLines, NPCKind.Shop, ContentLoader.HealLady, new Vector2(288, 64));

            ShopLady.AI = new AI(ShopLady, 2);
            ShopLady.Direction = Direction.Down;
            ShopLady.SetLineOfSight(2);

            var introLines = new List<string> { "Hello!\n Do you want to restore your monsters?" };
            var byeLines = new List<string> { "Here you go", "Thanks for stopping by" };
            var healLady = new Character("HealLady", 0, null, introLines, byeLines, NPCKind.Healer, ContentLoader.HealLady, new Vector2(224, 64));

            healLady.AI = new AI(healLady, 2);
            healLady.Direction = Direction.Down;
            healLady.SetLineOfSight(2);

            List<Character> opponents = new List<Character>();
            opponents.Add(healLady);
            opponents.Add(ShopLady);

            return new Area("Shop", Point.Zero, new List<Monster>(), opponents, spawn, map);
        }