osrs-tools 0.1.1 → 0.2.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 (76) hide show
  1. package/README.md +106 -30
  2. package/package.json +90 -75
  3. package/src/index.ts +6 -433
  4. package/src/model/Requirement.ts +173 -0
  5. package/src/model/account/OsrsAccount.ts +82 -0
  6. package/src/model/quest/Quest.ts +44 -0
  7. package/src/model/quest/QuestTool.ts +96 -0
  8. package/src/model/slayer/Assignment.ts +40 -0
  9. package/src/model/slayer/SlayerMaster.ts +137 -0
  10. package/src/model/slayer/SlayerReward.ts +39 -0
  11. package/src/model/slayer/Task.ts +168 -0
  12. package/src/resources/QuestData.json +754 -0
  13. package/src/{data/Diaries → resources/quest}/diaries.json +3 -3
  14. package/src/{data/quest/questData.ts → resources/quest/questData.js} +169 -223
  15. package/src/{data/quest/questDataArray.json → resources/quest/questData.json} +950 -1833
  16. package/src/resources/quest/questDataArray.js +5489 -0
  17. package/src/{data/quest/questData.json → resources/quest/questDataArray.json} +642 -643
  18. package/src/{data/quest/miniquestQuestArray.json → resources/quest/subquestArray.js} +2 -2
  19. package/src/{data/quest/subQuestArray.json → resources/quest/subquestArray.json} +1 -1
  20. package/src/{data → resources}/quest/testObj.json +148 -148
  21. package/src/{data → resources}/quest/testarray.json +149 -149
  22. package/src/resources/quests/CooksAssistant.json +34 -0
  23. package/src/resources/slayer/Masters.ts +180 -0
  24. package/src/resources/slayer/SlayerData.ts +45 -0
  25. package/src/resources/slayer/SlayerExtends.ts +218 -0
  26. package/src/resources/slayer/SlayerUnlock.ts +194 -0
  27. package/src/resources/slayer/slayer.json +3581 -0
  28. package/src/resources/slayer/slayerBuys.ts +38 -0
  29. package/src/resources/slayer/slayerData.json +4431 -0
  30. package/src/resources/slayer/tasks/ChaelderTasks.ts +235 -0
  31. package/src/resources/slayer/tasks/DuradelTasks.ts +75 -0
  32. package/src/resources/slayer/tasks/KonarTasks.ts +6 -0
  33. package/src/resources/slayer/tasks/MazchnaTasks.ts +5 -0
  34. package/src/resources/slayer/tasks/NieveTasks.ts +235 -0
  35. package/src/resources/slayer/tasks/ReadTasks.ts +55 -0
  36. package/src/resources/slayer/tasks/SpriaTasks.ts +344 -0
  37. package/src/resources/slayer/tasks/Tureal.ts +436 -0
  38. package/src/resources/slayer/tasks/VannakaTasks.ts +236 -0
  39. package/src/resources/slayer/tasks/json/Chaeldar.json +348 -0
  40. package/src/resources/slayer/tasks/json/Duradel.json +541 -0
  41. package/src/resources/slayer/tasks/json/Krystilia.json +2 -0
  42. package/src/resources/slayer/tasks/json/Mazchna.json +379 -0
  43. package/src/resources/slayer/tasks/json/Neive.json +320 -0
  44. package/src/resources/slayer/tasks/json/Spria.json +345 -0
  45. package/src/resources/slayer/tasks/json/Tureal.json +341 -0
  46. package/src/resources/slayer/tasks/json/Vannaka.json +547 -0
  47. package/src/cli.js +0 -9
  48. package/src/data/farming/fruitTrees.json +0 -165
  49. package/src/data/farming/locations.json +0 -78
  50. package/src/data/farming/patches.json +0 -102
  51. package/src/data/farming/seeds.json +0 -170
  52. package/src/data/farming/teleports.json +0 -301
  53. package/src/data/farming/treePatches.json +0 -3
  54. package/src/data/farming/trees.json +0 -103
  55. package/src/data/quest/miniquestQuestArray.ts +0 -8
  56. package/src/data/quest/questDataArray.ts +0 -4134
  57. package/src/data/quest/subQuestArray.ts +0 -60
  58. package/src/tests/QuestTest.js +0 -71
  59. package/src/tests/getAllQuestSeries.ts +0 -6
  60. package/src/tests/test Quest Array.ts +0 -9
  61. package/src/tests/test Requirements.ts +0 -56
  62. package/src/tests/test.ts +0 -402
  63. package/src/tests/test3.js +0 -370
  64. package/src/tests/testQuestCompletion.js +0 -367
  65. package/src/tests/testSeed.js +0 -8
  66. package/src/utils/AchievementDiary.ts +0 -18
  67. package/src/utils/Farming/FarmingTool.ts +0 -110
  68. package/src/utils/Farming/Seed.js +0 -42
  69. package/src/utils/Farming/TreeSeed.js +0 -21
  70. package/src/utils/OsrsAccount.ts +0 -280
  71. package/src/utils/Quest.ts +0 -99
  72. package/src/utils/QuestTool.ts +0 -437
  73. package/src/utils/Requirement.ts +0 -63
  74. package/src/utils/Skill.ts +0 -11
  75. /package/src/{data/Diaries → resources/quest}/diariesArray.json +0 -0
  76. /package/src/{data → resources/quest}/exp.json +0 -0
