teyvatdb 0.1.12 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/genshin_data/artifact_sets/artifact_data.rb +263 -0
  4. data/lib/{teyvatdb → genshin_data}/artifact_sets.rb +3 -2
  5. data/lib/genshin_data/characters/character_data.rb +1115 -0
  6. data/lib/{teyvatdb → genshin_data}/characters.rb +8 -5
  7. data/lib/{teyvatdb → genshin_data}/materials/development/elite_monster_drops_data.rb +59 -55
  8. data/lib/{teyvatdb → genshin_data}/materials/development/gems_data.rb +37 -33
  9. data/lib/{teyvatdb → genshin_data}/materials/development/general_data.rb +15 -11
  10. data/lib/{teyvatdb → genshin_data}/materials/development/local_specialty_data.rb +59 -44
  11. data/lib/{teyvatdb → genshin_data}/materials/development/monster_loot_drops_data.rb +44 -40
  12. data/lib/{teyvatdb → genshin_data}/materials/development/talent_books_data.rb +50 -46
  13. data/lib/{teyvatdb → genshin_data}/materials/development/weapon_material_data.rb +65 -61
  14. data/lib/{teyvatdb → genshin_data}/materials/development/weapon_refinement_material_data.rb +18 -14
  15. data/lib/{teyvatdb → genshin_data}/materials/development/weekly_boss_drops_data.rb +62 -25
  16. data/lib/{teyvatdb → genshin_data}/materials/development/world_boss_drops_data.rb +54 -28
  17. data/lib/genshin_data/materials/development.rb +71 -0
  18. data/lib/{teyvatdb → genshin_data}/materials/standard/cooking_material_data.rb +60 -56
  19. data/lib/{teyvatdb → genshin_data}/materials/standard/crafting_material_data.rb +18 -14
  20. data/lib/{teyvatdb → genshin_data}/materials/standard/fishing_material_data.rb +49 -45
  21. data/lib/{teyvatdb → genshin_data}/materials/standard/forging_material_data.rb +23 -19
  22. data/lib/{teyvatdb → genshin_data}/materials/standard/furniture_material_data.rb +29 -25
  23. data/lib/genshin_data/materials/standard.rb +41 -0
  24. data/lib/{teyvatdb → genshin_data}/materials.rb +4 -2
  25. data/lib/genshin_data/nations/nation_data.rb +57 -0
  26. data/lib/genshin_data/nations.rb +12 -0
  27. data/lib/genshin_data/weapons/weapon_data/bows.rb +369 -0
  28. data/lib/genshin_data/weapons/weapon_data/catalysts.rb +359 -0
  29. data/lib/genshin_data/weapons/weapon_data/claymores.rb +339 -0
  30. data/lib/genshin_data/weapons/weapon_data/polearms.rb +289 -0
  31. data/lib/genshin_data/weapons/weapon_data/swords.rb +400 -0
  32. data/lib/genshin_data/weapons/weapon_data.rb +11 -0
  33. data/lib/genshin_data/weapons.rb +39 -0
  34. data/lib/genshin_data.rb +10 -0
  35. data/lib/{teyvatdb/genshin_data → genshin_object}/artifact_set.rb +4 -3
  36. data/lib/{teyvatdb/genshin_data → genshin_object}/character.rb +1 -1
  37. data/lib/{teyvatdb/genshin_data → genshin_object}/material.rb +1 -1
  38. data/lib/{teyvatdb/genshin_data → genshin_object}/nation.rb +1 -1
  39. data/lib/{teyvatdb/genshin_data → genshin_object}/weapon.rb +1 -1
  40. data/lib/genshin_object.rb +10 -0
  41. data/lib/teyvatdb/version.rb +1 -1
  42. data/lib/teyvatdb.rb +3 -7
  43. metadata +41 -35
  44. data/lib/teyvatdb/artifact_sets/artifact_data.rb +0 -265
  45. data/lib/teyvatdb/characters/character_data.rb +0 -1074
  46. data/lib/teyvatdb/genshin_data.rb +0 -13
  47. data/lib/teyvatdb/materials/development.rb +0 -428
  48. data/lib/teyvatdb/materials/standard.rb +0 -200
  49. data/lib/teyvatdb/nations/nation_data.rb +0 -55
  50. data/lib/teyvatdb/nations.rb +0 -21
  51. data/lib/teyvatdb/weapons/weapon_data.rb +0 -1697
  52. data/lib/teyvatdb/weapons.rb +0 -189
