Beispiel #1
0
 public static AdventureQuest[] GenerateNewQuests()
 {
     return(new AdventureQuest[]
     {
         AdventureQuest.Generate(1),
         AdventureQuest.Generate(2),
         AdventureQuest.Generate(3),
         AdventureQuest.Generate(4),
         AdventureQuest.Generate(5),
         AdventureQuest.Generate(6),
     });
 }
Beispiel #2
0
        public override void Register(AdventureQuest quest)
        {
            base.Register(quest);

            this._itemsToRemove = new List <Item>();

            if (this.Data.RequiredItems != null)
            {
                string[] itemsToRemove = this.Data.RequiredItems.Split(',');
                foreach (string toRemove in itemsToRemove)
                {
                    var item = ItemFactory.Create(toRemove);

                    if (item != null)
                    {
                        this._itemsToRemove.Add(item);
                    }
                }
            }
        }
Beispiel #3
0
        public Adventure(string id, Intensity intensity, AdventureQuest quest = null)
        {
            this.quest = quest;
            _id        = id; this.intensity = intensity;

            activityStream = new List <string>();
            switch (intensity)
            {
            case Intensity.Cautious: activityStream.Add(Utils.RandomElement(AutoEncounters.startCautious)); break;

            case Intensity.Daring: activityStream.Add(Utils.RandomElement(AutoEncounters.startDaring)); break;

            case Intensity.Reckless: activityStream.Add(Utils.RandomElement(AutoEncounters.startReckless)); break;

            case Intensity.Deathwish: activityStream.Add(Utils.RandomElement(AutoEncounters.startDeathwish)); break;
            }

            start     = DateTime.UtcNow;
            lastCheck = start;
        }
Beispiel #4
0
 public static async Task StartAdventure(Player player, IMessageChannel chan, Intensity intensity, AdventureQuest quest = null)
 {
     player.Adventure = new Adventure(player._id, intensity, quest);
     await player.Adventure.Display(player, chan, true);
 }