osrs-tools 2.3.3 → 2.3.5

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 (279) hide show
  1. package/README.md +8 -0
  2. package/package.json +29 -60
  3. package/dist/out-tsc/test/resources/A_Squeezer_Main_Data.js +0 -474
  4. package/dist/out-tsc/test/unit/account/OsrsAccount.test.js +0 -76
  5. package/dist/out-tsc/test/unit/quest/Quest.test.js +0 -96
  6. package/dist/out-tsc/test/unit/quest/QuestTool.test.js +0 -193
  7. package/dist/out-tsc/test/unit/quest/mockQuests.js +0 -75
  8. package/dist/out-tsc/test/unit/quest/types.test.js +0 -98
  9. package/dist/out-tsc/test/unit/requirements/Requirement.test.js +0 -52
  10. package/dist/out-tsc/test/unit/slayer/SlayerMaster.test.js +0 -43
  11. package/dist/out-tsc/test/unit/slayer/master/Chaeldar.test.js +0 -20
  12. package/dist/out-tsc/test/unit/slayer/master/Duradel.test.js +0 -22
  13. package/dist/out-tsc/test/unit/slayer/master/Konar.test.js +0 -20
  14. package/dist/out-tsc/test/unit/slayer/master/Krystillia.test.js +0 -20
  15. package/dist/out-tsc/test/unit/slayer/master/Mazchna.test.js +0 -20
  16. package/dist/out-tsc/test/unit/slayer/master/Nieve.test.js +0 -20
  17. package/dist/out-tsc/test/unit/slayer/master/Spria.test.js +0 -21
  18. package/dist/out-tsc/test/unit/slayer/master/Tureal.test.js +0 -21
  19. package/dist/out-tsc/test/unit/slayer/master/Vannaka.test.js +0 -20
  20. package/dist/out-tsc/test/unit/slayer/model/Assignment.test.js +0 -14
  21. package/dist/out-tsc/test/unit/slayer/model/SlayerUnlock.test.js +0 -38
  22. package/dist/out-tsc/test/unit/slayer/model/Task.test.js +0 -122
  23. package/dist/out-tsc/test/unit/tools/experience.test.js +0 -31
  24. package/dist/out-tsc/test/unit/utils/cache.test.js +0 -82
  25. /package/dist/{out-tsc/source/examples → examples}/ExampleQuest.js +0 -0
  26. /package/dist/{out-tsc/source/index.js → index.js} +0 -0
  27. /package/dist/{out-tsc/source/runescape → runescape}/errors.js +0 -0
  28. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/Item.js +0 -0
  29. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/Items.js +0 -0
  30. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/AmuletOfGlory.js +0 -0
  31. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/AncientStaff.js +0 -0
  32. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/AntiDragonShield.js +0 -0
  33. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Bearhead.js +0 -0
  34. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/BlackAxe.js +0 -0
  35. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/BlisterwoodFlail.js +0 -0
  36. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/BloodRune.js +0 -0
  37. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/BlueDye.js +0 -0
  38. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Bones.js +0 -0
  39. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Bucket.js +0 -0
  40. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/BucketofWater.js +0 -0
  41. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Cat.js +0 -0
  42. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Coins.js +0 -0
  43. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/CrossSection.js +0 -0
  44. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/CrystalKey.js +0 -0
  45. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/CulinaromancerGloves.js +0 -0
  46. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/DagannothHide.js +0 -0
  47. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/DemonicGorillaHeart.js +0 -0
  48. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/DragonKey.js +0 -0
  49. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/DragonkinMap.js +0 -0
  50. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/DrakansMedallion.js +0 -0
  51. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/DramenStaff.js +0 -0
  52. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/DwarvenRockCake.js +0 -0
  53. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Ectophial.js +0 -0
  54. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/FibulaPiece.js +0 -0
  55. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/FremennikKestrelEyeHelm.js +0 -0
  56. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/GamesNecklace.js +0 -0
  57. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/GhostspeakAmulet.js +0 -0
  58. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/IbansStaff.js +0 -0
  59. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/IceCooler.js +0 -0
  60. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/IcyBasalt.js +0 -0
  61. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/IvandisFlail.js +0 -0
  62. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/KlanksGauntlets.js +0 -0
  63. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/LunarStaff.js +0 -0
  64. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/MithrilSeeds.js +0 -0
  65. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/MoonclanHelmet.js +0 -0
  66. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/MorttonTeleport.js +0 -0
  67. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/MythicalCape.js +0 -0
  68. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Nosepeg.js +0 -0
  69. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/PaladinCredentials.js +0 -0
  70. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/RibcagePiece.js +0 -0
  71. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/RingOfDueling.js +0 -0
  72. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Rope.js +0 -0
  73. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/RoyalSeedPod.js +0 -0
  74. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/SalveAmulet.js +0 -0
  75. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/SilverPot.js +0 -0
  76. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/SilverSickleB.js +0 -0
  77. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/SkeletalBottoms.js +0 -0
  78. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/SkeletalHelm.js +0 -0
  79. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/SkeletalTop.js +0 -0
  80. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/SkullPiece.js +0 -0
  81. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/SmokeBarrage.js +0 -0
  82. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Spade.js +0 -0
  83. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/SuqahTeeth.js +0 -0
  84. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/Tinderbox.js +0 -0
  85. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/UnseenKey.js +0 -0
  86. /package/dist/{out-tsc/source/runescape → runescape}/model/Item/all/WaterRune.js +0 -0
  87. /package/dist/{out-tsc/source/runescape → runescape}/model/Requirement.js +0 -0
  88. /package/dist/{out-tsc/source/runescape → runescape}/model/account/OsrsAccount.js +0 -0
  89. /package/dist/{out-tsc/source/runescape → runescape}/model/account/Skill.js +0 -0
  90. /package/dist/{out-tsc/source/runescape → runescape}/model/account/skills/unlocks/AttackUnlocks.js +0 -0
  91. /package/dist/{out-tsc/source/runescape → runescape}/model/account/skills/unlocks/SkillUnlock.js +0 -0
  92. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/Ardougne.js +0 -0
  93. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/Desert.js +0 -0
  94. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/Diary.js +0 -0
  95. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/Fremennik.js +0 -0
  96. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/Kandarin.js +0 -0
  97. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/Karamja.js +0 -0
  98. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/KourendKebos.js +0 -0
  99. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/LumbridgeDraynor.js +0 -0
  100. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/Morytania.js +0 -0
  101. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/Wilderness.js +0 -0
  102. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/ardougne/Ardougne.js +0 -0
  103. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/desert/Desert.js +0 -0
  104. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/index.js +0 -0
  105. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/karamja/Karamja.js +0 -0
  106. /package/dist/{out-tsc/source/runescape → runescape}/model/diaries/varrock/Varrock.js +0 -0
  107. /package/dist/{out-tsc/source/runescape → runescape}/model/npc/Npc.js +0 -0
  108. /package/dist/{out-tsc/source/runescape → runescape}/model/npc/NpcDrop.js +0 -0
  109. /package/dist/{out-tsc/source/runescape → runescape}/model/npc/NpcProduct.js +0 -0
  110. /package/dist/{out-tsc/source/runescape → runescape}/model/npc/npcs/Hans.js +0 -0
  111. /package/dist/{out-tsc/source/runescape → runescape}/model/npc/npcs/Man.js +0 -0
  112. /package/dist/{out-tsc/source/runescape → runescape}/model/npc/npcs/PeerTheSeer.js +0 -0
  113. /package/dist/{out-tsc/source/runescape → runescape}/model/npc/npcs/Woman.js +0 -0
  114. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/Quest.js +0 -0
  115. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/QuestList.js +0 -0
  116. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/QuestTool.js +0 -0
  117. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/Requirements.js +0 -0
  118. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/AKingdomDivided.js +0 -0
  119. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/APorcineOfInterest.js +0 -0
  120. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ASoulsBane.js +0 -0
  121. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ATailOfTwoCats.js +0 -0
  122. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ATasteOfHope.js +0 -0
  123. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ATheatreOfBlood.js +0 -0
  124. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/AnimalMagnetism.js +0 -0
  125. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/AnotherSliceOfHAM.js +0 -0
  126. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/BelowIceMountain.js +0 -0
  127. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/BetweenARock.js +0 -0
  128. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/BigChompyBirdHunting.js +0 -0
  129. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/Biohazard.js +0 -0
  130. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/BlackKnightsFortress.js +0 -0
  131. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/BoneVoyage.js +0 -0
  132. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/CabinFever.js +0 -0
  133. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ClientOfKourend.js +0 -0
  134. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ClockTower.js +0 -0
  135. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ColdWar.js +0 -0
  136. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/Contact.js +0 -0
  137. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/CooksAssistant.js +0 -0
  138. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/CreatureOfFenkenstrain.js +0 -0
  139. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/CurrentAffairs.js +0 -0
  140. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DarknessOfHallowvale.js +0 -0
  141. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DeathPlateau.js +0 -0
  142. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DeathToTheDorgeshuun.js +0 -0
  143. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DemonSlayer.js +0 -0
  144. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DesertTreasure.js +0 -0
  145. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DeviousMinds.js +0 -0
  146. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DoricQuest.js +0 -0
  147. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DoricsQuest.js +0 -0
  148. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DragonSlayerI.js +0 -0
  149. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DragonSlayerII.js +0 -0
  150. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DreamMentor.js +0 -0
  151. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DruidicRitual.js +0 -0
  152. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/DwarfCannon.js +0 -0
  153. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/EadgarsRuse.js +0 -0
  154. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/EaglesPeak.js +0 -0
  155. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ElementalWorkshopI.js +0 -0
  156. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ElementalWorkshopII.js +0 -0
  157. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/EnakhrasLament.js +0 -0
  158. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/EnlightenedJourney.js +0 -0
  159. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/FairytaleIGrowingPains.js +0 -0
  160. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/FairytaleIICureAQueen.js +0 -0
  161. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/FamilyCrest.js +0 -0
  162. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/FightArena.js +0 -0
  163. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/FishingContest.js +0 -0
  164. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ForgettableTale.js +0 -0
  165. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/GardenOfTranquillity.js +0 -0
  166. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/GertrudesCat.js +0 -0
  167. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/GettingAhead.js +0 -0
  168. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/GhostsAhoy.js +0 -0
  169. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/GoblinDiplomacy.js +0 -0
  170. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/GrimTales.js +0 -0
  171. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/HauntedMine.js +0 -0
  172. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/HazeelCult.js +0 -0
  173. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/HeroesQuest.js +0 -0
  174. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/HolyGrail.js +0 -0
  175. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/HorrorFromTheDeep.js +0 -0
  176. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/IcthlarinsLittleHelper.js +0 -0
  177. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ImpCatcher.js +0 -0
  178. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/InAidOfTheMyreque.js +0 -0
  179. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/InSearchOfTheMyreque.js +0 -0
  180. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/JunglePotion.js +0 -0
  181. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/KingsRansom.js +0 -0
  182. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/LegendsQuest.js +0 -0
  183. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/LostCity.js +0 -0
  184. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/LunarDiplomacy.js +0 -0
  185. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/MakingHistory.js +0 -0
  186. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/MeatAndGreet.js +0 -0
  187. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/MerlinsCrystal.js +0 -0
  188. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/MonkeyMadness.js +0 -0
  189. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/MonkeyMadnessII.js +0 -0
  190. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/MonksFriend.js +0 -0
  191. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/MurderMystery.js +0 -0
  192. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/MyArmsBigAdventure.js +0 -0
  193. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/NatureSpirit.js +0 -0
  194. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ObservatoryQuest.js +0 -0
  195. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/OlafsQuest.js +0 -0
  196. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/OneSmallFavour.js +0 -0
  197. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/Pandemonium.js +0 -0
  198. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/PlagueCity.js +0 -0
  199. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/PriestInPeril.js +0 -0
  200. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/PryingTimes.js +0 -0
  201. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/RagAndBoneMan.js +0 -0
  202. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/Ratcatchers.js +0 -0
  203. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/RecipeForDisaster.js +0 -0
  204. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/RecruitmentDrive.js +0 -0
  205. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/Regicide.js +0 -0
  206. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/RovingElves.js +0 -0
  207. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/RoyalTrouble.js +0 -0
  208. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/RumDeal.js +0 -0
  209. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ScorpionCatcher.js +0 -0
  210. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/Scrambled.js +0 -0
  211. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/SeaSlug.js +0 -0
  212. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ShadesOfMortton.js +0 -0
  213. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ShadowOfTheStorm.js +0 -0
  214. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ShadowsOfCustodia.js +0 -0
  215. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/SheepHerder.js +0 -0
  216. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ShiloVillage.js +0 -0
  217. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/SlugMenace.js +0 -0
  218. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/SongOfTheElves.js +0 -0
  219. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/SpiritsOfTheElid.js +0 -0
  220. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/SwanSong.js +0 -0
  221. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TaiBwoWannaiTrio.js +0 -0
  222. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheAscentOfArceuus.js +0 -0
  223. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheDepthsOfDespair.js +0 -0
  224. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheFinalDawn.js +0 -0
  225. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheForsakenTower.js +0 -0
  226. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheFremennikExiles.js +0 -0
  227. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheFremennikIsles.js +0 -0
  228. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheFremennikTrials.js +0 -0
  229. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheGiantDwarf.js +0 -0
  230. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheGolem.js +0 -0
  231. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheGrandTree.js +0 -0
  232. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheGreatBrainRobbery.js +0 -0
  233. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheHandInTheSand.js +0 -0
  234. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheKnightsSword.js +0 -0
  235. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheLostTribe.js +0 -0
  236. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheQueenOfThieves.js +0 -0
  237. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheSlugMenace.js +0 -0
  238. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheTaleOfTheRighteous.js +0 -0
  239. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheTempleOfIkov.js +0 -0
  240. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TheTouristTrap.js +0 -0
  241. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ThroneOfMiscellania.js +0 -0
  242. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TowerOfLife.js +0 -0
  243. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TreeGnomeVillage.js +0 -0
  244. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TribalTotem.js +0 -0
  245. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TrollRomance.js +0 -0
  246. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TrollStronghold.js +0 -0
  247. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/TroubledTortugans.js +0 -0
  248. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/UndergroundPass.js +0 -0
  249. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/VampyreSlayer.js +0 -0
  250. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/Wanted.js +0 -0
  251. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/Watchtower.js +0 -0
  252. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/WaterfallQuest.js +0 -0
  253. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/WhatLiesBelow.js +0 -0
  254. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/WitchesPotion.js +0 -0
  255. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/WitchsHouse.js +0 -0
  256. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/all/ZogreFleshEaters.js +0 -0
  257. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/enums.js +0 -0
  258. /package/dist/{out-tsc/source/runescape → runescape}/model/quest/types.js +0 -0
  259. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/Assignment.js +0 -0
  260. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/Masters.js +0 -0
  261. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/SlayerBuys.js +0 -0
  262. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/SlayerExtends.js +0 -0
  263. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/SlayerMaster.js +0 -0
  264. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/SlayerReward.js +0 -0
  265. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/SlayerUnlock.js +0 -0
  266. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/Task.js +0 -0
  267. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/task/ChaelderTasks.js +0 -0
  268. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/task/DuradelTasks.js +0 -0
  269. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/task/KonarTasks.js +0 -0
  270. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/task/KrystiliaTasks.js +0 -0
  271. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/task/MazchnaTasks.js +0 -0
  272. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/task/NieveTasks.js +0 -0
  273. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/task/SpriaTasks.js +0 -0
  274. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/task/TurealTasks.js +0 -0
  275. /package/dist/{out-tsc/source/runescape → runescape}/model/slayer/task/VannakaTasks.js +0 -0
  276. /package/dist/{out-tsc/source/runescape → runescape}/tools/experience.js +0 -0
  277. /package/dist/{out-tsc/source/runescape → runescape}/tools/getAccount.js +0 -0
  278. /package/dist/{out-tsc/source/runescape → runescape}/utils/cache.js +0 -0
  279. /package/dist/{out-tsc/source/runescape → runescape}/utils/validation.js +0 -0
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
+
2
+
3
+ Refer to modern Node Packages. Update the Package.json to ONLY need the modern dependencies, reduce packages as much as possible.
4
+
5
+
6
+
7
+
8
+
1
9
  # OSRS Tools
