osrs-tools 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -0
  4. package/dist/runescape/model/Item/all/Black2hSword.d.ts +3 -0
  5. package/dist/runescape/model/Item/all/Black2hSword.d.ts.map +1 -0
  6. package/dist/runescape/model/Item/all/Black2hSword.js +21 -0
  7. package/dist/runescape/model/Item/all/BlackChainbody.d.ts +3 -0
  8. package/dist/runescape/model/Item/all/BlackChainbody.d.ts.map +1 -0
  9. package/dist/runescape/model/Item/all/BlackChainbody.js +21 -0
  10. package/dist/runescape/model/Item/all/BlackKiteshield.d.ts +3 -0
  11. package/dist/runescape/model/Item/all/BlackKiteshield.d.ts.map +1 -0
  12. package/dist/runescape/model/Item/all/BlackKiteshield.js +21 -0
  13. package/dist/runescape/model/Item/all/BlackMace.d.ts +3 -0
  14. package/dist/runescape/model/Item/all/BlackMace.d.ts.map +1 -0
  15. package/dist/runescape/model/Item/all/BlackMace.js +21 -0
  16. package/dist/runescape/model/Item/all/BlackMedHelm.d.ts +3 -0
  17. package/dist/runescape/model/Item/all/BlackMedHelm.d.ts.map +1 -0
  18. package/dist/runescape/model/Item/all/BlackMedHelm.js +21 -0
  19. package/dist/runescape/model/Item/all/BlackRobe.d.ts +3 -0
  20. package/dist/runescape/model/Item/all/BlackRobe.d.ts.map +1 -0
  21. package/dist/runescape/model/Item/all/BlackRobe.js +21 -0
  22. package/dist/runescape/model/Item/all/BlackScimitar.d.ts +3 -0
  23. package/dist/runescape/model/Item/all/BlackScimitar.d.ts.map +1 -0
  24. package/dist/runescape/model/Item/all/BlackScimitar.js +21 -0
  25. package/dist/runescape/model/Item/all/BlackSword.d.ts +3 -0
  26. package/dist/runescape/model/Item/all/BlackSword.d.ts.map +1 -0
  27. package/dist/runescape/model/Item/all/BlackSword.js +21 -0
  28. package/dist/runescape/model/Item/all/BlackWarhammer.d.ts +3 -0
  29. package/dist/runescape/model/Item/all/BlackWarhammer.d.ts.map +1 -0
  30. package/dist/runescape/model/Item/all/BlackWarhammer.js +21 -0
  31. package/dist/runescape/model/Item/all/BlueWizardHat.d.ts +3 -0
  32. package/dist/runescape/model/Item/all/BlueWizardHat.d.ts.map +1 -0
  33. package/dist/runescape/model/Item/all/BlueWizardHat.js +21 -0
  34. package/dist/runescape/model/Item/all/BlueWizardRobe.d.ts +3 -0
  35. package/dist/runescape/model/Item/all/BlueWizardRobe.d.ts.map +1 -0
  36. package/dist/runescape/model/Item/all/BlueWizardRobe.js +21 -0
  37. package/dist/runescape/model/Item/all/BronzeArrow.d.ts +3 -0
  38. package/dist/runescape/model/Item/all/BronzeArrow.d.ts.map +1 -0
  39. package/dist/runescape/model/Item/all/BronzeArrow.js +21 -0
  40. package/dist/runescape/model/Item/all/DeathRune.d.ts +3 -0
  41. package/dist/runescape/model/Item/all/DeathRune.d.ts.map +1 -0
  42. package/dist/runescape/model/Item/all/DeathRune.js +21 -0
  43. package/dist/runescape/model/Item/all/DragonLongsword.d.ts +3 -0
  44. package/dist/runescape/model/Item/all/DragonLongsword.d.ts.map +1 -0
  45. package/dist/runescape/model/Item/all/DragonLongsword.js +21 -0
  46. package/dist/runescape/model/Item/all/GreenDHideBody.d.ts +1 -1
  47. package/dist/runescape/model/Item/all/GreenDHideBody.js +7 -7
  48. package/dist/runescape/model/Item/all/GreenDHideChaps.d.ts +3 -0
  49. package/dist/runescape/model/Item/all/GreenDHideChaps.d.ts.map +1 -0
  50. package/dist/runescape/model/Item/all/GreenDHideChaps.js +27 -0
  51. package/dist/runescape/model/Item/all/HardleatherBody.d.ts +3 -0
  52. package/dist/runescape/model/Item/all/HardleatherBody.d.ts.map +1 -0
  53. package/dist/runescape/model/Item/all/HardleatherBody.js +21 -0
  54. package/dist/runescape/model/Item/all/Herring.d.ts +3 -0
  55. package/dist/runescape/model/Item/all/Herring.d.ts.map +1 -0
  56. package/dist/runescape/model/Item/all/Herring.js +21 -0
  57. package/dist/runescape/model/Item/all/IronArrow.d.ts +3 -0
  58. package/dist/runescape/model/Item/all/IronArrow.d.ts.map +1 -0
  59. package/dist/runescape/model/Item/all/IronArrow.js +21 -0
  60. package/dist/runescape/model/Item/all/IronPickaxe.d.ts +3 -0
  61. package/dist/runescape/model/Item/all/IronPickaxe.d.ts.map +1 -0
  62. package/dist/runescape/model/Item/all/IronPickaxe.js +21 -0
  63. package/dist/runescape/model/Item/all/LeatherBody.d.ts +3 -0
  64. package/dist/runescape/model/Item/all/LeatherBody.d.ts.map +1 -0
  65. package/dist/runescape/model/Item/all/LeatherBody.js +21 -0
  66. package/dist/runescape/model/Item/all/LeatherCowl.d.ts +3 -0
  67. package/dist/runescape/model/Item/all/LeatherCowl.d.ts.map +1 -0
  68. package/dist/runescape/model/Item/all/LeatherCowl.js +21 -0
  69. package/dist/runescape/model/Item/all/LeatherVambraces.d.ts +3 -0
  70. package/dist/runescape/model/Item/all/LeatherVambraces.d.ts.map +1 -0
  71. package/dist/runescape/model/Item/all/LeatherVambraces.js +21 -0
  72. package/dist/runescape/model/Item/all/Longbow.d.ts +3 -0
  73. package/dist/runescape/model/Item/all/Longbow.d.ts.map +1 -0
  74. package/dist/runescape/model/Item/all/Longbow.js +21 -0
  75. package/dist/runescape/model/Item/all/OakLongbow.d.ts +3 -0
  76. package/dist/runescape/model/Item/all/OakLongbow.d.ts.map +1 -0
  77. package/dist/runescape/model/Item/all/OakLongbow.js +21 -0
  78. package/dist/runescape/model/Item/all/OakShortbow.d.ts +3 -0
  79. package/dist/runescape/model/Item/all/OakShortbow.d.ts.map +1 -0
  80. package/dist/runescape/model/Item/all/OakShortbow.js +21 -0
  81. package/dist/runescape/model/Item/all/Sardine.d.ts +3 -0
  82. package/dist/runescape/model/Item/all/Sardine.d.ts.map +1 -0
  83. package/dist/runescape/model/Item/all/Sardine.js +21 -0
  84. package/dist/runescape/model/Item/all/Shortbow.d.ts +3 -0
  85. package/dist/runescape/model/Item/all/Shortbow.d.ts.map +1 -0
  86. package/dist/runescape/model/Item/all/Shortbow.js +21 -0
  87. package/dist/runescape/model/Item/all/Shrimps.d.ts +3 -0
  88. package/dist/runescape/model/Item/all/Shrimps.d.ts.map +1 -0
  89. package/dist/runescape/model/Item/all/Shrimps.js +21 -0
  90. package/dist/runescape/model/Item/all/SoulRune.d.ts +3 -0
  91. package/dist/runescape/model/Item/all/SoulRune.d.ts.map +1 -0
  92. package/dist/runescape/model/Item/all/SoulRune.js +21 -0
  93. package/dist/runescape/model/Item/all/StaffOfEarth.d.ts +3 -0
  94. package/dist/runescape/model/Item/all/StaffOfEarth.d.ts.map +1 -0
  95. package/dist/runescape/model/Item/all/StaffOfEarth.js +21 -0
  96. package/dist/runescape/model/Item/all/StaffOfFire.d.ts +3 -0
  97. package/dist/runescape/model/Item/all/StaffOfFire.d.ts.map +1 -0
  98. package/dist/runescape/model/Item/all/StaffOfFire.js +21 -0
  99. package/dist/runescape/model/Item/all/StaffOfWater.d.ts +3 -0
  100. package/dist/runescape/model/Item/all/StaffOfWater.d.ts.map +1 -0
  101. package/dist/runescape/model/Item/all/StaffOfWater.js +21 -0
  102. package/dist/runescape/model/Item/all/SteelAxe.d.ts +3 -0
  103. package/dist/runescape/model/Item/all/SteelAxe.d.ts.map +1 -0
  104. package/dist/runescape/model/Item/all/SteelAxe.js +21 -0
  105. package/dist/runescape/model/Item/all/SteelDagger.d.ts +3 -0
  106. package/dist/runescape/model/Item/all/SteelDagger.d.ts.map +1 -0
  107. package/dist/runescape/model/Item/all/SteelDagger.js +21 -0
  108. package/dist/runescape/model/Item/all/SteelLongsword.d.ts +3 -0
  109. package/dist/runescape/model/Item/all/SteelLongsword.d.ts.map +1 -0
  110. package/dist/runescape/model/Item/all/SteelLongsword.js +21 -0
  111. package/dist/runescape/model/Item/all/SummerPie.d.ts +3 -0
  112. package/dist/runescape/model/Item/all/SummerPie.d.ts.map +1 -0
  113. package/dist/runescape/model/Item/all/SummerPie.js +21 -0
  114. package/dist/runescape/model/Item/all/TunaPotato.d.ts +3 -0
  115. package/dist/runescape/model/Item/all/TunaPotato.d.ts.map +1 -0
  116. package/dist/runescape/model/Item/all/TunaPotato.js +21 -0
  117. package/dist/runescape/model/Item/all/WizardHat.d.ts +3 -0
  118. package/dist/runescape/model/Item/all/WizardHat.d.ts.map +1 -0
  119. package/dist/runescape/model/Item/all/WizardHat.js +21 -0
  120. package/dist/runescape/model/clue/ClueScrollHelper.d.ts +1 -1
  121. package/dist/runescape/model/clue/ClueScrollHelper.d.ts.map +1 -1
  122. package/dist/runescape/model/clue/ClueScrollHelper.js +114 -197
  123. package/dist/runescape/model/clue/ClueScrollRewards.d.ts +17 -40
  124. package/dist/runescape/model/clue/ClueScrollRewards.d.ts.map +1 -1
  125. package/dist/runescape/model/clue/ClueScrollRewards.js +668 -501
  126. package/dist/runescape/model/collection-log/CollectionLog.d.ts +8 -0
  127. package/dist/runescape/model/collection-log/CollectionLog.d.ts.map +1 -0
  128. package/dist/runescape/model/collection-log/CollectionLog.js +124 -0
  129. package/dist/runescape/model/collection-log/CollectionLog.model.d.ts +48 -0
  130. package/dist/runescape/model/collection-log/CollectionLog.model.d.ts.map +1 -0
  131. package/dist/runescape/model/collection-log/CollectionLog.model.js +13 -0
  132. package/dist/runescape/model/collection-log/index.d.ts +4 -0
  133. package/dist/runescape/model/collection-log/index.d.ts.map +1 -0
  134. package/dist/runescape/model/collection-log/index.js +2 -0
  135. package/dist/runescape/model/combat-achievements/CombatAchievement.model.d.ts +37 -0
  136. package/dist/runescape/model/combat-achievements/CombatAchievement.model.d.ts.map +1 -0
  137. package/dist/runescape/model/combat-achievements/CombatAchievement.model.js +17 -0
  138. package/dist/runescape/model/combat-achievements/CombatAchievements.d.ts +8 -0
  139. package/dist/runescape/model/combat-achievements/CombatAchievements.d.ts.map +1 -0
  140. package/dist/runescape/model/combat-achievements/CombatAchievements.js +80 -0
  141. package/dist/runescape/model/combat-achievements/index.d.ts +4 -0
  142. package/dist/runescape/model/combat-achievements/index.d.ts.map +1 -0
  143. package/dist/runescape/model/combat-achievements/index.js +2 -0
  144. package/dist/runescape/model/guilds/HunterGuild.d.ts +18 -0
  145. package/dist/runescape/model/guilds/HunterGuild.d.ts.map +1 -0
  146. package/dist/runescape/model/guilds/HunterGuild.js +65 -0
  147. package/dist/runescape/model/guilds/HunterGuildMaster.d.ts +29 -0
  148. package/dist/runescape/model/guilds/HunterGuildMaster.d.ts.map +1 -0
  149. package/dist/runescape/model/guilds/HunterGuildMaster.js +39 -0
  150. package/dist/runescape/model/guilds/HunterGuildProgress.d.ts +12 -0
  151. package/dist/runescape/model/guilds/HunterGuildProgress.d.ts.map +1 -0
  152. package/dist/runescape/model/guilds/HunterGuildProgress.js +27 -0
  153. package/dist/runescape/model/guilds/HunterRumour.d.ts +23 -0
  154. package/dist/runescape/model/guilds/HunterRumour.d.ts.map +1 -0
  155. package/dist/runescape/model/guilds/HunterRumour.js +43 -0
  156. package/dist/runescape/model/guilds/RumourLocation.d.ts +10 -0
  157. package/dist/runescape/model/guilds/RumourLocation.d.ts.map +1 -0
  158. package/dist/runescape/model/guilds/RumourLocation.js +12 -0
  159. package/dist/runescape/model/guilds/Rumours.d.ts +3 -0
  160. package/dist/runescape/model/guilds/Rumours.d.ts.map +1 -0
  161. package/dist/runescape/model/guilds/Rumours.js +303 -0
  162. package/dist/runescape/model/guilds/hunter/HunterGuild.d.ts +33 -0
  163. package/dist/runescape/model/guilds/hunter/HunterGuild.d.ts.map +1 -0
  164. package/dist/runescape/model/guilds/hunter/HunterGuild.js +107 -0
  165. package/dist/runescape/model/guilds/hunter/HunterGuildMaster.d.ts +52 -0
  166. package/dist/runescape/model/guilds/hunter/HunterGuildMaster.d.ts.map +1 -0
  167. package/dist/runescape/model/guilds/hunter/HunterGuildMaster.js +71 -0
  168. package/dist/runescape/model/guilds/hunter/HunterGuildMasterName.d.ts +21 -0
  169. package/dist/runescape/model/guilds/hunter/HunterGuildMasterName.d.ts.map +1 -0
  170. package/dist/runescape/model/guilds/hunter/HunterGuildMasterName.js +8 -0
  171. package/dist/runescape/model/guilds/hunter/HunterRumour.d.ts +33 -0
  172. package/dist/runescape/model/guilds/hunter/HunterRumour.d.ts.map +1 -0
  173. package/dist/runescape/model/guilds/hunter/HunterRumour.js +52 -0
  174. package/dist/runescape/model/guilds/hunter/RumourLocation.d.ts +48 -0
  175. package/dist/runescape/model/guilds/hunter/RumourLocation.d.ts.map +1 -0
  176. package/dist/runescape/model/guilds/hunter/RumourLocation.js +42 -0
  177. package/dist/runescape/model/guilds/hunter/Rumours.d.ts +11 -0
  178. package/dist/runescape/model/guilds/hunter/Rumours.d.ts.map +1 -0
  179. package/dist/runescape/model/guilds/hunter/Rumours.js +325 -0
  180. package/dist/runescape/model/guilds/hunter/index.d.ts +5 -0
  181. package/dist/runescape/model/guilds/hunter/index.d.ts.map +1 -0
  182. package/dist/runescape/model/guilds/hunter/index.js +4 -0
  183. package/dist/runescape/model/guilds/hunter/types.d.ts +32 -0
  184. package/dist/runescape/model/guilds/hunter/types.d.ts.map +1 -0
  185. package/dist/runescape/model/guilds/hunter/types.js +10 -0
  186. package/dist/runescape/model/guilds/index.d.ts +2 -0
  187. package/dist/runescape/model/guilds/index.d.ts.map +1 -0
  188. package/dist/runescape/model/guilds/index.js +1 -0
  189. package/dist/runescape/model/guilds/types.d.ts +44 -0
  190. package/dist/runescape/model/guilds/types.d.ts.map +1 -0
  191. package/dist/runescape/model/guilds/types.js +21 -0
  192. package/dist/runescape/model/hunter/HunterRumour.d.ts +155 -0
  193. package/dist/runescape/model/hunter/HunterRumour.d.ts.map +1 -0
  194. package/dist/runescape/model/hunter/HunterRumour.js +183 -0
  195. package/dist/runescape/model/hunter/HunterRumours.d.ts +70 -0
  196. package/dist/runescape/model/hunter/HunterRumours.d.ts.map +1 -0
  197. package/dist/runescape/model/hunter/HunterRumours.js +346 -0
  198. package/dist/runescape/model/hunter/index.d.ts +9 -0
  199. package/dist/runescape/model/hunter/index.d.ts.map +1 -0
  200. package/dist/runescape/model/hunter/index.js +9 -0
  201. package/dist/runescape/model/leagues/DemonicPact.d.ts +23 -0
  202. package/dist/runescape/model/leagues/DemonicPact.d.ts.map +1 -0
  203. package/dist/runescape/model/leagues/DemonicPact.js +210 -0
  204. package/dist/runescape/model/leagues/DemonicPact.model.d.ts +103 -0
  205. package/dist/runescape/model/leagues/DemonicPact.model.d.ts.map +1 -0
  206. package/dist/runescape/model/leagues/DemonicPact.model.js +17 -0
  207. package/dist/runescape/model/leagues/DemonicPactClasses.d.ts +539 -0
  208. package/dist/runescape/model/leagues/DemonicPactClasses.d.ts.map +1 -0
  209. package/dist/runescape/model/leagues/DemonicPactClasses.js +1085 -0
  210. package/dist/runescape/model/leagues/DemonicPactPlanningData.d.ts +4 -0
  211. package/dist/runescape/model/leagues/DemonicPactPlanningData.d.ts.map +1 -0
  212. package/dist/runescape/model/leagues/DemonicPactPlanningData.js +174 -0
  213. package/dist/runescape/model/leagues/DemonicPacts.d.ts +4 -0
  214. package/dist/runescape/model/leagues/DemonicPacts.d.ts.map +1 -0
  215. package/dist/runescape/model/leagues/DemonicPacts.js +66 -0
  216. package/dist/runescape/model/leagues/DemonicPactsLeague/DemonicPactsLeagueAreas.d.ts +23 -0
  217. package/dist/runescape/model/leagues/DemonicPactsLeague/DemonicPactsLeagueAreas.d.ts.map +1 -0
  218. package/dist/runescape/model/leagues/DemonicPactsLeague/DemonicPactsLeagueAreas.js +442 -0
  219. package/dist/runescape/model/leagues/LeaguesRegion.model.d.ts +33 -0
  220. package/dist/runescape/model/leagues/LeaguesRegion.model.d.ts.map +1 -0
  221. package/dist/runescape/model/leagues/LeaguesRegion.model.js +14 -0
  222. package/dist/runescape/model/leagues/LeaguesRegions.d.ts +10 -0
  223. package/dist/runescape/model/leagues/LeaguesRegions.d.ts.map +1 -0
  224. package/dist/runescape/model/leagues/LeaguesRegions.js +69 -0
  225. package/dist/runescape/model/leagues/LeaguesRelic.model.d.ts +31 -0
  226. package/dist/runescape/model/leagues/LeaguesRelic.model.d.ts.map +1 -0
  227. package/dist/runescape/model/leagues/LeaguesRelic.model.js +11 -0
  228. package/dist/runescape/model/leagues/LeaguesRelics.d.ts +8 -0
  229. package/dist/runescape/model/leagues/LeaguesRelics.d.ts.map +1 -0
  230. package/dist/runescape/model/leagues/LeaguesRelics.js +237 -0
  231. package/dist/runescape/model/leagues/RagingEchoesLeague/RagingEchoesLeague.d.ts +749 -0
  232. package/dist/runescape/model/leagues/RagingEchoesLeague/RagingEchoesLeague.d.ts.map +1 -0
  233. package/dist/runescape/model/leagues/RagingEchoesLeague/RagingEchoesLeague.js +856 -0
  234. package/dist/runescape/model/leagues/general/Leagues.d.ts +70 -0
  235. package/dist/runescape/model/leagues/general/Leagues.d.ts.map +1 -0
  236. package/dist/runescape/model/leagues/general/Leagues.js +141 -0
  237. package/dist/runescape/model/leagues/index.d.ts +4 -0
  238. package/dist/runescape/model/leagues/index.d.ts.map +1 -0
  239. package/dist/runescape/model/leagues/index.js +3 -0
  240. package/dist/runescape/model/leagues/model.d.ts +32 -0
  241. package/dist/runescape/model/leagues/model.d.ts.map +1 -0
  242. package/dist/runescape/model/leagues/model.js +19 -0
  243. package/dist/runescape/model/skills/Skill.d.ts +22 -0
  244. package/dist/runescape/model/skills/Skill.d.ts.map +1 -0
  245. package/dist/runescape/model/skills/Skill.js +1 -0
  246. package/dist/runescape/model/skills/attack/Attack.d.ts +15 -0
  247. package/dist/runescape/model/skills/attack/Attack.d.ts.map +1 -0
  248. package/dist/runescape/model/skills/attack/Attack.js +19 -0
  249. package/dist/runescape/model/skills/attack/AttackLevelUnlocks.d.ts +6 -0
  250. package/dist/runescape/model/skills/attack/AttackLevelUnlocks.d.ts.map +1 -0
  251. package/dist/runescape/model/skills/attack/AttackLevelUnlocks.js +47 -0
  252. package/dist/runescape/model/skills/attack/index.d.ts +3 -0
  253. package/dist/runescape/model/skills/attack/index.d.ts.map +1 -0
  254. package/dist/runescape/model/skills/attack/index.js +2 -0
  255. package/dist/runescape/model/skills/hunter/Hunter.d.ts +5 -0
  256. package/dist/runescape/model/skills/hunter/Hunter.d.ts.map +1 -0
  257. package/dist/runescape/model/skills/hunter/Hunter.js +6 -0
  258. package/dist/runescape/model/skills/hunter/HunterNpcs.d.ts +1 -0
  259. package/dist/runescape/model/skills/hunter/HunterNpcs.d.ts.map +1 -0
  260. package/dist/runescape/model/skills/hunter/HunterNpcs.js +1 -0
  261. package/dist/runescape/model/skills/hunter/index.d.ts +2 -0
  262. package/dist/runescape/model/skills/hunter/index.d.ts.map +1 -0
  263. package/dist/runescape/model/skills/hunter/index.js +1 -0
  264. package/dist/runescape/model/skills/index.d.ts +3 -0
  265. package/dist/runescape/model/skills/index.d.ts.map +1 -0
  266. package/dist/runescape/model/skills/index.js +2 -0
  267. package/dist/runescape/resources/QuestData.json +5454 -0
  268. package/dist/runescape/resources/diary/diaries.json +1484 -0
  269. package/dist/runescape/resources/diary/diariesArray.json +0 -0
  270. package/dist/runescape/resources/leagues/demonicPacts.leagues7.json +2449 -0
  271. package/dist/runescape/resources/quest/exp.json +1333 -0
  272. package/dist/runescape/resources/quest/questData.json +5790 -0
  273. package/dist/runescape/resources/quest/questDataArray.json +5489 -0
  274. package/dist/runescape/resources/quest/subquestArray.json +58 -0
  275. package/dist/runescape/resources/quest/testObj.json +5682 -0
  276. package/dist/runescape/resources/quest/testarray.json +5589 -0
  277. package/dist/runescape/resources/quests/CooksAssistant.json +34 -0
  278. package/dist/runescape/resources/slayer/slayer.json +3581 -0
  279. package/dist/runescape/resources/slayer/slayerData.json +4431 -0
  280. package/dist/runescape/resources/slayer/tasks/json/Chaeldar.json +348 -0
  281. package/dist/runescape/resources/slayer/tasks/json/Duradel.json +541 -0
  282. package/dist/runescape/resources/slayer/tasks/json/Krystilia.json +2 -0
  283. package/dist/runescape/resources/slayer/tasks/json/Mazchna.json +379 -0
  284. package/dist/runescape/resources/slayer/tasks/json/Neive.json +320 -0
  285. package/dist/runescape/resources/slayer/tasks/json/Spria.json +345 -0
  286. package/dist/runescape/resources/slayer/tasks/json/Tureal.json +341 -0
  287. package/dist/runescape/resources/slayer/tasks/json/Vannaka.json +547 -0
  288. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { DemonicPactPlanningData, DemonicPactTree } from "./DemonicPact.model";