@@ -1,6 +1,10 @@
1
- module TeyvatDB::Materials::Development
1
+ module GenshinData::Materials::Development
2
2
  module LocalSpecialtyData
3
- AMAKUMO_FRUIT = TeyvatDB::GenshinData::Material.new(
3
+ def self.all
4
+ self.constants.map { |x| "GenshinData::Materials::Development::LocalSpecialtyData::#{x}".constantize }
5
+ end
6
+
7
+ AMAKUMO_FRUIT = GenshinObject::Material.new(
4
8
  kamera_key: "AmakumoFruit",
5
9
  name: "Amakumo Fruit",
6
10
  rarity: 1,
@@ -11,7 +15,7 @@ module TeyvatDB::Materials::Development
11
15
  nation_name: :inazuma,
12
16
  ).freeze
13
17
 
14
- BERYL_CONCH = TeyvatDB::GenshinData::Material.new(
18
+ BERYL_CONCH = GenshinObject::Material.new(
15
19
  kamera_key: "BerylConch",
16
20
  name: "Beryl Conch",
17
21
  rarity: 1,
@@ -22,7 +26,7 @@ module TeyvatDB::Materials::Development
22
26
  nation_name: :fontaine,
23
27
  ).freeze
24
28
 
25
- CALLA_LILY = TeyvatDB::GenshinData::Material.new(
29
+ CALLA_LILY = GenshinObject::Material.new(
26
30
  kamera_key: "CallaLily",
27
31
  name: "Calla Lily",
28
32
  rarity: 1,
@@ -33,7 +37,7 @@ module TeyvatDB::Materials::Development
33
37
  nation_name: :mondstadt,
34
38
  ).freeze
35
39
 
36
- CECILIA = TeyvatDB::GenshinData::Material.new(
40
+ CECILIA = GenshinObject::Material.new(
37
41
  kamera_key: "Cecilia",
38
42
  name: "Cecilia",
39
43
  rarity: 1,
@@ -44,7 +48,7 @@ module TeyvatDB::Materials::Development
44
48
  nation_name: :mondstadt,
45
49
  ).freeze
46
50
 
47
- COR_LAPIS = TeyvatDB::GenshinData::Material.new(
51
+ COR_LAPIS = GenshinObject::Material.new(
48
52
  kamera_key: "CorLapis",
49
53
  name: "Cor Lapis",
50
54
  rarity: 1,
@@ -55,7 +59,7 @@ module TeyvatDB::Materials::Development
55
59
  nation_name: :liyue,
56
60
  ).freeze
57
61
 
58
- CRYSTAL_MARROW = TeyvatDB::GenshinData::Material.new(
62
+ CRYSTAL_MARROW = GenshinObject::Material.new(
59
63
  kamera_key: "CrystalMarrow",
60
64
  name: "Crystal Marrow",
61
65
  rarity: 1,
@@ -66,7 +70,7 @@ module TeyvatDB::Materials::Development
66
70
  nation_name: :inazuma,
67
71
  ).freeze
68
72
 
69
- DANDELION_SEED = TeyvatDB::GenshinData::Material.new(
73
+ DANDELION_SEED = GenshinObject::Material.new(
70
74
  kamera_key: "DandelionSeed",
71
75
  name: "Dandelion Seed",
72
76
  rarity: 1,
@@ -77,7 +81,7 @@ module TeyvatDB::Materials::Development
77
81
  nation_name: :mondstadt,
78
82
  ).freeze
79
83
 
80
- DENDROBIUM = TeyvatDB::GenshinData::Material.new(
84
+ DENDROBIUM = GenshinObject::Material.new(
81
85
  kamera_key: "Dendrobium",
82
86
  name: "Dendrobium",
83
87
  rarity: 1,
@@ -88,7 +92,7 @@ module TeyvatDB::Materials::Development
88
92
  nation_name: :inazuma,
89
93
  ).freeze
90
94
 
91
- FLUORESCENT_FUNGUS = TeyvatDB::GenshinData::Material.new(
95
+ FLUORESCENT_FUNGUS = GenshinObject::Material.new(
92
96
  kamera_key: "FluorescentFungus",
93
97
  name: "Fluorescent Fungus",
94
98
  rarity: 1,
@@ -99,7 +103,7 @@ module TeyvatDB::Materials::Development
99
103
  nation_name: :sumeru,
100
104
  ).freeze
101
105
 
102
- GLAZE_LILY = TeyvatDB::GenshinData::Material.new(
106
+ GLAZE_LILY = GenshinObject::Material.new(
103
107
  kamera_key: "GlazeLily",
104
108
  name: "Glaze Lily",
105
109
  rarity: 1,
@@ -110,7 +114,7 @@ module TeyvatDB::Materials::Development
110
114
  nation_name: :liyue,
111
115
  ).freeze
112
116
 
113
- HENNA_BERRY = TeyvatDB::GenshinData::Material.new(
117
+ HENNA_BERRY = GenshinObject::Material.new(
114
118
  kamera_key: "HennaBerry",
115
119
  name: "Henna Berry",
116
120
  rarity: 1,
@@ -121,7 +125,7 @@ module TeyvatDB::Materials::Development
121
125
  nation_name: :sumeru,
122
126
  ).freeze
123
127
 
124
- JUEYUN_CHILI = TeyvatDB::GenshinData::Material.new(
128
+ JUEYUN_CHILI = GenshinObject::Material.new(
125
129
  kamera_key: "JueyunChili",
126
130
  name: "Jueyun Chili",
127
131
  rarity: 1,
@@ -132,7 +136,7 @@ module TeyvatDB::Materials::Development
132
136
  nation_name: :liyue,
133
137
  ).freeze
134
138
 
135
- KALPALATA_LOTUS = TeyvatDB::GenshinData::Material.new(
139
+ KALPALATA_LOTUS = GenshinObject::Material.new(
136
140
  kamera_key: "KalpalataLotus",
137
141
  name: "Kalpalata Lotus",
138
142
  rarity: 1,
@@ -143,7 +147,18 @@ module TeyvatDB::Materials::Development
143
147
  nation_name: :sumeru,
144
148
  ).freeze
145
149
 
146
- LUMIDOUCE_BELL = TeyvatDB::GenshinData::Material.new(
150
+ LAKELIGHT_LILY = GenshinObject::Material.new(
151
+ kamera_key: "LakelightLily",
152
+ name: "Lakelight Lily",
153
+ rarity: 1,
154
+ family: nil,
155
+ inventory_type: :standard_material,
156
+ source_category: :gathering,
157
+ source_sub_category: :local_specialty,
158
+ nation_name: :fontaine,
159
+ ).freeze
160
+
161
+ LUMIDOUCE_BELL = GenshinObject::Material.new(
147
162
  kamera_key: "LumidouceBell",
148
163
  name: "Lumidouce Bell",
149
164
  rarity: 1,
@@ -154,7 +169,7 @@ module TeyvatDB::Materials::Development
154
169
  nation_name: :fontaine,
155
170
  ).freeze
156
171
 
157
- LUMITOILE = TeyvatDB::GenshinData::Material.new(
172
+ LUMITOILE = GenshinObject::Material.new(
158
173
  kamera_key: "Lumitoile",
159
174
  name: "Lumitoile",
160
175
  rarity: 1,
@@ -165,7 +180,7 @@ module TeyvatDB::Materials::Development
165
180
  nation_name: :fontaine,
166
181
  ).freeze
167
182
 
168
- MARCOTTE = TeyvatDB::GenshinData::Material.new(
183
+ MARCOTTE = GenshinObject::Material.new(
169
184
  kamera_key: "Marcotte",
170
185
  name: "Marcotte",
171
186
  rarity: 1,
@@ -176,7 +191,7 @@ module TeyvatDB::Materials::Development
176
191
  nation_name: :fontaine,
177
192
  ).freeze
178
193
 
179
- MOURNING_FLOWER = TeyvatDB::GenshinData::Material.new(
194
+ MOURNING_FLOWER = GenshinObject::Material.new(
180
195
  kamera_key: "MourningFlower",
181
196
  name: "Mourning Flower",
182
197
  rarity: 1,
@@ -187,7 +202,7 @@ module TeyvatDB::Materials::Development
187
202
  nation_name: :sumeru,
188
203
  ).freeze
189
204
 
190
- NAKU_WEED = TeyvatDB::GenshinData::Material.new(
205
+ NAKU_WEED = GenshinObject::Material.new(
191
206
  kamera_key: "NakuWeed",
192
207
  name: "Naku Weed",
193
208
  rarity: 1,
@@ -198,7 +213,7 @@ module TeyvatDB::Materials::Development
198
213
  nation_name: :inazuma,
199
214
  ).freeze
200
215
 
201
- NILOTPALA_LOTUS = TeyvatDB::GenshinData::Material.new(
216
+ NILOTPALA_LOTUS = GenshinObject::Material.new(
202
217
  kamera_key: "NilotpalaLotus",
203
218
  name: "Nilotpala Lotus",
204
219
  rarity: 1,
@@ -209,7 +224,7 @@ module TeyvatDB::Materials::Development
209
224
  nation_name: :sumeru,
210
225
  ).freeze
211
226
 
212
- NOCTILUCOUS_JADE = TeyvatDB::GenshinData::Material.new(
227
+ NOCTILUCOUS_JADE = GenshinObject::Material.new(
213
228
  kamera_key: "NoctilucousJade",
214
229
  name: "Noctilucous Jade",
215
230
  rarity: 1,
@@ -220,7 +235,7 @@ module TeyvatDB::Materials::Development
220
235
  nation_name: :liyue,
221
236
  ).freeze
222
237
 
223
- ONIKABUTO = TeyvatDB::GenshinData::Material.new(
238
+ ONIKABUTO = GenshinObject::Material.new(
224
239
  kamera_key: "Onikabuto",
225
240
  name: "Onikabuto",
226
241
  rarity: 1,
@@ -231,7 +246,7 @@ module TeyvatDB::Materials::Development
231
246
  nation_name: :inazuma,
232
247
  ).freeze
233
248
 
234
- PADISARAH = TeyvatDB::GenshinData::Material.new(
249
+ PADISARAH = GenshinObject::Material.new(
235
250
  kamera_key: "Padisarah",
236
251
  name: "Padisarah",
237
252
  rarity: 1,
@@ -242,7 +257,7 @@ module TeyvatDB::Materials::Development
242
257
  nation_name: :sumeru,
243
258
  ).freeze
244
259
 
245
- PHILANEMO_MUSHROOM = TeyvatDB::GenshinData::Material.new(
260
+ PHILANEMO_MUSHROOM = GenshinObject::Material.new(
246
261
  kamera_key: "PhilanemoMushroom",
247
262
  name: "Philanemo Mushroom",
248
263
  rarity: 1,
@@ -253,7 +268,7 @@ module TeyvatDB::Materials::Development
253
268
  nation_name: :mondstadt,
254
269
  ).freeze
255
270
 
256
- PLUIE_LOTUS = TeyvatDB::GenshinData::Material.new(
271
+ PLUIE_LOTUS = GenshinObject::Material.new(
257
272
  kamera_key: "PluieLotus",
258
273
  name: "Pluie Lotus",
259
274
  rarity: 1,
@@ -264,7 +279,7 @@ module TeyvatDB::Materials::Development
264
279
  nation_name: :fontaine,
265
280
  ).freeze
266
281
 
267
- QINGXIN = TeyvatDB::GenshinData::Material.new(
282
+ QINGXIN = GenshinObject::Material.new(
268
283
  kamera_key: "Qingxin",
269
284
  name: "Qingxin",
270
285
  rarity: 1,
@@ -275,7 +290,7 @@ module TeyvatDB::Materials::Development
275
290
  nation_name: :liyue,
276
291
  ).freeze
277
292
 
278
- RAINBOW_ROSE = TeyvatDB::GenshinData::Material.new(
293
+ RAINBOW_ROSE = GenshinObject::Material.new(
279
294
  kamera_key: "RainbowRose",
280
295
  name: "Rainbow Rose",
281
296
  rarity: 1,
@@ -286,7 +301,7 @@ module TeyvatDB::Materials::Development
286
301
  nation_name: :fontaine,
287
302
  ).freeze
288
303
 
289
- ROMARITIME_FLOWER = TeyvatDB::GenshinData::Material.new(
304
+ ROMARITIME_FLOWER = GenshinObject::Material.new(
290
305
  kamera_key: "RomaritimeFlower",
291
306
  name: "Romaritime Flower",
292
307
  rarity: 1,
@@ -297,7 +312,7 @@ module TeyvatDB::Materials::Development
297
312
  nation_name: :fontaine,
298
313
  ).freeze
299
314
 
300
- RUKKHASHAVA_MUSHROOMS = TeyvatDB::GenshinData::Material.new(
315
+ RUKKHASHAVA_MUSHROOMS = GenshinObject::Material.new(
301
316
  kamera_key: "RukkhashavaMushrooms",
302
317
  name: "Rukkhashava Mushrooms",
303
318
  rarity: 1,
@@ -308,7 +323,7 @@ module TeyvatDB::Materials::Development
308
323
  nation_name: :sumeru,
309
324
  ).freeze
310
325
 
311
- SAKURA_BLOOM = TeyvatDB::GenshinData::Material.new(
326
+ SAKURA_BLOOM = GenshinObject::Material.new(
312
327
  kamera_key: "SakuraBloom",
313
328
  name: "Sakura Bloom",
314
329
  rarity: 1,
@@ -319,7 +334,7 @@ module TeyvatDB::Materials::Development
319
334
  nation_name: :inazuma,
320
335
  ).freeze
321
336
 
322
- SAND_GREASE_PUPA = TeyvatDB::GenshinData::Material.new(
337
+ SAND_GREASE_PUPA = GenshinObject::Material.new(
323
338
  kamera_key: "SandGreasePupa",
324
339
  name: "Sand Grease Pupa",
325
340
  rarity: 1,
@@ -330,7 +345,7 @@ module TeyvatDB::Materials::Development
330
345
  nation_name: :sumeru,
331
346
  ).freeze
332
347
 
333
- SANGO_PEARL = TeyvatDB::GenshinData::Material.new(
348
+ SANGO_PEARL = GenshinObject::Material.new(
334
349
  kamera_key: "SangoPearl",
335
350
  name: "SangoPearl",
336
351
  rarity: 1,
@@ -341,7 +356,7 @@ module TeyvatDB::Materials::Development
341
356
  nation_name: :inazuma,
342
357
  ).freeze
343
358
 
344
- SCARAB = TeyvatDB::GenshinData::Material.new(
359
+ SCARAB = GenshinObject::Material.new(
345
360
  kamera_key: "Scarab",
346
361
  name: "Scarab",
347
362
  rarity: 1,
@@ -352,7 +367,7 @@ module TeyvatDB::Materials::Development
352
367
  nation_name: :sumeru,
353
368
  ).freeze
354
369
 
355
- SEA_GANODERMA = TeyvatDB::GenshinData::Material.new(
370
+ SEA_GANODERMA = GenshinObject::Material.new(
356
371
  kamera_key: "SeaGanoderma",
357
372
  name: "Sea Ganoderma",
358
373
  rarity: 1,
@@ -363,7 +378,7 @@ module TeyvatDB::Materials::Development
363
378
  nation_name: :inazuma,
364
379
  ).freeze
365
380
 
366
- SILK_FLOWER = TeyvatDB::GenshinData::Material.new(
381
+ SILK_FLOWER = GenshinObject::Material.new(
367
382
  kamera_key: "SilkFlower",
368
383
  name: "Silk Flower",
369
384
  rarity: 1,
@@ -374,7 +389,7 @@ module TeyvatDB::Materials::Development
374
389
  nation_name: :liyue,
375
390
  ).freeze
376
391
 
377
- SMALL_LAMP_GRASS = TeyvatDB::GenshinData::Material.new(
392
+ SMALL_LAMP_GRASS = GenshinObject::Material.new(
378
393
  kamera_key: "SmallLampGrass",
379
394
  name: "Small Lamp Grass",
380
395
  rarity: 1,
@@ -385,7 +400,7 @@ module TeyvatDB::Materials::Development
385
400
  nation_name: :mondstadt,
386
401
  ).freeze
387
402
 
388
- STARCONCH = TeyvatDB::GenshinData::Material.new(
403
+ STARCONCH = GenshinObject::Material.new(
389
404
  kamera_key: "Starconch",
390
405
  name: "Starconch",
391
406
  rarity: 1,
@@ -396,7 +411,7 @@ module TeyvatDB::Materials::Development
396
411
  nation_name: :liyue,
397
412
  ).freeze
398
413
 
399
- SUBDETECTION_UNIT = TeyvatDB::GenshinData::Material.new(
414
+ SUBDETECTION_UNIT = GenshinObject::Material.new(
400
415
  kamera_key: "SubdetectionUnit",
401
416
  name: "Subdetection Unit",
402
417
  rarity: 1,
@@ -407,7 +422,7 @@ module TeyvatDB::Materials::Development
407
422
  nation_name: :fontaine,
408
423
  ).freeze
409
424
 
410
- TRISHIRAITE = TeyvatDB::GenshinData::Material.new(
425
+ TRISHIRAITE = GenshinObject::Material.new(
411
426
  kamera_key: "Trishiraite",
412
427
  name: "Trishiraite",
413
428
  rarity: 1,
@@ -418,7 +433,7 @@ module TeyvatDB::Materials::Development
418
433
  nation_name: :sumeru,
419
434
  ).freeze
420
435
 
421
- VALBERRY = TeyvatDB::GenshinData::Material.new(
436
+ VALBERRY = GenshinObject::Material.new(
422
437
  kamera_key: "Valberry",
423
438
  name: "Valberry",
424
439
  rarity: 1,
@@ -429,7 +444,7 @@ module TeyvatDB::Materials::Development
429
444
  nation_name: :mondstadt,
430
445
  ).freeze
431
446
 
432
- VIOLETGRASS = TeyvatDB::GenshinData::Material.new(
447
+ VIOLETGRASS = GenshinObject::Material.new(
433
448
  kamera_key: "Violetgrass",
434
449
  name: "Violetgrass",
435
450
  rarity: 1,
@@ -440,7 +455,7 @@ module TeyvatDB::Materials::Development
440
455
  nation_name: :liyue,
441
456
  ).freeze
442
457
 
443
- VIPARYAS = TeyvatDB::GenshinData::Material.new(
458
+ VIPARYAS = GenshinObject::Material.new(
444
459
  kamera_key: "Viparyas",
445
460
  name: "Viparyas",
446
461
  rarity: 1,
@@ -451,7 +466,7 @@ module TeyvatDB::Materials::Development
451
466
  nation_name: :sumeru,
452
467
  ).freeze
453
468
 
454
- WINDWHEEL_ASTER = TeyvatDB::GenshinData::Material.new(
469
+ WINDWHEEL_ASTER = GenshinObject::Material.new(
455
470
  kamera_key: "WindwheelAster",
456
471
  name: "Windwheel Aster",
457
472
  rarity: 1,
@@ -462,7 +477,7 @@ module TeyvatDB::Materials::Development
462
477
  nation_name: :mondstadt,
463
478
  ).freeze
464
479
 
465
- WOLFHOOK = TeyvatDB::GenshinData::Material.new(
480
+ WOLFHOOK = GenshinObject::Material.new(
466
481
  kamera_key: "Wolfhook",
467
482
  name: "Wolfhook",
468
483
  rarity: 1,