コード例 #1
0
ファイル: Item.cs プロジェクト: wevvin/MapleServer2
 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);
     EnableBreak      = ItemMetadataStorage.GetEnableBreak(id);
     IsTwoHand        = ItemMetadataStorage.GetIsTwoHand(id);
     IsDress          = ItemMetadataStorage.GetIsDress(id);
     IsTemplate       = ItemMetadataStorage.GetIsTemplate(id);
     PlayCount        = ItemMetadataStorage.GetPlayCount(id);
     FileName         = ItemMetadataStorage.GetFileName(id);
     SkillId          = ItemMetadataStorage.GetSkillID(id);
     RecommendJobs    = ItemMetadataStorage.GetRecommendJobs(id);
     Content          = ItemMetadataStorage.GetContent(id);
     FunctionName     = ItemMetadataStorage.GetFunctionName(id);
     FunctionId       = ItemMetadataStorage.GetFunctionId(id);
     FunctionDuration = ItemMetadataStorage.GetFunctionDuration(id);
     FunctionFieldId  = ItemMetadataStorage.GetFunctionFieldId(id);
     FunctionCapacity = ItemMetadataStorage.GetFunctionCapacity(id);
     Slot             = -1;
     Amount           = 1;
     Stats            = new ItemStats(id, Rarity);
     CanRepackage     = true; // If false, item becomes untradable
 }