@@ -1,103 +0,0 @@
1
- [
2
- {
3
- "name": "Acorn",
4
- "level": 15,
5
- "exp": {
6
- "plant": 14,
7
- "checkhealth": 467.3,
8
- "total": 481.3
9
- },
10
- "xp": 481.3,
11
- "type": "tree",
12
- "time": "3hrs 20mins",
13
- "protection": {
14
- "item": "Tomatoes(5)",
15
- "amount": 1
16
- },
17
- "uses": [
18
- "Source of oak logs",
19
- "Axeman's folly ingredient (Roots)"
20
- ]
21
- },
22
- {
23
- "name": "Willow",
24
- "level": 30,
25
- "exp": {
26
- "plant": 25,
27
- "checkhealth": 1456.5,
28
- "total": 1481.5
29
- },
30
- "xp": 1481.5,
31
- "type": "tree",
32
- "time": "4hrs 40mins",
33
- "protection": {
34
- "item": "Apples(5)",
35
- "amount": 1
36
- },
37
- "uses": [
38
- "Source of willow logs",
39
- "Weaving a Basket on a loom (Branch)",
40
- "Quest item - Enlightened Journey (Branch)"
41
- ]
42
- },
43
- {
44
- "name": "Maple",
45
- "level": 45,
46
- "exp": {
47
- "plant": 45,
48
- "checkhealth": 3403.4,
49
- "total": 3448.4
50
- },
51
- "xp": 3448.4,
52
- "type": "tree",
53
- "time": "5hrs 20mins",
54
- "protection": {
55
- "item": "Oranges(5)",
56
- "amount": 1
57
- },
58
- "uses": [
59
- "Source of maple logs"
60
- ]
61
- },
62
- {
63
- "name": "Yew",
64
- "level": 60,
65
- "exp": {
66
- "plant": 81,
67
- "checkhealth": 7069.9,
68
- "total": 7150.9
69
- },
70
- "xp": 7150.9,
71
- "type": "tree",
72
- "time": "6hrs 40mins",
73
- "protection": {
74
- "item": "Cactus spine",
75
- "amount": 10
76
- },
77
- "uses": [
78
- "Source of yew logs",
79
- "Antipoison+ ingredient (Roots)"
80
- ]
81
- },
82
- {
83
- "name": "Magic",
84
- "level": 75,
85
- "exp": {
86
- "plant": 145.5,
87
- "checkhealth": 13768.3,
88
- "total": 13913.8
89
- },
90
- "xp": 13913.8,
91
- "type": "tree",
92
- "time": "6hrs 40mins",
93
- "protection": {
94
- "item": "Coconut",
95
- "amount": 25
96
- },
97
- "uses": [
98
- "Source of magic logs",
99
- "Making magic string (Roots)",
100
- "Antipoison++ ingredient (Roots)"
101
- ]
102
- }
103
- ]
@@ -1,8 +0,0 @@
1
- import { Quest, QuestObject } from '../../utils/Quest';
2
- let MiniQuestArray1: Array<QuestObject> = [];
3
- let temp = [];
4
- for (var index in MiniQuestArray1) {
5
- temp.push(new Quest(MiniQuestArray1[index]));
6
- }
7
-
8
- export let QuestArray: Array<Quest> = temp;