Пример #1
0
        public int AddCraft(Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message)
        {
            CraftItem craftItem = new CraftItem(typeItem, group, name);

            craftItem.AddRes(typeRes, nameRes, amount, message);
            craftItem.AddSkill(skillToMake, minSkill, maxSkill);

            DoGroup(group, craftItem);
            return(m_CraftItems.Add(craftItem));
        }
Пример #2
0
            public itemTable(int itemID, int groupName, int itemName, double minSkill, double maxSkill, Type typeRes, int nameRes, int amount, int failMessage, string name, Type typeItem)
            {
                ItemID      = itemID;
                GroupName   = groupName;
                ItemName    = itemName;
                MinSkill    = minSkill;
                MaxSkill    = maxSkill;
                TypeRes     = typeRes;
                NameRes     = nameRes;
                Amount      = amount;
                FailMessage = failMessage;
                Name        = name;
                TypeItem    = typeItem;

                CraftItem = new CraftItem(typeItem, groupName, itemName);
                CraftItem.AddRes(typeRes, nameRes, amount, FailMessage);
                CraftItem.AddSkill(SkillName.Blacksmith, minSkill, maxSkill);
            }
Пример #3
0
        public void AddSkill(int index, SkillName skillToMake, double minSkill, double maxSkill)
        {
            CraftItem craftItem = m_CraftItems.GetAt(index);

            craftItem.AddSkill(skillToMake, minSkill, maxSkill);
        }