Beispiel #1
0
 public Explore()
 {
     this.Drama     = 2;
     this.QuestText = new List <string>()
     {
         "Explore the ", "Getting to know the place might be useful."
     };
     this.Vars = new List <string>()
     {
         ObjectNpcLocation.GenerateLocation()
     };
 }
Beispiel #2
0
 public Escort()
 {
     this.Drama = 9;
     this.Vars  = new List <string>()
     {
         ObjectNpcLocation.GeneratePerson(), ObjectNpcLocation.GenerateLocation()
     };
     this.QuestText = new List <string>()
     {
         "Escort ", Vars[0] + " must reach the "
     };
     this.Relationchange.Add(Vars[0], 1.5);
 }
Beispiel #3
0
        public Damage()
        {
            this.Drama = 6;
            int random = ObjectNpcLocation.random.Next(3);

            switch (random)
            {
            case 0:
                //Item
                this.Vars = new List <string> {
                    ObjectNpcLocation.GenerateObject()
                };
                this.QuestText = new List <string> {
                    "Damage "
                };
                break;

            case 1:
                //Person
                this.Vars = new List <string> {
                    ObjectNpcLocation.GeneratePerson()
                };
                this.QuestText = new List <string> {
                    "Fight "
                };
                this.Relationchange.Add(Vars[0], 0.7);
                break;

            case 2:
                //Location
                this.Vars = new List <string> {
                    ObjectNpcLocation.GenerateLocation()
                };
                this.QuestText = new List <string> {
                    "Vandalize "
                };
                break;
            }
        }
 public void TestLocation()
 {
     Assert.IsTrue("LocationName0" == ObjectNpcLocation.GenerateLocation());
     Assert.IsFalse("LocationName0" == ObjectNpcLocation.GenerateLocation());
     Assert.IsTrue("LocationName2" == ObjectNpcLocation.GenerateLocation());
 }
Beispiel #5
0
        public Steal(int depth, int maxDepth)
        {
            this.Drama = 7;
            int random = ObjectNpcLocation.random.Next(3);

            if (depth == maxDepth)
            {
                random = 2;
            }
            switch (random)
            {
            case 0:
                //Go sneak and steal
                depth++;
                Quest q = new GoTo(depth, maxDepth);
                this.Vars      = new List <string>();
                this.QuestText = new List <string>()
                {
                    q.GenerateQuestText()
                };
                depth++;
                Quest q1 = new Stealth();
                this.QuestText[0] += q1.GenerateQuestText();
                this.updateDrama(q1.Drama);
                Quest take = new Take();
                take.Vars[1] = q1.Vars[0];
                this.QuestText.Add(take.GenerateQuestText());
                this.Relationchange.Add(q1.Vars[0], 0.9);
                this.updateDrama(take.Drama);
                this.updateDrama(q.Drama);
                break;

            case 1:
                //go kill take
                depth++;
                Quest go = new GoTo(depth, maxDepth);
                this.Vars      = new List <string>();
                this.QuestText = new List <string>()
                {
                    go.GenerateQuestText()
                };
                depth++;
                Quest kill = new Kill(depth, maxDepth);
                this.QuestText[0] += kill.GenerateQuestText();
                Quest take1 = new Take();
                take1.Vars[1] = kill.Vars[0];
                this.QuestText.Add(take1.GenerateQuestText());
                this.Relationchange.Add(kill.Vars[0], 0);
                this.updateDrama(go.Drama);
                this.updateDrama(kill.Drama);
                this.updateDrama(take1.Drama);
                break;

            case 2:
                //steal object from location
                this.QuestText = new List <string>()
                {
                    "Steal ", "from "
                };
                this.Vars = new List <string>()
                {
                    ObjectNpcLocation.GenerateObject(), ObjectNpcLocation.GenerateLocation()
                };
                break;
            }
        }