Exemplo n.º 1
0
        public void NewWorld(DragonKittySourceData gameData)
        {
            MomCharacter = GrainClusterClient.Universe.AddCharacter(new Character("Mom", 4000)
            {
                MaxAttack = 150, CounterAttackPercent = 20
            }, gameData.DkLocations.PlayersLivingRoom).Result;
            DadCharacter = GrainClusterClient.Universe.AddCharacter(new Character("Dad", 5000)
            {
                MaxAttack = 250, CounterAttackPercent = 30
            }, gameData.DkLocations.PlayersBackyard).Result;
            BlackSmithCharacter = GrainClusterClient.Universe.AddCharacter(new Character("The Black-Smith", 10000)
            {
                MaxAttack = 700, CounterAttackPercent = 40
            }, gameData.DkLocations.BlackSmithShop).Result;

            HealingDroneInPlayersHouse = GrainClusterClient.Universe.AddCharacter(new Character("Drone", 20)
            {
                TurnBehaviors = new List <string>()
                {
                    "TurnBehaviorRandomHeal"
                },
                MaxAttack            = 10,
                CounterAttackPercent = 10,
                MaxHeal = 200
            }, gameData.DkLocations.PlayersLivingRoom).Result;
        }
Exemplo n.º 2
0
 public void NewWorld(DragonKittySourceData gameData)
 {
     Money                  = GrainClusterClient.Universe.AddItem(new Item("dollar")).Result;
     Paper                  = GrainClusterClient.Universe.AddItem(new Item("paper piece")).Result;
     BronzeChunk            = GrainClusterClient.Universe.AddItem(new Item("bronze chunk")).Result;
     BronzeBar              = GrainClusterClient.Universe.AddItem(new Item("bronze bar")).Result;
     PlasticChunk           = GrainClusterClient.Universe.AddItem(new Item("leftover plastic part")).Result;
     PlayersRoomLight       = GrainClusterClient.Universe.AddItem(new RoomLight("White", true, 1)).Result;
     PlayersLivingRoomLight = GrainClusterClient.Universe.AddItem(new RoomLight("White", true, 2)).Result;
     BronzeTalisman         = GrainClusterClient.Universe.AddItem(new BronzeTalisman()).Result;
     Apple                  = GrainClusterClient.Universe.AddItem(new Apple()).Result;
     DadsWallet             = GrainClusterClient.Universe.AddItem(new Wallet(gameData.DkCharacters.DadCharacter, 10000)).Result;
 }
Exemplo n.º 3
0
 public void NewWorld(DragonKittySourceData gameData)
 {
 }
Exemplo n.º 4
0
        public void NewWorld(DragonKittySourceData gameData)
        {
            PlayersRoom = GrainClusterClient.Universe.AddLocation(new Location("Your House (Your Room)", "a messy room that most would run from.",
                                                                               "You are in your room, yet you find nothing of use here, except the paper on your table." +
                                                                               " You feel proud of your knowlege of folding ninja-stars when you see the paper."
                                                                               )).Result;

            PlayersLivingRoom = GrainClusterClient.Universe.AddLocation(new Location("Your House (Living Room)", "a regular room that blends in with anything.",
                                                                                     "You are in the living room of your house, you find nothing of use here, except to throw things. " +
                                                                                     "As you go explore, you find out that most of the plants here are made of plastic. "
                                                                                     )).Result;

            PlayersBackyard = GrainClusterClient.Universe.AddLocation(new Location("Your House (The Backyard)", "a nice area to go to calm down when having a fight.",
                                                                                   "You stand in your backyard, the rushing air and the sound of the birds relaxes you. " +
                                                                                   "This place brings back your knowlege of what you did with your family here."
                                                                                   )).Result;

            BRStreet = GrainClusterClient.Universe.AddLocation(new Location("BR Street", "a dangerous area to go to during the daytime, since the cars are everywhere.",
                                                                            "You stand in the middle of the street you walk on every day, while you are lucky that you haven't been hit by a car." +
                                                                            " The best thing for you do now is to move out of the road."
                                                                            )).Result;

            ESStreet = GrainClusterClient.Universe.AddLocation(new Location("ES Street", "a area so crowded with cars, making it imposible for an accident to happen.",
                                                                            "You stand in the middle of a street less familiar to you, there are stores all over the place." +
                                                                            " But you are also standing in the middle of the road, move fast, there are cars beeping at you."
                                                                            )).Result;

            BlackSmithShop = GrainClusterClient.Universe.AddLocation(new Location("The Black-Smith", "a shop that makes metal for you",
                                                                                  "You stand in the Black-Smith store, you wish you had ice-cream here, because it is very hot."
                                                                                  )).Result;

            AbandonedAlley = GrainClusterClient.Universe.AddLocation(new Location("Abandoned Alley", "a very creepy place.",
                                                                                  "You stand in the alley, you find many broken machine parts here and a bit of human flesh."
                                                                                  )).Result;

            // PlayersLivingRoom <-> PlayersRoom
            GrainClusterClient.Universe.AddPortal(
                new PortalAlwaysOpenRule(PlayersRoom, PlayersLivingRoom, "Through a white door you see"),

                new PortalAlwaysOpenRule(PlayersLivingRoom, PlayersRoom, "Through a white door you see")
                ).Wait();

            // PlayersLivingRoom <-> PlayersBackyard
            GrainClusterClient.Universe.AddPortal(
                new PortalAlwaysOpenRule(PlayersLivingRoom, PlayersBackyard, "Through the screen door you see"),

                new PortalAlwaysOpenRule(PlayersBackyard, PlayersLivingRoom, "Through the screen door you see")
                ).Wait();

            // PlayersLivingRoom <-> BRStreet
            GrainClusterClient.Universe.AddPortal(
                new PortalAlwaysOpenRule(PlayersLivingRoom, BRStreet, "Through the front door you see"),

                new PortalAlwaysOpenRule(BRStreet, PlayersLivingRoom, "Through the door to your house, you see")
                ).Wait();

            // BRStreet <-> ESStreet
            GrainClusterClient.Universe.AddPortal(
                new PortalAlwaysOpenRule(BRStreet, ESStreet, "To the corner of the road you see"),

                new PortalAlwaysOpenRule(ESStreet, BRStreet, "To the corner of the road you see")
                ).Wait();

            GrainClusterClient.Universe.AddPortal(
                new PortalAlwaysOpenRule(ESStreet, BlackSmithShop, "To a side of the road you see"),

                new PortalAlwaysOpenRule(BlackSmithShop, ESStreet, "Out the shop you see")
                ).Wait();
        }