@bingosrs/models 1.0.10 → 1.0.11
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.
- package/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/drops.js +71 -10
- package/package.json +45 -45
- package/src/data/items.ts +20 -20
- package/src/data/monsters.ts +20 -20
- package/src/drops.ts +374 -311
- package/src/enums/items.ts +14936 -14936
- package/src/index.ts +13 -13
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 mistereman22
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 mistereman22
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# bingosrs-models
|
|
2
|
-
Auto generated model package for use with BingOSRS
|
|
1
|
+
# bingosrs-models
|
|
2
|
+
Auto generated model package for use with BingOSRS
|
package/dist/drops.js
CHANGED
|
@@ -6,6 +6,9 @@ const monsters_1 = require("./enums/monsters");
|
|
|
6
6
|
exports.MonsterDrops = {
|
|
7
7
|
// Raids
|
|
8
8
|
// COX
|
|
9
|
+
[items_1.EItem.OLMLET]: [],
|
|
10
|
+
[items_1.EItem.METAMORPHIC_DUST]: [],
|
|
11
|
+
[items_1.EItem.TWISTED_ANCESTRAL_COLOUR_KIT]: [],
|
|
9
12
|
[items_1.EItem.ARCANE_PRAYER_SCROLL]: [],
|
|
10
13
|
[items_1.EItem.DEXTEROUS_PRAYER_SCROLL]: [],
|
|
11
14
|
[items_1.EItem.DINHS_BULWARK]: [],
|
|
@@ -17,6 +20,10 @@ exports.MonsterDrops = {
|
|
|
17
20
|
[items_1.EItem.ELDER_MAUL]: [],
|
|
18
21
|
[items_1.EItem.TWISTED_BOW]: [],
|
|
19
22
|
// TOB
|
|
23
|
+
[items_1.EItem.LIL_ZIK]: [],
|
|
24
|
+
[items_1.EItem.SANGUINE_DUST]: [],
|
|
25
|
+
[items_1.EItem.HOLY_ORNAMENT_KIT]: [],
|
|
26
|
+
[items_1.EItem.SANGUINE_ORNAMENT_KIT]: [],
|
|
20
27
|
[items_1.EItem.AVERNIC_DEFENDER_HILT]: [],
|
|
21
28
|
[items_1.EItem.JUSTICIAR_LEGGUARDS]: [],
|
|
22
29
|
[items_1.EItem.JUSTICIAR_CHESTGUARD]: [],
|
|
@@ -25,6 +32,7 @@ exports.MonsterDrops = {
|
|
|
25
32
|
[items_1.EItem.GHRAZI_RAPIER]: [],
|
|
26
33
|
[items_1.EItem.SCYTHE_OF_VITUR_UNCHARGED]: [],
|
|
27
34
|
// TOA
|
|
35
|
+
[items_1.EItem.TUMEKENS_GUARDIAN]: [],
|
|
28
36
|
[items_1.EItem.LIGHTBEARER]: [],
|
|
29
37
|
[items_1.EItem.OSMUMTENS_FANG]: [],
|
|
30
38
|
[items_1.EItem.ELIDINIS_WARD]: [],
|
|
@@ -33,6 +41,22 @@ exports.MonsterDrops = {
|
|
|
33
41
|
[items_1.EItem.MASORI_MASK]: [],
|
|
34
42
|
[items_1.EItem.TUMEKENS_SHADOW_UNCHARGED]: [],
|
|
35
43
|
// DT2
|
|
44
|
+
// Duke Sucellus
|
|
45
|
+
[items_1.EItem.BARON]: [],
|
|
46
|
+
[items_1.EItem.EYE_OF_THE_DUKE]: [],
|
|
47
|
+
[items_1.EItem.MAGUS_VESTIGE]: [],
|
|
48
|
+
// The Leviathan
|
|
49
|
+
[items_1.EItem.LILVIATHAN]: [],
|
|
50
|
+
[items_1.EItem.LEVIATHANS_LURE]: [],
|
|
51
|
+
[items_1.EItem.VENATOR_VESTIGE]: [],
|
|
52
|
+
// Vardorvis
|
|
53
|
+
[items_1.EItem.BUTCH]: [],
|
|
54
|
+
[items_1.EItem.EXECUTIONERS_AXE_HEAD]: [],
|
|
55
|
+
[items_1.EItem.ULTOR_VESTIGE]: [],
|
|
56
|
+
// The Whisperer
|
|
57
|
+
[items_1.EItem.WISP]: [],
|
|
58
|
+
[items_1.EItem.SIRENS_STAFF]: [],
|
|
59
|
+
[items_1.EItem.BELLATOR_VESTIGE]: [],
|
|
36
60
|
[items_1.EItem.VIRTUS_MASK]: [monsters_1.EMonster.VARDORVIS, monsters_1.EMonster.THE_WHISPERER, monsters_1.EMonster.DUKE_SUCELLUS, monsters_1.EMonster.THE_LEVIATHAN],
|
|
37
61
|
[items_1.EItem.VIRTUS_ROBE_TOP]: [monsters_1.EMonster.VARDORVIS, monsters_1.EMonster.THE_WHISPERER, monsters_1.EMonster.DUKE_SUCELLUS, monsters_1.EMonster.THE_LEVIATHAN],
|
|
38
62
|
[items_1.EItem.VIRTUS_ROBE_BOTTOM]: [monsters_1.EMonster.VARDORVIS, monsters_1.EMonster.THE_WHISPERER, monsters_1.EMonster.DUKE_SUCELLUS, monsters_1.EMonster.THE_LEVIATHAN],
|
|
@@ -77,14 +101,30 @@ exports.MonsterDrops = {
|
|
|
77
101
|
[items_1.EItem.ABYSSAL_DAGGER]: [monsters_1.EMonster.ABYSSAL_SIRE, monsters_1.EMonster.ABYSSAL_DEMON],
|
|
78
102
|
[items_1.EItem.ABYSSAL_WHIP]: [monsters_1.EMonster.ABYSSAL_SIRE, monsters_1.EMonster.ABYSSAL_DEMON],
|
|
79
103
|
[items_1.EItem.ABYSSAL_ORPHAN]: [],
|
|
104
|
+
[items_1.EItem.UNSIRED]: [],
|
|
105
|
+
[items_1.EItem.ABYSSAL_HEAD]: [],
|
|
80
106
|
// Alchemical Hydra
|
|
81
107
|
[items_1.EItem.HYDRAS_CLAW]: [],
|
|
82
108
|
[items_1.EItem.HYDRA_TAIL]: [],
|
|
83
109
|
[items_1.EItem.HYDRA_LEATHER]: [],
|
|
84
110
|
[items_1.EItem.JAR_OF_CHEMICALS]: [],
|
|
85
111
|
[items_1.EItem.IKKLE_HYDRA]: [],
|
|
86
|
-
|
|
87
|
-
|
|
112
|
+
[items_1.EItem.HYDRAS_FANG]: [],
|
|
113
|
+
[items_1.EItem.HYDRAS_EYE]: [],
|
|
114
|
+
[items_1.EItem.HYDRAS_HEART]: [],
|
|
115
|
+
[items_1.EItem.ALCHEMICAL_HYDRA_HEADS]: [],
|
|
116
|
+
// Amoxliatl
|
|
117
|
+
[items_1.EItem.MOXI]: [],
|
|
118
|
+
[items_1.EItem.GLACIAL_TEMOTLI]: [],
|
|
119
|
+
[items_1.EItem.PENDANT_OF_ATES_INERT]: [],
|
|
120
|
+
// Araxxor
|
|
121
|
+
[items_1.EItem.NID]: [],
|
|
122
|
+
[items_1.EItem.ARAXYTE_FANG]: [],
|
|
123
|
+
[items_1.EItem.NOXIOUS_POINT]: [],
|
|
124
|
+
[items_1.EItem.NOXIOUS_BLADE]: [],
|
|
125
|
+
[items_1.EItem.NOXIOUS_POMMEL]: [],
|
|
126
|
+
[items_1.EItem.ARAXYTE_HEAD]: [],
|
|
127
|
+
[items_1.EItem.JAR_OF_VENOM]: [],
|
|
88
128
|
// Barrows
|
|
89
129
|
[items_1.EItem.KARILS_COIF]: [],
|
|
90
130
|
[items_1.EItem.KARILS_LEATHERTOP]: [],
|
|
@@ -133,10 +173,12 @@ exports.MonsterDrops = {
|
|
|
133
173
|
[items_1.EItem.PEGASIAN_CRYSTAL]: [],
|
|
134
174
|
[items_1.EItem.PRIMORDIAL_CRYSTAL]: [],
|
|
135
175
|
[items_1.EItem.SMOULDERING_STONE]: [monsters_1.EMonster.CERBERUS, monsters_1.EMonster.HELLHOUND],
|
|
176
|
+
[items_1.EItem.JAR_OF_SOULS]: [],
|
|
136
177
|
[items_1.EItem.HELLPUPPY]: [],
|
|
137
178
|
// Chaos Fanatic
|
|
138
179
|
[items_1.EItem.ODIUM_SHARD_1]: [],
|
|
139
180
|
[items_1.EItem.MALEDICTION_SHARD_1]: [],
|
|
181
|
+
[items_1.EItem.PET_CHAOS_ELEMENTAL]: [monsters_1.EMonster.CHAOS_ELEMENTAL, monsters_1.EMonster.CHAOS_FANATIC],
|
|
140
182
|
// Crazy Archaeologist
|
|
141
183
|
[items_1.EItem.ODIUM_SHARD_2]: [],
|
|
142
184
|
[items_1.EItem.MALEDICTION_SHARD_2]: [],
|
|
@@ -182,12 +224,15 @@ exports.MonsterDrops = {
|
|
|
182
224
|
// Hespori
|
|
183
225
|
[items_1.EItem.BOTTOMLESS_COMPOST_BUCKET]: [],
|
|
184
226
|
// The Hueycoatl
|
|
185
|
-
|
|
227
|
+
[items_1.EItem.HUBERTE]: [],
|
|
228
|
+
[items_1.EItem.DRAGON_HUNTER_WAND]: [],
|
|
229
|
+
[items_1.EItem.TOME_OF_EARTH]: [],
|
|
230
|
+
[items_1.EItem.HUEYCOATL_HIDE]: [],
|
|
186
231
|
// Kalphite Queen
|
|
187
232
|
[items_1.EItem.JAR_OF_SAND]: [],
|
|
188
233
|
[items_1.EItem.KALPHITE_PRINCESS]: [],
|
|
189
234
|
// King Black Dragon
|
|
190
|
-
[items_1.EItem.DRACONIC_VISAGE]: [monsters_1.EMonster.KING_BLACK_DRAGON],
|
|
235
|
+
[items_1.EItem.DRACONIC_VISAGE]: [monsters_1.EMonster.KING_BLACK_DRAGON, monsters_1.EMonster.VORKATH__2],
|
|
191
236
|
[items_1.EItem.PRINCE_BLACK_DRAGON]: [],
|
|
192
237
|
// Kraken
|
|
193
238
|
[items_1.EItem.KRAKEN_TENTACLE]: [monsters_1.EMonster.KRAKEN, monsters_1.EMonster.CAVE_KRAKEN],
|
|
@@ -221,27 +266,47 @@ exports.MonsterDrops = {
|
|
|
221
266
|
// Obor
|
|
222
267
|
[items_1.EItem.HILL_GIANT_CLUB]: [],
|
|
223
268
|
// Phantom Muspah
|
|
269
|
+
[items_1.EItem.MUPHIN]: [],
|
|
224
270
|
[items_1.EItem.VENATOR_SHARD]: [],
|
|
271
|
+
[items_1.EItem.ANCIENT_ICON]: [],
|
|
225
272
|
// Royal Titans
|
|
226
|
-
|
|
273
|
+
[items_1.EItem.BRAN]: [],
|
|
274
|
+
[items_1.EItem.DEADEYE_PRAYER_SCROLL]: [],
|
|
275
|
+
[items_1.EItem.MYSTIC_VIGOUR_PRAYER_SCROLL]: [],
|
|
276
|
+
[items_1.EItem.GIANTSOUL_AMULET]: [],
|
|
277
|
+
[items_1.EItem.ICE_ELEMENT_STAFF_CROWN]: [],
|
|
278
|
+
[items_1.EItem.FIRE_ELEMENT_STAFF_CROWN]: [],
|
|
227
279
|
// Sarachnis
|
|
228
280
|
[items_1.EItem.JAR_OF_EYES]: [],
|
|
229
281
|
[items_1.EItem.SARACHNIS_CUDGEL]: [],
|
|
230
282
|
[items_1.EItem.SRARACHA]: [],
|
|
231
283
|
// Scurrius
|
|
232
|
-
|
|
284
|
+
[items_1.EItem.SCURRIUS_SPINE]: [],
|
|
285
|
+
[items_1.EItem.SCURRY]: [],
|
|
233
286
|
// Skotizo
|
|
234
287
|
[items_1.EItem.JAR_OF_DARKNESS]: [],
|
|
288
|
+
[items_1.EItem.DARK_CLAW]: [],
|
|
235
289
|
[items_1.EItem.SKOTOS]: [],
|
|
236
290
|
// Thermonuclear Smoke Devil
|
|
291
|
+
[items_1.EItem.PET_SMOKE_DEVIL]: [],
|
|
237
292
|
[items_1.EItem.OCCULT_NECKLACE]: [monsters_1.EMonster.THERMONUCLEAR_SMOKE_DEVIL, monsters_1.EMonster.SMOKE_DEVIL],
|
|
238
293
|
[items_1.EItem.SMOKE_BATTLESTAFF]: [],
|
|
239
294
|
[items_1.EItem.JAR_OF_SMOKE]: [],
|
|
240
295
|
// Vorkath
|
|
296
|
+
[items_1.EItem.VORKI]: [],
|
|
241
297
|
[items_1.EItem.SKELETAL_VISAGE]: [monsters_1.EMonster.VORKATH__2],
|
|
242
298
|
[items_1.EItem.JAR_OF_DECAY]: [],
|
|
243
299
|
[items_1.EItem.DRAGONBONE_NECKLACE]: [],
|
|
300
|
+
// Yama
|
|
301
|
+
[items_1.EItem.YAMI]: [],
|
|
302
|
+
[items_1.EItem.OATHPLATE_HELM]: [],
|
|
303
|
+
[items_1.EItem.OATHPLATE_CHEST]: [],
|
|
304
|
+
[items_1.EItem.OATHPLATE_LEGS]: [],
|
|
305
|
+
[items_1.EItem.SOULFLAME_HORN]: [],
|
|
244
306
|
// Zulrah
|
|
307
|
+
[items_1.EItem.PET_SNAKELING]: [],
|
|
308
|
+
[items_1.EItem.TANZANITE_MUTAGEN]: [],
|
|
309
|
+
[items_1.EItem.MAGMA_MUTAGEN]: [],
|
|
245
310
|
[items_1.EItem.JAR_OF_SWAMP]: [],
|
|
246
311
|
[items_1.EItem.MAGIC_FANG]: [],
|
|
247
312
|
[items_1.EItem.SERPENTINE_VISAGE]: [],
|
|
@@ -250,8 +315,4 @@ exports.MonsterDrops = {
|
|
|
250
315
|
[items_1.EItem.DRAGON_CHAINBODY__2]: [monsters_1.EMonster.KALPHITE_QUEEN, monsters_1.EMonster.THERMONUCLEAR_SMOKE_DEVIL, monsters_1.EMonster.CHOKE_DEVIL, monsters_1.EMonster.NUCLEAR_SMOKE_DEVIL, monsters_1.EMonster.DUST_DEVIL, monsters_1.EMonster.SMOKE_DEVIL],
|
|
251
316
|
[items_1.EItem.DRAGON_2H_SWORD]: [monsters_1.EMonster.CHAOS_ELEMENTAL, monsters_1.EMonster.SCORPIA, monsters_1.EMonster.CALLISTO, monsters_1.EMonster.KALPHITE_QUEEN, monsters_1.EMonster.VENENATIS__2, monsters_1.EMonster.VETION, monsters_1.EMonster.ARTIO, monsters_1.EMonster.CALVARION, monsters_1.EMonster.SPINDEL],
|
|
252
317
|
[items_1.EItem.DRAGON_PICKAXE]: [monsters_1.EMonster.CHAOS_ELEMENTAL, monsters_1.EMonster.CALLISTO__2, monsters_1.EMonster.KALPHITE_QUEEN, monsters_1.EMonster.VENENATIS__2, monsters_1.EMonster.VETION__2, monsters_1.EMonster.ARTIO, monsters_1.EMonster.CALVARION, monsters_1.EMonster.SPINDEL, monsters_1.EMonster.KING_BLACK_DRAGON],
|
|
253
|
-
// DEBUG
|
|
254
|
-
[items_1.EItem.COWHIDE]: [monsters_1.EMonster.COW, monsters_1.EMonster.COW_CALF],
|
|
255
|
-
[items_1.EItem.RAW_BEEF]: [monsters_1.EMonster.COW, monsters_1.EMonster.COW_CALF],
|
|
256
|
-
[items_1.EItem.BONES]: [monsters_1.EMonster.COW, monsters_1.EMonster.COW_CALF],
|
|
257
318
|
};
|
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bingosrs/models",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto generated model package for use with BingOSRS",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"src",
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@eslint/js": "^9.29.0",
|
|
13
|
-
"eslint": "^9.29.0",
|
|
14
|
-
"eslint-config-prettier": "^10.1.5",
|
|
15
|
-
"eslint-plugin-prettier": "^5.5.0",
|
|
16
|
-
"globals": "^16.2.0",
|
|
17
|
-
"node-fetch": "^3.3.2",
|
|
18
|
-
"prettier": "^3.5.3",
|
|
19
|
-
"rimraf": "^6.0.1",
|
|
20
|
-
"typescript": "^5.8.3",
|
|
21
|
-
"typescript-eslint": "^8.34.1"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"clean": "rimraf dist",
|
|
25
|
-
"build": "tsc",
|
|
26
|
-
"lint:fix": "eslint --fix",
|
|
27
|
-
"update-data": "node scripts/update-data.js"
|
|
28
|
-
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/mistereman22/bingosrs-models.git"
|
|
32
|
-
},
|
|
33
|
-
"keywords": [
|
|
34
|
-
"bingosrs",
|
|
35
|
-
"osrs",
|
|
36
|
-
"runescape",
|
|
37
|
-
"oldschool"
|
|
38
|
-
],
|
|
39
|
-
"author": "mistereman22",
|
|
40
|
-
"license": "MIT",
|
|
41
|
-
"bugs": {
|
|
42
|
-
"url": "https://github.com/mistereman22/bingosrs-models/issues"
|
|
43
|
-
},
|
|
44
|
-
"homepage": "https://github.com/mistereman22/bingosrs-models#readme"
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bingosrs/models",
|
|
3
|
+
"version": "1.0.11",
|
|
4
|
+
"description": "Auto generated model package for use with BingOSRS",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"src",
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@eslint/js": "^9.29.0",
|
|
13
|
+
"eslint": "^9.29.0",
|
|
14
|
+
"eslint-config-prettier": "^10.1.5",
|
|
15
|
+
"eslint-plugin-prettier": "^5.5.0",
|
|
16
|
+
"globals": "^16.2.0",
|
|
17
|
+
"node-fetch": "^3.3.2",
|
|
18
|
+
"prettier": "^3.5.3",
|
|
19
|
+
"rimraf": "^6.0.1",
|
|
20
|
+
"typescript": "^5.8.3",
|
|
21
|
+
"typescript-eslint": "^8.34.1"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"clean": "rimraf dist",
|
|
25
|
+
"build": "tsc",
|
|
26
|
+
"lint:fix": "eslint --fix",
|
|
27
|
+
"update-data": "node scripts/update-data.js"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/mistereman22/bingosrs-models.git"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"bingosrs",
|
|
35
|
+
"osrs",
|
|
36
|
+
"runescape",
|
|
37
|
+
"oldschool"
|
|
38
|
+
],
|
|
39
|
+
"author": "mistereman22",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/mistereman22/bingosrs-models/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/mistereman22/bingosrs-models#readme"
|
|
45
|
+
}
|
package/src/data/items.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {EItem} from "../enums/items";
|
|
2
|
-
import itemsData from './items.json';
|
|
3
|
-
|
|
4
|
-
interface Item {
|
|
5
|
-
id: number
|
|
6
|
-
name: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface ItemsDictionary {
|
|
10
|
-
[key: string]: Item;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const items: ItemsDictionary = itemsData
|
|
14
|
-
|
|
15
|
-
export class Items {
|
|
16
|
-
static get(itemId: EItem): Item | undefined {
|
|
17
|
-
return items[itemId.toString()]
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
1
|
+
import {EItem} from "../enums/items";
|
|
2
|
+
import itemsData from './items.json';
|
|
3
|
+
|
|
4
|
+
interface Item {
|
|
5
|
+
id: number
|
|
6
|
+
name: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface ItemsDictionary {
|
|
10
|
+
[key: string]: Item;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const items: ItemsDictionary = itemsData
|
|
14
|
+
|
|
15
|
+
export class Items {
|
|
16
|
+
static get(itemId: EItem): Item | undefined {
|
|
17
|
+
return items[itemId.toString()]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
package/src/data/monsters.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {EMonster} from "../enums/monsters";
|
|
2
|
-
import monstersData from './monsters.json'
|
|
3
|
-
|
|
4
|
-
interface Monster {
|
|
5
|
-
id: number
|
|
6
|
-
name: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface MonstersDictionary {
|
|
10
|
-
[key: string]: Monster;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const monsters: MonstersDictionary = monstersData
|
|
14
|
-
|
|
15
|
-
export class Monsters {
|
|
16
|
-
static get(monsterId: EMonster): Monster | undefined {
|
|
17
|
-
return monsters[monsterId.toString()]
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
1
|
+
import {EMonster} from "../enums/monsters";
|
|
2
|
+
import monstersData from './monsters.json'
|
|
3
|
+
|
|
4
|
+
interface Monster {
|
|
5
|
+
id: number
|
|
6
|
+
name: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface MonstersDictionary {
|
|
10
|
+
[key: string]: Monster;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const monsters: MonstersDictionary = monstersData
|
|
14
|
+
|
|
15
|
+
export class Monsters {
|
|
16
|
+
static get(monsterId: EMonster): Monster | undefined {
|
|
17
|
+
return monsters[monsterId.toString()]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|