Beispiel #1
0
        private static Buff CreateBuff(ulong id, string name, string tech, int value, int countdown)
        {
            var newBuff = new Buff()
            {
                ID        = id,
                Name      = name,
                Tech      = tech,
                Value     = value,
                Countdown = countdown
            };

            buffs.Add(newBuff);
            MainStorage.ChangeData("LatestBuffId", id);
            SaveBuffs();
            return(newBuff);
        }
Beispiel #2
0
        private static Quiz CreateQuiz(ulong id, string type, string imageUrl, string fullImage, string diff, string correct)
        {
            var newQuiz = new Quiz()
            {
                ID          = id,
                Type        = type,
                Difficulty  = diff,
                URL         = imageUrl,
                RightAnswer = correct,
                FullImage   = fullImage,
                Drop        = new List <Item>(),
                Hints       = new List <string>()
            };

            quizzes.Add(newQuiz);
            MainStorage.ChangeData("LatestQuizId", id);
            SaveQuizzes();
            return(newQuiz);
        }
Beispiel #3
0
        private static Item CreateItem(ulong id, string name, string type, bool active, int value, string rarity,
                                       int countdown, string description)
        {
            var newItem = new Item()
            {
                ID          = id,
                Name        = name,
                Type        = type,
                Active      = active,
                Value       = value,
                Rarity      = rarity,
                Buffs       = new List <Buff>(),
                Debuffs     = new List <Debuff>(),
                Description = description,
                Countdown   = countdown
            };

            items.Add(newItem);
            MainStorage.ChangeData("LatestItemId", id);
            SaveItems();
            return(newItem);
        }