Esempio n. 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();
		}
Esempio n. 2
0
File: Item.cs Progetto: xKamuna/aura
		/// <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();
		}