2
+ export declare function buildDemonicPactPlanningData(tree: DemonicPactTree): DemonicPactPlanningData;
3
+ export declare const DEMONIC_PACTS_LEAGUES_7_PLANNING_DATA: DemonicPactPlanningData;
4
+ //# sourceMappingURL=DemonicPactPlanningData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DemonicPactPlanningData.d.ts","sourceRoot":"","sources":["../../../../source/runescape/model/leagues/DemonicPactPlanningData.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,uBAAuB,EAEvB,eAAe,EAEhB,MAAM,qBAAqB,CAAC;AAU7B,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,eAAe,GAAG,uBAAuB,CA6B3F;AAED,eAAO,MAAM,qCAAqC,yBAAwD,CAAC"}
@@ -0,0 +1,174 @@
1
+ import { CombatStyle, PactNodeSize, } from "./DemonicPact.model";
2
+ import { DEMONIC_PACTS_LEAGUES_7 } from "./DemonicPacts";
3
+ const STYLE_VALUES = [
4
+ CombatStyle.Universal,
5
+ CombatStyle.Melee,
6
+ CombatStyle.Ranged,
7
+ CombatStyle.Magic,
8
+ ];
9
+ export function buildDemonicPactPlanningData(tree) {
10
+ const pathingByPactId = buildPathingByPactId(tree);
11
+ const pactsById = new Map(tree.pacts.map((pact) => [pact.id, pact]));
12
+ const capstonePactIds = tree.pacts.filter((pact) => pact.nodeSize === PactNodeSize.Capstone).map((pact) => pact.id);
13
+ const leafPactIds = tree.pacts
14
+ .filter((pact) => pact.id !== tree.rootNodeId && pact.linkedNodeIds.length <= 1)
15
+ .map((pact) => pact.id);
16
+ const junctionPactIds = tree.pacts.filter((pact) => pact.linkedNodeIds.length >= 3).map((pact) => pact.id);
17
+ const styleSummaries = Object.freeze(STYLE_VALUES.reduce((acc, style) => {
18
+ acc[style] = buildStyleSummary(tree, style, pathingByPactId, pactsById);
19
+ return acc;
20
+ }, {}));
21
+ return {
22
+ totalPacts: tree.pacts.length,
23
+ totalPointsAvailable: tree.totalPointsAvailable,
24
+ rootPactId: tree.rootNodeId,
25
+ capstonePactIds,
26
+ leafPactIds,
27
+ junctionPactIds,
28
+ pathingByPactId,
29
+ styleSummaries,
30
+ };
31
+ }
32
+ export const DEMONIC_PACTS_LEAGUES_7_PLANNING_DATA = buildDemonicPactPlanningData(DEMONIC_PACTS_LEAGUES_7);
33
+ function buildPathingByPactId(tree) {
34
+ const pactsById = new Map(tree.pacts.map((pact) => [pact.id, pact]));
35
+ const hops = computeMinimumHops(tree, pactsById);
36
+ const weighted = computeMinimumPointSpend(tree, pactsById);
37
+ const entries = tree.pacts.map((pact) => {
38
+ const hopInfo = hops.get(pact.id);
39
+ const weightedInfo = weighted.get(pact.id);
40
+ if (!hopInfo || !weightedInfo) {
41
+ throw new Error(`Unable to resolve pathing information for pact ${pact.id}`);
42
+ }
43
+ const pathingInfo = {
44
+ pactId: pact.id,
45
+ minimumUnlockHopsFromRoot: hopInfo.hops,
46
+ minimumPointSpendFromRoot: weightedInfo.cost,
47
+ minimumUnlockPathPactIds: weightedInfo.path,
48
+ };
49
+ return [pact.id, pathingInfo];
50
+ });
51
+ return Object.freeze(Object.fromEntries(entries));
52
+ }
53
+ function computeMinimumHops(tree, pactsById) {
54
+ const queue = [tree.rootNodeId];
55
+ const results = new Map();
56
+ results.set(tree.rootNodeId, { hops: 0, path: [tree.rootNodeId] });
57
+ while (queue.length > 0) {
58
+ const currentId = queue.shift();
59
+ if (!currentId) {
60
+ continue;
61
+ }
62
+ const current = pactsById.get(currentId);
63
+ const currentInfo = results.get(currentId);
64
+ if (!current || !currentInfo) {
65
+ continue;
66
+ }
67
+ const sortedNeighbors = [...current.linkedNodeIds].sort();
68
+ for (const neighborId of sortedNeighbors) {
69
+ if (!pactsById.has(neighborId) || results.has(neighborId)) {
70
+ continue;
71
+ }
72
+ results.set(neighborId, {
73
+ hops: currentInfo.hops + 1,
74
+ path: [...currentInfo.path, neighborId],
75
+ });
76
+ queue.push(neighborId);
77
+ }
78
+ }
79
+ return results;
80
+ }
81
+ function computeMinimumPointSpend(tree, pactsById) {
82
+ const unvisited = new Set(tree.pacts.map((pact) => pact.id));
83
+ const costs = new Map();
84
+ const paths = new Map();
85
+ for (const pact of tree.pacts) {
86
+ costs.set(pact.id, Number.POSITIVE_INFINITY);
87
+ paths.set(pact.id, []);
88
+ }
89
+ const rootPact = pactsById.get(tree.rootNodeId);
90
+ if (!rootPact) {
91
+ throw new Error(`Root pact ${tree.rootNodeId} was not found in pact tree`);
92
+ }
93
+ costs.set(rootPact.id, rootPact.pointCost);
94
+ paths.set(rootPact.id, [rootPact.id]);
95
+ while (unvisited.size > 0) {
96
+ let currentId;
97
+ let currentCost = Number.POSITIVE_INFINITY;
98
+ for (const pactId of unvisited) {
99
+ const pactCost = costs.get(pactId) ?? Number.POSITIVE_INFINITY;
100
+ if (pactCost < currentCost) {
101
+ currentCost = pactCost;
102
+ currentId = pactId;
103
+ }
104
+ }
105
+ if (!currentId || !Number.isFinite(currentCost)) {
106
+ break;
107
+ }
108
+ unvisited.delete(currentId);
109
+ const currentPact = pactsById.get(currentId);
110
+ const currentPath = paths.get(currentId) ?? [currentId];
111
+ if (!currentPact) {
112
+ continue;
113
+ }
114
+ const sortedNeighbors = [...currentPact.linkedNodeIds].sort();
115
+ for (const neighborId of sortedNeighbors) {
116
+ if (!unvisited.has(neighborId)) {
117
+ continue;
118
+ }
119
+ const neighborPact = pactsById.get(neighborId);
120
+ if (!neighborPact) {
121
+ continue;
122
+ }
123
+ const nextCost = currentCost + neighborPact.pointCost;
124
+ const prevCost = costs.get(neighborId) ?? Number.POSITIVE_INFINITY;
125
+ const nextPath = [...currentPath, neighborId];
126
+ const prevPath = paths.get(neighborId) ?? [];
127
+ if (nextCost < prevCost || (nextCost === prevCost && comparePaths(nextPath, prevPath) < 0)) {
128
+ costs.set(neighborId, nextCost);
129
+ paths.set(neighborId, nextPath);
130
+ }
131
+ }
132
+ }
133
+ const results = new Map();
134
+ for (const pact of tree.pacts) {
135
+ results.set(pact.id, {
136
+ cost: costs.get(pact.id) ?? Number.POSITIVE_INFINITY,
137
+ path: paths.get(pact.id) ?? [],
138
+ });
139
+ }
140
+ return results;
141
+ }
142
+ function comparePaths(left, right) {
143
+ if (left.length !== right.length) {
144
+ return left.length - right.length;
145
+ }
146
+ return left.join("|").localeCompare(right.join("|"));
147
+ }
148
+ function buildStyleSummary(tree, style, pathingByPactId, pactsById) {
149
+ const stylePacts = tree.pacts.filter((pact) => pact.style === style);
150
+ if (stylePacts.length === 0) {
151
+ throw new Error(`Expected at least one pact for style ${style}`);
152
+ }
153
+ let cheapestPact = stylePacts[0];
154
+ let cheapestCost = pathingByPactId[cheapestPact.id].minimumPointSpendFromRoot;
155
+ for (const pact of stylePacts.slice(1)) {
156
+ const pactCost = pathingByPactId[pact.id].minimumPointSpendFromRoot;
157
+ if (pactCost < cheapestCost || (pactCost === cheapestCost && pact.id.localeCompare(cheapestPact.id) < 0)) {
158
+ cheapestPact = pact;
159
+ cheapestCost = pactCost;
160
+ }
161
+ }
162
+ const totalPointCost = stylePacts.reduce((sum, pact) => {
163
+ const pactFromMap = pactsById.get(pact.id);
164
+ return sum + (pactFromMap?.pointCost ?? pact.pointCost);
165
+ }, 0);
166
+ return {
167
+ style,
168
+ pactCount: stylePacts.length,
169
+ capstonePactIds: stylePacts.filter((pact) => pact.nodeSize === PactNodeSize.Capstone).map((pact) => pact.id),
170
+ totalPointCost,
171
+ cheapestAccessPactId: cheapestPact.id,
172
+ cheapestAccessPointSpend: cheapestCost,
173
+ };
174
+ }
@@ -0,0 +1,4 @@
1
+ import { DemonicPactTree } from "./DemonicPact.model";
2
+ export declare const DEMONIC_PACTS_LEAGUES_7: DemonicPactTree;
3
+ export declare const LEAGUES_7_COMBAT_MASTERY_TREE: DemonicPactTree;
4
+ //# sourceMappingURL=DemonicPacts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DemonicPacts.d.ts","sourceRoot":"","sources":["../../../../source/runescape/model/leagues/DemonicPacts.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,eAAe,EAKhB,MAAM,qBAAqB,CAAC;AA0C7B,eAAO,MAAM,uBAAuB,EAAE,eAOrC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,eAAyC,CAAC"}
@@ -0,0 +1,66 @@
1
+ import demonicPactsResource from '../../resources/leagues/demonicPacts.leagues7.json';
2
+ import { CombatStyle, LeaguesSeason, PactNodeSize } from "./DemonicPact.model";
3
+ const STYLE_MAP = {
4
+ universal: CombatStyle.Universal,
5
+ melee: CombatStyle.Melee,
6
+ ranged: CombatStyle.Ranged,
7
+ magic: CombatStyle.Magic,
8
+ };
9
+ const NODE_SIZE_MAP = {
10
+ node_minor: PactNodeSize.Minor,
11
+ node_major: PactNodeSize.Major,
12
+ node_capstone: PactNodeSize.Capstone,
13
+ };
14
+ const RESOURCE = demonicPactsResource;
15
+ export const DEMONIC_PACTS_LEAGUES_7 = {
16
+ season: LeaguesSeason.Leagues7,
17
+ displayName: RESOURCE.displayName,
18
+ totalPointsAvailable: RESOURCE.totalPointsAvailable,
19
+ rootNodeId: RESOURCE.rootNodeId,
20
+ source: RESOURCE.source,
21
+ pacts: RESOURCE.nodes.map(mapResourceNode),
22
+ };
23
+ export const LEAGUES_7_COMBAT_MASTERY_TREE = DEMONIC_PACTS_LEAGUES_7;
24
+ function mapResourceNode(resourceNode) {
25
+ const description = normalizeDescription(resourceNode.description, resourceNode.effectValue);
26
+ const effect = {
27
+ key: resourceNode.effectName,
28
+ value: resourceNode.effectValue,
29
+ description,
30
+ };
31
+ return {
32
+ id: resourceNode.id,
33
+ name: createPactName(resourceNode.effectName, description),
34
+ description,
35
+ rawDescription: resourceNode.description,
36
+ style: STYLE_MAP[resourceNode.style],
37
+ nodeSize: NODE_SIZE_MAP[resourceNode.nodeSize],
38
+ pointCost: resourceNode.pointCost,
39
+ linkedNodeIds: [...resourceNode.linkedNodeIds],
40
+ effect,
41
+ drawCoord: { ...resourceNode.drawCoord },
42
+ icon: resourceNode.nodeSprite,
43
+ };
44
+ }
45
+ function normalizeDescription(rawDescription, effectValue) {
46
+ const placeholderValue = effectValue === null ? '' : String(effectValue);
47
+ const resolvedDescription = rawDescription.replace(/#/g, placeholderValue);
48
+ return resolvedDescription
49
+ .replace(/<[^>]+>/g, '')
50
+ .split('\n')
51
+ .map((line) => line.trim())
52
+ .filter((line, index, lines) => line.length > 0 || (index > 0 && lines[index - 1].length > 0))
53
+ .join('\n');
54
+ }
55
+ function createPactName(effectName, description) {
56
+ if (effectName) {
57
+ return effectName
58
+ .replace(/^talent_/, '')
59
+ .split('_')
60
+ .filter((segment) => segment.length > 0)
61
+ .map((segment) => segment[0].toUpperCase() + segment.slice(1))
62
+ .join(' ');
63
+ }
64
+ const [firstLine] = description.split('\n');
65
+ return firstLine.trim();
66
+ }
@@ -0,0 +1,23 @@
1
+ import { LeagueRegion, NotableDrop } from '../model';
2
+ /**
3
+ * Represents an area in the Demonic Pacts League, which is a specific region of the game world that has its own unique content, mechanics, and rewards during the league. Each area includes information about its name, description, whether it is a starting area, its accessibility, any tasks required to unlock it, notable settlements and activities within the area, any echo bosses that can be found there, quests and achievements that are automatically completed upon entering the area, and notable drops that can be obtained from activities within the area. This type is used to organize and reference the different areas of the Demonic Pacts League in a structured way.
4
+ */
5
+ export interface DemonicPactsLeagueArea {
6
+ name: string;
7
+ description: string;
8
+ isStarting: boolean;
9
+ isAccessible: boolean;
10
+ unlocksAfterTasks?: number;
11
+ notableSettlements: string[];
12
+ notableActivities: string[];
13
+ echoBoss?: string;
14
+ autoCompletedQuests: string[];
15
+ autoCompletedAchievements: string[];
16
+ notableDrops?: NotableDrop[];
17
+ }
18
+ /**
19
+ * A record of the different areas in the Demonic Pacts League, keyed by a unique identifier for each area (e.g., "varlamore", "karamja", "asgarnia"). Each entry in the record contains all the relevant information about that area, as defined by the DemonicPactsLeagueArea interface. This structure allows for easy retrieval and reference of area information throughout the application, particularly when displaying league content or calculating rewards and progress for players participating in the Demonic Pacts League.
20
+ */
21
+ export declare const DEMONIC_PACTS_LEAGUE_AREAS: Record<string, DemonicPactsLeagueArea>;
22
+ export declare const DemonicPactsLeagueRegions: Record<string, LeagueRegion>;
23
+ //# sourceMappingURL=DemonicPactsLeagueAreas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DemonicPactsLeagueAreas.d.ts","sourceRoot":"","sources":["../../../../../source/runescape/model/leagues/DemonicPactsLeague/DemonicPactsLeagueAreas.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGrD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CA+Y7E,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAkDlE,CAAC"}