public static ZItemInfo PasteFrom(ZItemInfo info) { ZItemInfo newInfo = new ZItemInfo(info.Type, info.Level, info.Version, info.Date); newInfo.SetDefaultByType(); return(newInfo); }
public static ZItemInfo PasteFrom(int type) { ZItemInfo newInfo = new ZItemInfo(type); if (ItemLoader.GetItem(type) != null && ZItemCollection.ItemCollection.ContainsKey(type)) { newInfo.CopyFrom(ZItemCollection.ItemCollection[type]); } return(newInfo); }
public void CopyFrom(ZItemInfo another, bool itemProperty = true) { Date = another.Date; Level = another.Level; Version = another.Version; if (itemProperty) { Crit = another.Crit; Class = another.Class; Scale = another.Scale; Width = another.Width; Damage = another.Damage; Expert = another.Expert; Height = another.Height; UseTime = another.UseTime; MaxStack = another.MaxStack; KnockBack = another.KnockBack; CanEquipped = another.CanEquipped; } }