Exemple #1
0
		/// <summary>
		/// New item based on existing item.
		/// </summary>
		/// <param name="baseItem"></param>
		public Item(Item baseItem)
		{
			this.Info = baseItem.Info;
			this.OptionInfo = baseItem.OptionInfo;
			this.Data = baseItem.Data;
			this.MetaData1 = new MabiDictionary(baseItem.MetaData1.ToString());
			this.MetaData2 = new MabiDictionary(baseItem.MetaData2.ToString());
			this.EgoInfo = baseItem.EgoInfo.Copy();
			this.AddUpgradeEffect(baseItem.GetUpgradeEffects());

			if (baseItem.Quest != null)
			{
				this.Quest = new Quest(baseItem.Quest.Id);
				this.Quest.QuestItem = this;
			}

			this.SetNewEntityId();
		}
Exemple #2
0
		/// <summary>
		/// New item based on existing item.
		/// </summary>
		/// <param name="baseItem"></param>
		public Item(Item baseItem)
		{
			this.Info = baseItem.Info;
			this.OptionInfo = baseItem.OptionInfo;
			this.Data = baseItem.Data;
			this.MetaData1 = new MabiDictionary(baseItem.MetaData1.ToString());
			this.MetaData2 = new MabiDictionary(baseItem.MetaData2.ToString());
			this.QuestId = baseItem.QuestId;
			this.EgoInfo = baseItem.EgoInfo.Copy();

			this.SetNewEntityId();
		}