Пример #1
0
		/// <summary>
		/// Returns new item, enchanted with the given prefix/suffix.
		/// </summary>
		/// <param name="itemId">Id of the item to create.</param>
		/// <param name="prefix">Id of the prefix option set to apply to item, 0 for none.</param>
		/// <param name="suffix">Id of the suffix option set to apply to item, 0 for none.</param>
		/// <returns></returns>
		public static Item CreateEnchanted(int itemId, int prefix = 0, int suffix = 0)
		{
			var item = new Item(itemId);
			item.ApplyPreSuffix(prefix, suffix);

			return item;
		}