PageRenderTime 75ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/m/Mendeleev/PT/Elements/EquipSets/PTEmbedElemEquipSets.lua

https://gitlab.com/kidaa/vanilla-wow-addons
Lua | 192 lines | 101 code | 36 blank | 55 comment | 1 complexity | 2efa5cbe5485d5667ab456207ac12c68 MD5 | raw file
  1. local setname, coremajor = "Equipment Sets", "1"
  2. local vmajor, vminor = "Equipment Sets 1", tonumber(string.sub("$Revision: 666 $", 12, -3))
  3. -- Check to see if an update is needed
  4. -- if not then just return out now before we do anything
  5. if not TekLibStub or not PeriodicTableEmbed or not PeriodicTableEmbed:NeedsUpgraded(vmajor, vminor) then return end
  6. local mem = gcinfo()
  7. local t = {
  8. -----------------------------
  9. -- Instance Sets --
  10. -----------------------------
  11. ironweavebattlesuit = "22301 22302 22303 22304 22305 22306 22311 22313", -- iLVL 61 (Misc level 60 instances)
  12. thepostmaster = "13388 13389 13390 13391 13392", -- iLVL 61 (Stratholme - Postmaster Malown)
  13. deathboneguardian = "14620 14621 14622 14623 14624", -- iLVL 61 (Scholomance)
  14. cadaverousgarb = "14636 14637 14638 14640 14641", -- iLVL 61 (Scholomance)
  15. necropileraiment = "14626 14629 14631 14632 14633", -- iLVL 61 (Scholomance)
  16. bloodmailregalia = "14611 14612 14614 14615 14616", -- iLVL 61 (Scholomance)
  17. thegladiator = "11726 11728 11729 11730 11731", -- iLVL 57 (Blackrock Depths)
  18. chainofthescarletcrusade = "10328 10329 10330 10331 10332 10333", -- iLVL 38 (Scarlet Monestary)
  19. embraceoftheviper = "6473 10410 10411 10412 10413", -- iLVL 21 (Wailing Caverns)
  20. defiasleather = "10399 10400 10401 10402 10403", -- iLVL 20 (Deadmines)
  21. -------------------------
  22. -- Dungeon 1 --
  23. -- iLVL 59 --
  24. -------------------------
  25. dungeon1 = {"lightforgearmor", "wildheartraiment", "shadowcraftarmor", "magistersregalia", "battlegearofvalor", "vestmentsofthedevout", "dreadmistraiment", "theelements", "beaststalkerarmor"},
  26. theelements = "16666 16667 16668 16669 16670 16671 16672 16673", -- Shaman
  27. beaststalkerarmor = "16674 16675 16676 16677 16678 16679 16680 16681", -- Hunter
  28. magistersregalia = "16682 16683 16684 16685 16686 16687 16688 16689", -- Mage
  29. vestmentsofthedevout = "16690 16691 16692 16693 16694 16695 16696 16697", -- Priest
  30. dreadmistraiment = "16698 16699 16700 16701 16702 16703 16704 16705", -- Warlock
  31. wildheartraiment = "16706 16714 16715 16716 16717 16718 16719 16720", -- Druid
  32. shadowcraftarmor = "16707 16708 16709 16710 16711 16712 16713 16721", -- Rogue
  33. lightforgearmor = "16722 16723 16724 16725 16726 16727 16728 16729", -- Paladin
  34. battlegearofvalor = "16730 16731 16732 16733 16734 16735 13736 16737", -- Warrior
  35. -------------------------
  36. -- Dungeon 2 --
  37. -- iLVL 62 --
  38. -------------------------
  39. dungeon2 = {"battlegearofheroism", "darkmantlearmor", "beastmasterarmor", "sorcerersregalia", "deathmistraiment", "vestmentsofthevirtuous", "soulforgearmor", "thefivethunders", "feralheartraiment"},
  40. battlegearofheroism = "21994 21995 21996 21997 21998 21999 22000 22001", -- Warrior
  41. darkmantlearmor = "22002 22003 22004 22005 22006 22007 22008 22009", -- Rogue
  42. beastmasterarmor = "22010 22011 22013 22015 22016 22017 22060 22061", -- Hunter
  43. sorcerersregalia = "22062 22063 22064 22065 22066 22067 22068 22069", -- Mage
  44. deathmistraiment = "22070 22071 22072 22073 22074 22075 22076 22077", -- Warlock
  45. vestmentsofthevirtuous = "22078 22079 22080 22081 22082 22083 22084 22085", -- Priest
  46. soulforgearmor = "22086 22087 22088 22089 22090 22091 22092 22093", -- Paladin
  47. thefivethunders = "22095 22096 22097 22098 22099 22100 22101 22102", -- Shaman
  48. feralheartraiment = "22106 22107 22108 22109 22110 22111 22112 22113", -- Druid
  49. ------------------------------
  50. -- Zandalar Tribe --
  51. -- Zul'Gurub --
  52. -- iLVL 66 --
  53. ------------------------------
  54. zandalartribesets = {"illusionistsattire", "augursregalia", "freethinkersarmor", "predatorsarmor", "haruspexsgarb", "confessorsraiment", "vindicatorsbattlegear", "madcapsoutfit", "demoniacsthreads"},
  55. augursregalia = "19609 19956 19830 19829 19828", -- Shaman
  56. freethinkersarmor = "19952 19588 19825 19826 19827", -- Paladin
  57. confessorsraiment = "19594 19958 19843 19841 19842", -- Priest
  58. demoniacsthreads = "19605 19957 19848 20033 19849", -- Warlock
  59. madcapsoutfit = "19617 19954 19836 19834 19835", -- Rogue
  60. haruspexsgarb = "19613 19955 19840 19838 19839", -- Druid
  61. predatorsarmor = "19621 19953 19833 19831 19832", -- Hunter
  62. vindicatorsbattlegear = "19951 19577 19824 19822 19823", -- Warrior
  63. illusionistsattire = "20034 19601 19959 19846 19845", -- Mage
  64. ---------------------------
  65. -- Tier 1 Raid --
  66. -- Molten Core --
  67. -- iLVL 66 --
  68. ---------------------------
  69. tier1raid = {"vestmentsofprophecy", "nightslayerarmor", "theearthfury", "battlegearofmight", "lawbringerarmor", "cenarionraiment", "giantstalkerarmor", "arcanistregalia", "felheartraiment"},
  70. arcanistregalia = "16795 16796 16797 16798 16799 16800 16801 16802", -- Mage
  71. felheartraiment = "16803 16804 16805 16806 16807 16808 16809 16810", -- Warlock
  72. cenarionraiment = "16828 16829 16830 16831 16833 16834 16835 16836", -- Druid
  73. theearthfury = "16837 16838 16839 16840 16841 16842 16843 16844", -- Shaman
  74. giantstalkerarmor = "16845 16846 16847 16848 16849 16850 16851 16852", -- Hunter
  75. lawbringerarmor = "16853 16854 16855 16856 16857 16858 16859 16860", -- Paladin
  76. vestmentsofprophecy = "16811 16812 16813 16814 16815 16816 16817 16819", -- Priest
  77. nightslayerarmor = "16820 16821 16822 16823 16824 16825 16826 16827", -- Rogue
  78. battlegearofmight = "16861 16862 16863 16864 16865 16866 16867 16868", -- Warrior
  79. ----------------------------
  80. -- Tier 2 Raid --
  81. -- Blackwing Lair --
  82. -- iLVL 76 --
  83. ----------------------------
  84. tier2raid = {"stormrageraiment", "bloodfangarmor", "netherwindregalia", "vestmentsoftrancendance", "nemesisraiment", "dragonstalkerarmor", "thetenstorms", "judgementarmor", "battlregearofwrath"},
  85. stormrageraiment = "16897 16898 16899 16900 16901 16902 16903 16904", -- Druid
  86. bloodfangarmor = "16832 16905 16906 16907 16908 16909 16910 16911", -- Rogue
  87. netherwindregalia = "16818 16912 16913 16914 16915 16916 16917 16918", -- Mage
  88. vestmentsoftrancendance = "16919 16920 16921 16922 16923 16924 16925 16926", -- Priest
  89. nemesisraiment = "16927 16928 16929 16930 16931 16932 16933 16934", -- Warlock
  90. dragonstalkerarmor = "16935 16936 16937 16938 16939 16940 16941 16942", -- Hunter
  91. thetenstorms = "16943 16944 16945 16946 16947 16948 16949 16950", -- Shaman
  92. judgementarmor = "16951 16952 16953 16954 16955 16956 16957 16958", -- Paladin
  93. battlregearofwrath = "16959 16960 16961 16962 16963 16964 16965 16966", -- Warrior
  94. -------------------------------
  95. -- Cenarion Circle --
  96. -- Ahn'Qiraj 20 --
  97. -- iLVL 70 --
  98. -------------------------------
  99. ---------------------------------
  100. -- Brood of Nozdormu --
  101. -- Ahn'Qiraj 20 --
  102. -- iLVL 81 --
  103. ---------------------------------
  104. ----------------------------
  105. -- Crafted Sets --
  106. ----------------------------
  107. blackdragonmail = "16984 15050 15052 15051", -- iLVL 60
  108. thedarksoul = "19693 19694 19695", -- iLVL 65
  109. bloodtigerharness = "19689 19688", -- iLVL 65
  110. primalbatskin = "19685 19687 19686", -- iLVL 65
  111. bloodsoulembrace = "19690 19691 19692", -- iLVL 65
  112. bloodvinegarb = "19682 19683 19684", -- iLVL 65
  113. devilsaurarmor = "15062 15063", -- iLVL 59
  114. bluedragonmail = "15048 20295 15049", -- iLVL 58
  115. stormshroudarmor = "15056 15057 15058 21278", -- iLVL 58
  116. imperialplate = "12422 12424 12425 12426 12427 12428 12429", -- iLVL 57
  117. volcanicarmor = "15053 15054 15055", -- iLVL 57
  118. ironfeatherarmor = "15066 15067", -- iLVL 56
  119. greendragonmail = "15045 15046 20296", --iLVL 54
  120. ---------------------------
  121. -- Weapon Sets --
  122. ---------------------------
  123. thetwinbladesofhakkari = "19865 19866", -- iLVL 67
  124. spiritofeskhandar = "18202 18203 18204 18205", -- iLVL 67
  125. primalblessing = "19896 19910", -- iLVL 65
  126. dalrendsarms = "12940 12939", -- iLVL 63
  127. spiderskiss = "13218 13183", -- iLVL 60
  128. -------------------------
  129. -- Ring Sets --
  130. -------------------------
  131. prayeroftheprimal = "19863 19920", -- iLVL 69
  132. zanzilsconcentration = "19905 19893", -- iLVL 69
  133. overlordsresolution = "19873 19912", -- iLVL 69
  134. majormojoinfusion = "19898 19925", -- iLVL 69
  135. -------------------------
  136. -- Misc sets --
  137. -------------------------
  138. shardofthegods = "17082 17064", -- iLVL 72 (Trinkets)
  139. twilighttrappings = "20406 20407 20408", -- iLVL 60 (not like that matters)
  140. }
  141. local lib = {}
  142. -- Return the library's current version
  143. function lib:GetLibraryVersion()
  144. return vmajor, vminor
  145. end
  146. -- Activate a new instance of this library
  147. function lib:LibActivate(stub, oldLib, oldList)
  148. self.dataset = t
  149. t = nil
  150. PeriodicTableEmbed:GetInstance(coremajor):AddModule(setname, self.dataset, self.memuse)
  151. end
  152. lib.memuse = gcinfo() - mem
  153. --------------------------------
  154. -- Load this bitch! --
  155. --------------------------------
  156. PeriodicTableEmbed:Register(lib)