// Make a copy of item public Item(Item other) { Id = other.Id; InventoryTab = other.InventoryTab; ItemSlot = other.ItemSlot; GemSlot = other.GemSlot; Rarity = other.Rarity; StackLimit = other.StackLimit; EnableBreak = other.EnableBreak; IsTwoHand = other.IsTwoHand; IsDress = other.IsDress; IsTemplate = other.IsTemplate; PlayCount = other.PlayCount; FileName = other.FileName; Content = other.Content; FunctionName = other.FunctionName; FunctionId = other.FunctionId; FunctionDuration = other.FunctionDuration; FunctionFieldId = other.FunctionFieldId; FunctionCapacity = other.FunctionCapacity; FunctionTargetLevel = other.FunctionTargetLevel; Uid = other.Uid; Slot = other.Slot; Amount = other.Amount; CreationTime = other.CreationTime; ExpiryTime = other.ExpiryTime; TimesAttributesChanged = other.TimesAttributesChanged; IsLocked = other.IsLocked; UnlockTime = other.UnlockTime; RemainingGlamorForges = other.RemainingGlamorForges; Enchants = other.Enchants; EnchantExp = other.EnchantExp; CanRepackage = other.CanRepackage; Charges = other.Charges; TransferFlag = other.TransferFlag; RemainingTrades = other.RemainingTrades; PairedCharacterId = other.PairedCharacterId; PairedCharacterName = other.PairedCharacterName; Owner = other.Owner; Color = other.Color; HairD = other.HairD; AppearanceFlag = other.AppearanceFlag; Stats = new ItemStats(other.Stats); }
// Make a copy of item public Item(Item other) { Id = other.Id; InventoryTab = other.InventoryTab; ItemSlot = other.ItemSlot; GemSlot = other.GemSlot; Rarity = other.Rarity; StackLimit = other.StackLimit; EnableBreak = other.EnableBreak; IsTwoHand = other.IsTwoHand; IsDress = other.IsDress; IsTemplate = other.IsTemplate; IsCustomScore = other.IsCustomScore; PlayCount = other.PlayCount; FileName = other.FileName; Content = other.Content; Function = other.Function; AdBalloon = other.AdBalloon; Uid = other.Uid; Slot = other.Slot; Amount = other.Amount; CreationTime = other.CreationTime; ExpiryTime = other.ExpiryTime; TimesAttributesChanged = other.TimesAttributesChanged; IsLocked = other.IsLocked; UnlockTime = other.UnlockTime; RemainingGlamorForges = other.RemainingGlamorForges; GachaDismantleId = other.GachaDismantleId; Enchants = other.Enchants; EnchantExp = other.EnchantExp; CanRepackage = other.CanRepackage; Charges = other.Charges; TransferFlag = other.TransferFlag; RemainingTrades = other.RemainingTrades; PairedCharacterId = other.PairedCharacterId; PairedCharacterName = other.PairedCharacterName; PetSkinBadgeId = other.PetSkinBadgeId; Owner = other.Owner; Color = other.Color; HairData = other.HairData; HatData = other.HatData; Score = new MusicScore(); Stats = new ItemStats(other.Stats); }
public Item(int id) { Id = id; SetMetadataValues(id); IsTemplate = ItemMetadataStorage.GetIsTemplate(id); Level = ItemMetadataStorage.GetLevel(id); ItemSlot = ItemMetadataStorage.GetSlot(id); Rarity = ItemMetadataStorage.GetRarity(id); PlayCount = ItemMetadataStorage.GetPlayCount(id); Color = ItemMetadataStorage.GetEquipColor(id); CreationTime = DateTimeOffset.Now.ToUnixTimeSeconds(); RemainingGlamorForges = ItemExtractionMetadataStorage.GetExtractionCount(id); Slot = -1; Amount = 1; Score = new MusicScore(); Stats = new ItemStats(id, Rarity, ItemSlot, Level); CanRepackage = true; // If false, item becomes untradable Uid = DatabaseManager.AddItem(this); }
public Item(int id) { this.Id = id; this.Uid = GuidGenerator.Long(); this.InventoryTab = ItemMetadataStorage.GetTab(id); this.ItemSlot = ItemMetadataStorage.GetSlot(id); this.GemSlot = ItemMetadataStorage.GetGem(id); this.Rarity = ItemMetadataStorage.GetRarity(id); this.StackLimit = ItemMetadataStorage.GetStackLimit(id); this.IsTwoHand = ItemMetadataStorage.GetIsTwoHand(id); this.IsTemplate = ItemMetadataStorage.GetIsTemplate(id); this.PlayCount = ItemMetadataStorage.GetPlayCount(id); this.RecommendJobs = ItemMetadataStorage.GetRecommendJobs(id); this.Content = ItemMetadataStorage.GetContent(id); this.Slot = -1; this.Amount = 1; this.Stats = new ItemStats(); this.CanRepackage = true; // If false, item becomes untradable }
public Item(int id) { Id = id; Uid = GuidGenerator.Long(); InventoryTab = ItemMetadataStorage.GetTab(id); ItemSlot = ItemMetadataStorage.GetSlot(id); GemSlot = ItemMetadataStorage.GetGem(id); Rarity = ItemMetadataStorage.GetRarity(id); StackLimit = ItemMetadataStorage.GetStackLimit(id); IsTwoHand = ItemMetadataStorage.GetIsTwoHand(id); IsDress = ItemMetadataStorage.GetIsDress(id); IsTemplate = ItemMetadataStorage.GetIsTemplate(id); PlayCount = ItemMetadataStorage.GetPlayCount(id); RecommendJobs = ItemMetadataStorage.GetRecommendJobs(id); Content = ItemMetadataStorage.GetContent(id); Slot = -1; Amount = 1; Stats = new ItemStats(id, Rarity); CanRepackage = true; // If false, item becomes untradable }
public ItemStats(ItemStats other) { BasicStats = new List <ItemStat>(other.BasicStats); BonusStats = new List <ItemStat>(other.BonusStats); GemSockets = new List <GemSocket>(); }