2
10
 
3
11
  [![NPM Version](https://img.shields.io/npm/v/osrs-tools.svg?style=for-the-badge)](https://www.npmjs.com/package/osrs-tools)
package/package.json CHANGED
@@ -1,43 +1,12 @@
1
1
  {
2
2
  "name": "osrs-tools",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "A comprehensive TypeScript library for Old School RuneScape (OSRS) data and utilities, including quest data, skill requirements, and game item information",
5
5
  "license": "MIT",
6
- "keywords": [
7
- "osrs",
8
- "runescape",
9
- "typescript",
10
- "quest",
11
- "game-data"
12
- ],
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/jamescer/osrs-tools.git"
16
- },
17
- "homepage": "https://github.com/jamescer/osrs-tools#readme",
18
- "bugs": {
19
- "url": "https://github.com/jamescer/osrs-tools/issues"
20
- },
21
- "main": "./dist/index.js",
22
- "types": "./dist/index.d.ts",
23
- "exports": {
24
- ".": {
25
- "import": "./dist/index.js",
26
- "require": "./dist/index.js"
27
- }
28
- },
29
- "files": [
30
- "dist"
31
- ],
32
- "sideEffects": false,
33
- "engines": {
34
- "node": ">=18"
35
- },
36
6
  "scripts": {
37
7
  "build": "tsc -p tsconfig.json",
38
8
  "build:osrs-tools": "tsc -p tsconfig.json",
39
9
  "build:osrs-tools:npm": "tsc -p tsconfig.build.json",
40
- "clean": "rimraf dist",
41
10
  "coverage": "jest --coverage && codecov",
42
11
  "dev": "tsc --watch -p tsconfig.build.json",
43
12
  "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
@@ -45,7 +14,7 @@
45
14
  "getQuestDetails": "ts-node tools/GetQuestDetails.ts",
46
15
  "lint": "eslint \"{src,test}/**/*.ts\" --fix",
47
16
  "postpublish": "git push && git push --tags",
48
- "prebuild": "npm run clean",
17
+ "prebuild-backup": "npm run clean",
49
18
  "prepublishOnly": "npm run build && npm test",
50
19
  "preversion": "npm test",
51
20
  "runExample": "ts-node examples/ExampleQuest.ts",
@@ -61,39 +30,39 @@
61
30
  "tslib": "^2.8.1"
62
31
  },
63
32
  "devDependencies": {
64
- "@eslint/eslintrc": "^3.3.1",
65
- "@eslint/js": "^8.57.0",
66
- "@tsconfig/recommended": "^1.0.11",
67
- "@types/jest": "^29.5.14",
68
- "@types/node": "^18.19.130",
69
- "@typescript-eslint/eslint-plugin": "^8.51.0",
70
- "@typescript-eslint/parser": "^7.18.0",
71
- "codecov": "^3.8.2",
72
- "commitlint": "^17.8.1",
73
- "eslint": "^8.57.1",
74
- "eslint-config-prettier": "^10.1.8",
75
- "eslint-plugin-jest": "^27.9.0",
76
- "eslint-plugin-prettier": "^5.5.4",
77
- "eslint-plugin-simple-import-sort": "^12.1.1",
78
- "eslint-plugin-sort-destructure-keys": "^1.6.0",
79
- "eslint-plugin-sort-keys-fix": "^1.1.2",
80
33
  "jest": "^29.7.0",
81
- "lint-staged": "^16.2.7",
82
34
  "prettier": "^3.6.2",
83
- "rimraf": "^6.1.2",
84
35
  "ts-jest": "^29.4.5",
85
36
  "ts-node": "^10.9.2",
86
37
  "typescript": "^5.9.3"
87
38
  },
88
- "lint-staged": {
89
- "*.{ts,tsx}": [
90
- "eslint --fix",
91
- "prettier --write"
92
- ]
39
+ "keywords": [
40
+ "osrs",
41
+ "runescape",
42
+ "typescript",
43
+ "quest",
44
+ "game-data"
45
+ ],
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "https://github.com/jamescer/osrs-tools.git"
49
+ },
50
+ "homepage": "https://github.com/jamescer/osrs-tools#readme",
51
+ "bugs": {
52
+ "url": "https://github.com/jamescer/osrs-tools/issues"
53
+ },
54
+ "main": "./dist/index.js",
55
+ "types": "./dist/index.d.ts",
56
+ "exports": {
57
+ ".": {
58
+ "import": "./dist/index.js",
59
+ "require": "./dist/index.js"
60
+ }
93
61
  },
94
- "commitlint": {
95
- "extends": [
96
- "@commitlint/config-conventional"
97
- ]
62
+ "files": [
63
+ "dist"
64
+ ],
65
+ "engines": {
66
+ "node": ">=18"
98
67
  }
99
68
  }
@@ -1,474 +0,0 @@
1
- export const account = {
2
- bosses: {
3
- abyssalSire: {
4
- rank: -1,
5
- score: -1,
6
- },
7
- alchemicalHydra: {
8
- rank: 65617,
9
- score: 1094,
10
- },
11
- amoxliatl: {
12
- rank: 118294,
13
- score: 12,
14
- },
15
- araxxor: {
16
- rank: -1,
17
- score: -1,
18
- },
19
- artio: {
20
- rank: -1,
21
- score: -1,
22
- },
23
- barrows: {
24
- rank: 727988,
25
- score: 40,
26
- },
27
- bryophyta: {
28
- rank: -1,
29
- score: -1,
30
- },
31
- callisto: {
32
- rank: 261941,
33
- score: 9,
34
- },
35
- calvarion: {
36
- rank: 180229,
37
- score: 20,
38
- },
39
- cerberus: {
40
- rank: 326766,
41
- score: 8,
42
- },
43
- chambersOfXeric: {
44
- rank: -1,
45
- score: -1,
46
- },
47
- chambersOfXericChallengeMode: {
48
- rank: -1,
49
- score: -1,
50
- },
51
- chaosElemental: {
52
- rank: 30253,
53
- score: 188,
54
- },
55
- chaosFanatic: {
56
- rank: 146323,
57
- score: 37,
58
- },
59
- commanderZilyana: {
60
- rank: 262561,
61
- score: 16,
62
- },
63
- corporealBeast: {
64
- rank: -1,
65
- score: -1,
66
- },
67
- corruptedGauntlet: {
68
- rank: 186921,
69
- score: 53,
70
- },
71
- crazyArchaeologist: {
72
- rank: 206946,
73
- score: 36,
74
- },
75
- dagannothPrime: {
76
- rank: 263181,
77
- score: 68,
78
- },
79
- dagannothRex: {
80
- rank: 378253,
81
- score: 83,
82
- },
83
- dagannothSupreme: {
84
- rank: 261925,
85
- score: 67,
86
- },
87
- derangedArchaeologist: {
88
- rank: 113337,
89
- score: 25,
90
- },
91
- dukeSucellus: {
92
- rank: -1,
93
- score: -1,
94
- },
95
- gauntlet: {
96
- rank: 299089,
97
- score: 5,
98
- },
99
- generalGraardor: {
100
- rank: 228638,
101
- score: 135,
102
- },
103
- giantMole: {
104
- rank: 137707,
105
- score: 250,
106
- },
107
- grotesqueGuardians: {
108
- rank: 85633,
109
- score: 229,
110
- },
111
- hespori: {
112
- rank: 597256,
113
- score: 10,
114
- },
115
- hueycoatl: {
116
- rank: -1,
117
- score: -1,
118
- },
119
- kalphiteQueen: {
120
- rank: 220866,
121
- score: 35,
122
- },
123
- kingBlackDragon: {
124
- rank: 218475,
125
- score: 161,
126
- },
127
- kraken: {
128
- rank: 45535,
129
- score: 3538,
130
- },
131
- kreeArra: {
132
- rank: 101535,
133
- score: 120,
134
- },
135
- krilTsutsaroth: {
136
- rank: 329555,
137
- score: 5,
138
- },
139
- leviathan: {
140
- rank: -1,
141
- score: -1,
142
- },
143
- lunarChests: {
144
- rank: -1,
145
- score: -1,
146
- },
147
- mimic: {
148
- rank: -1,
149
- score: -1,
150
- },
151
- nex: {
152
- rank: -1,
153
- score: -1,
154
- },
155
- nightmare: {
156
- rank: -1,
157
- score: -1,
158
- },
159
- obor: {
160
- rank: -1,
161
- score: -1,
162
- },
163
- phantomMuspah: {
164
- rank: -1,
165
- score: -1,
166
- },
167
- phosanisNightmare: {
168
- rank: -1,
169
- score: -1,
170
- },
171
- royalTitans: {
172
- rank: -1,
173
- score: -1,
174
- },
175
- sarachnis: {
176
- rank: 359046,
177
- score: 10,
178
- },
179
- scorpia: {
180
- rank: -1,
181
- score: -1,
182
- },
183
- scurrius: {
184
- rank: -1,
185
- score: -1,
186
- },
187
- skotizo: {
188
- rank: 64955,
189
- score: 50,
190
- },
191
- solHeredit: {
192
- rank: -1,
193
- score: -1,
194
- },
195
- spindel: {
196
- rank: -1,
197
- score: -1,
198
- },
199
- tempoross: {
200
- rank: 582913,
201
- score: 26,
202
- },
203
- theatreOfBlood: {
204
- rank: -1,
205
- score: -1,
206
- },
207
- theatreOfBloodHardMode: {
208
- rank: -1,
209
- score: -1,
210
- },
211
- thermonuclearSmokeDevil: {
212
- rank: 254294,
213
- score: 58,
214
- },
215
- tombsOfAmascut: {
216
- rank: 237924,
217
- score: 9,
218
- },
219
- tombsOfAmascutExpertMode: {
220
- rank: -1,
221
- score: -1,
222
- },
223
- tzKalZuk: {
224
- rank: -1,
225
- score: -1,
226
- },
227
- tzTokJad: {
228
- rank: -1,
229
- score: -1,
230
- },
231
- vardorvis: {
232
- rank: -1,
233
- score: -1,
234
- },
235
- venenatis: {
236
- rank: -1,
237
- score: -1,
238
- },
239
- vetion: {
240
- rank: 176839,
241
- score: 15,
242
- },
243
- vorkath: {
244
- rank: 209751,
245
- score: 398,
246
- },
247
- whisperer: {
248
- rank: -1,
249
- score: -1,
250
- },
251
- wintertodt: {
252
- rank: 589629,
253
- score: 181,
254
- },
255
- yama: {
256
- rank: -1,
257
- score: -1,
258
- },
259
- zalcano: {
260
- rank: -1,
261
- score: -1,
262
- },
263
- zulrah: {
264
- rank: 327720,
265
- score: 152,
266
- },
267
- },
268
- bountyHunter: {
269
- hunter: {
270
- rank: -1,
271
- score: -1,
272
- },
273
- hunterV2: {
274
- rank: -1,
275
- score: -1,
276
- },
277
- rogue: {
278
- rank: -1,
279
- score: -1,
280
- },
281
- rogueV2: {
282
- rank: -1,
283
- score: -1,
284
- },
285
- },
286
- clues: {
287
- all: {
288
- rank: 204288,
289
- score: 313,
290
- },
291
- beginner: {
292
- rank: 534282,
293
- score: 8,
294
- },
295
- easy: {
296
- rank: 251703,
297
- score: 27,
298
- },
299
- elite: {
300
- rank: 178116,
301
- score: 26,
302
- },
303
- hard: {
304
- rank: 97874,
305
- score: 217,
306
- },
307
- master: {
308
- rank: 260502,
309
- score: 4,
310
- },
311
- medium: {
312
- rank: 387064,
313
- score: 31,
314
- },
315
- },
316
- collectionsLogged: {
317
- rank: -1,
318
- score: -1,
319
- },
320
- colosseumGlory: {
321
- rank: -1,
322
- score: -1,
323
- },
324
- combatLevel: 126,
325
- deadmanPoints: {
326
- rank: -1,
327
- score: -1,
328
- },
329
- lastManStanding: {
330
- rank: 280319,
331
- score: 536,
332
- },
333
- leaguePoints: {
334
- rank: -1,
335
- score: -1,
336
- },
337
- name: 'A Squeezer',
338
- pvpArena: {
339
- rank: -1,
340
- score: -1,
341
- },
342
- questPoints: 300,
343
- rank: 31748,
344
- riftsClosed: {
345
- rank: 510867,
346
- score: 43,
347
- },
348
- skills: {
349
- agility: {
350
- level: 84,
351
- rank: 296040,
352
- xp: 3135919,
353
- },
354
- attack: {
355
- level: 99,
356
- rank: 209891,
357
- xp: 15057003,
358
- },
359
- construction: {
360
- level: 85,
361
- rank: 303230,
362
- xp: 3258621,
363
- },
364
- cooking: {
365
- level: 99,
366
- rank: 130879,
367
- xp: 13800774,
368
- },
369
- crafting: {
370
- level: 99,
371
- rank: 84868,
372
- xp: 13645482,
373
- },
374
- defence: {
375
- level: 99,
376
- rank: 244468,
377
- xp: 13595705,
378
- },
379
- farming: {
380
- level: 99,
381
- rank: 243143,
382
- xp: 13245384,
383
- },
384
- firemaking: {
385
- level: 88,
386
- rank: 603071,
387
- xp: 4473930,
388
- },
389
- fishing: {
390
- level: 99,
391
- rank: 125754,
392
- xp: 13052764,
393
- },
394
- fletching: {
395
- level: 99,
396
- rank: 223800,
397
- xp: 13036552,
398
- },
399
- herblore: {
400
- level: 85,
401
- rank: 366503,
402
- xp: 3376252,
403
- },
404
- hitpoints: {
405
- level: 99,
406
- rank: 280654,
407
- xp: 23817468,
408
- },
409
- hunter: {
410
- level: 87,
411
- rank: 256655,
412
- xp: 4200146,
413
- },
414
- magic: {
415
- level: 99,
416
- rank: 377497,
417
- xp: 13429705,
418
- },
419
- mining: {
420
- level: 99,
421
- rank: 88776,
422
- xp: 13369968,
423
- },
424
- overall: {
425
- level: 2185,
426
- rank: 128092,
427
- xp: 252737198,
428
- },
429
- prayer: {
430
- level: 90,
431
- rank: 249810,
432
- xp: 5689303,
433
- },
434
- ranged: {
435
- level: 99,
436
- rank: 380024,
437
- xp: 15904871,
438
- },
439
- runecraft: {
440
- level: 91,
441
- rank: 136245,
442
- xp: 6387413,
443
- },
444
- slayer: {
445
- level: 99,
446
- rank: 132848,
447
- xp: 14162676,
448
- },
449
- smithing: {
450
- level: 98,
451
- rank: 131398,
452
- xp: 12084488,
453
- },
454
- strength: {
455
- level: 99,
456
- rank: 337927,
457
- xp: 14660672,
458
- },
459
- thieving: {
460
- level: 91,
461
- rank: 252496,
462
- xp: 6154434,
463
- },
464
- woodcutting: {
465
- level: 99,
466
- rank: 135561,
467
- xp: 13197668,
468
- },
469
- },
470
- soulWarsZeal: {
471
- rank: 191499,
472
- score: 277,
473
- },
474
- };
@@ -1,76 +0,0 @@
1
- import { OsrsAccount } from '../../../source/runescape/model/account/OsrsAccount';
2
- import { account as accountData } from '../../resources/A_Squeezer_Main_Data';
3
- describe('OsrsAccount', () => {
4
- let account;
5
- beforeEach(() => {
6
- account = OsrsAccount.fromJson(accountData);
7
- });
8
- it('should initialize with default values', () => {
9
- expect(account.name).toBe('A Squeezer');
10
- expect(account.skills).toBeDefined();
11
- expect(account.questPoints).toBeDefined();
12
- expect(account.combatLevel).toBeDefined();
13
- expect(account.skillsDetail).toBeDefined();
14
- expect(account.bosses).toBeDefined();
15
- expect(account.clues).toBeDefined();
16
- expect(account.bountyHunter).toBeDefined();
17
- expect(account.lastManStanding).toBeDefined();
18
- expect(account.pvpArena).toBeDefined();
19
- expect(account.soulWarsZeal).toBeDefined();
20
- expect(account.riftsClosed).toBeDefined();
21
- expect(account.colosseumGlory).toBeDefined();
22
- expect(account.collectionsLogged).toBeDefined();
23
- expect(account.leaguePoints).toBeDefined();
24
- expect(account.deadmanPoints).toBeDefined();
25
- });
26
- it('should get skill by name', () => {
27
- const skill = account.getSkill('attack');
28
- expect(skill).toBeDefined();
29
- expect(skill?.level).toBeDefined();
30
- expect(skill?.level).toBe(99);
31
- });
32
- it('should get skill detail by name', () => {
33
- const skillDetail = account.getSkillDetail('attack');
34
- expect(skillDetail).toBeDefined();
35
- expect(skillDetail?.rank).toBeDefined();
36
- expect(skillDetail?.level).toBeDefined();
37
- expect(skillDetail?.xp).toBeDefined();
38
- });
39
- it('should get boss score by name', () => {
40
- const bossScore = account.getBossScore('zulrah');
41
- expect(bossScore).toBeDefined();
42
- expect(bossScore?.rank).toBeDefined();
43
- expect(bossScore?.score).toBeDefined();
44
- });
45
- it('should get clue score by type', () => {
46
- const clueScore = account.getClueScore('beginner');
47
- expect(clueScore).toBeDefined();
48
- expect(clueScore?.rank).toBeDefined();
49
- expect(clueScore?.score).toBeDefined();
50
- });
51
- it('should return correct string from toString()', () => {
52
- const str = account.toString();
53
- expect(str).toContain(account.name);
54
- expect(str).toContain(account.combatLevel.toString());
55
- expect(str).toContain(account.questPoints.toString());
56
- });
57
- it('should return correct data from toJson()', () => {
58
- const json = account.toJson();
59
- expect(json.name).toBe(account.name);
60
- expect(json.combatLevel).toBe(account.combatLevel);
61
- expect(json.questPoints).toBe(account.questPoints);
62
- expect(json.skills).toEqual(account.skills);
63
- expect(json.skillsDetail).toEqual(account.skillsDetail);
64
- expect(json.bosses).toEqual(account.bosses);
65
- expect(json.clues).toEqual(account.clues);
66
- expect(json.bountyHunter).toEqual(account.bountyHunter);
67
- expect(json.lastManStanding).toEqual(account.lastManStanding);
68
- expect(json.pvpArena).toEqual(account.pvpArena);
69
- expect(json.soulWarsZeal).toEqual(account.soulWarsZeal);
70
- expect(json.riftsClosed).toEqual(account.riftsClosed);
71
- expect(json.colosseumGlory).toEqual(account.colosseumGlory);
72
- expect(json.collectionsLogged).toEqual(account.collectionsLogged);
73
- expect(json.leaguePoints).toEqual(account.leaguePoints);
74
- expect(json.deadmanPoints).toEqual(account.deadmanPoints);
75
- });
76
- });