Пример #1
0
 public AlchemyRecipe(string recipeName, int recipeID, GameItems craftingItem)
 {
     RecipeName      = recipeName;
     RecipeID        = recipeID;
     CraftingItem    = craftingItem;
     RequiredToCraft = new Dictionary <GameItems, int>();
 }
Пример #2
0
        public static GameItems CreateGameItem(int itemID)
        {
            GameItems standardItem = standardGameItems.FirstOrDefault(item => item.ID == itemID);

            if (standardItem != null)
            {
                return(standardItem.Clone());
            }

            return(null);
        }
Пример #3
0
        internal void AddQuest(string name, int id, string description, string startMessage, string inProgressMessage, string completeMessage, Items.GameItems requiredItems, int requiredCount, int rewardEXP, int rewardGold)
        {
            Quest quest = new Quest
            {
                Name              = name,
                ID                = id,
                Description       = description,
                StartMessage      = startMessage,
                InProgressMessage = inProgressMessage,
                CompleteMessage   = completeMessage,
                RequiredItems     = requiredItems,
                RequiredCount     = requiredCount,
                RewardEXP         = rewardEXP,
                RewardGold        = rewardGold,
                QuestStatus       = Quest.Status.Available,
            };

            allQuests.Add(quest);
        }