teyvatdb 0.1.18 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/Gemfile.lock +4 -1
  4. data/lib/genshin_data/artifact_sets/artifact_data.rb +946 -295
  5. data/lib/genshin_data/artifact_sets.rb +2 -2
  6. data/lib/genshin_data/characters/character_data.rb +1143 -1126
  7. data/lib/genshin_data/characters.rb +4 -2
  8. data/lib/genshin_data/materials/development/elite_monster_drops_data.rb +605 -598
  9. data/lib/genshin_data/materials/development/gems_data.rb +331 -324
  10. data/lib/genshin_data/materials/development/general_data.rb +103 -96
  11. data/lib/genshin_data/materials/development/local_specialty_data.rb +506 -499
  12. data/lib/genshin_data/materials/development/monster_loot_drops_data.rb +441 -434
  13. data/lib/genshin_data/materials/development/talent_books_data.rb +506 -500
  14. data/lib/genshin_data/materials/development/weapon_material_data.rb +672 -665
  15. data/lib/genshin_data/materials/development/weapon_refinement_material_data.rb +129 -122
  16. data/lib/genshin_data/materials/development/weekly_boss_drops_data.rb +283 -276
  17. data/lib/genshin_data/materials/development/world_boss_drops_data.rb +330 -327
  18. data/lib/genshin_data/materials/development.rb +61 -56
  19. data/lib/genshin_data/materials/standard/cooking_material_data.rb +561 -554
  20. data/lib/genshin_data/materials/standard/crafting_material_data.rb +130 -123
  21. data/lib/genshin_data/materials/standard/fishing_material_data.rb +452 -445
  22. data/lib/genshin_data/materials/standard/forging_material_data.rb +191 -184
  23. data/lib/genshin_data/materials/standard/furniture_material_data.rb +251 -244
  24. data/lib/genshin_data/materials/standard.rb +37 -32
  25. data/lib/genshin_data/materials.rb +13 -7
  26. data/lib/genshin_data/nations/nation_data.rb +55 -52
  27. data/lib/genshin_data/talent_books/talent_book_data.rb +147 -0
  28. data/lib/genshin_data/talent_books.rb +14 -0
  29. data/lib/genshin_data/weapons/weapon_data/bows.rb +369 -364
  30. data/lib/genshin_data/weapons/weapon_data/catalysts.rb +359 -354
  31. data/lib/genshin_data/weapons/weapon_data/claymores.rb +359 -354
  32. data/lib/genshin_data/weapons/weapon_data/polearms.rb +262 -257
  33. data/lib/genshin_data/weapons/weapon_data/swords.rb +399 -395
  34. data/lib/genshin_data/weapons/weapon_data.rb +10 -7
  35. data/lib/genshin_data/weapons.rb +2 -1
  36. data/lib/genshin_data.rb +16 -5
  37. data/lib/genshin_object/artifact_set.rb +2 -2
  38. data/lib/genshin_object/material_family.rb +15 -0
  39. data/lib/genshin_object/schedule.rb +42 -0
  40. data/lib/genshin_object/talent_book.rb +6 -0
  41. data/lib/genshin_object/weapon_material_family.rb +6 -0
  42. data/lib/genshin_object.rb +8 -5
  43. data/lib/teyvatdb/version.rb +1 -1
  44. data/lib/teyvatdb.rb +3 -3
  45. metadata +8 -2
@@ -1,70 +1,75 @@
1
- module GenshinData::Materials
2
- module Development
3
- require_relative 'development/elite_monster_drops_data'
4
- require_relative 'development/gems_data'
5
- require_relative 'development/general_data'
6
- require_relative 'development/local_specialty_data'
7
- require_relative 'development/monster_loot_drops_data'
8
- require_relative 'development/talent_books_data'
9
- require_relative 'development/weapon_material_data'
10
- require_relative 'development/weapon_refinement_material_data'
11
- require_relative 'development/weekly_boss_drops_data'
12
- require_relative 'development/world_boss_drops_data'
1
+ # frozen_string_literal: true
13
2
 
14
- class << self
15
- def all
16
- [
17
- elite_monster_loot,
18
- gems,
19
- general,
20
- local_specialties,
21
- monster_loot,
22
- talent_books,
23
- weapon_materials,
24
- weapon_refinement,
25
- weekly_boss_drops,
26
- world_boss_drops,
27
- ].flatten.sort { |x, y| x.name <=> y.name }
28
- end
3
+ module GenshinData
4
+ module Materials
5
+ # Top level access class for all development materials
6
+ module Development
7
+ require_relative "development/elite_monster_drops_data"
8
+ require_relative "development/gems_data"
9
+ require_relative "development/general_data"
10
+ require_relative "development/local_specialty_data"
11
+ require_relative "development/monster_loot_drops_data"
12
+ require_relative "development/talent_books_data"
13
+ require_relative "development/weapon_material_data"
14
+ require_relative "development/weapon_refinement_material_data"
15
+ require_relative "development/weekly_boss_drops_data"
16
+ require_relative "development/world_boss_drops_data"
29
17
 
30
- def elite_monster_loot
31
- EliteMonsterLootDropsData.all
32
- end
18
+ class << self
19
+ def all
20
+ [
21
+ elite_monster_loot,
22
+ gems,
23
+ general,
24
+ local_specialties,
25
+ monster_loot,
26
+ talent_books,
27
+ weapon_materials,
28
+ weapon_refinement,
29
+ weekly_boss_drops,
30
+ world_boss_drops
31
+ ].flatten.sort { |x, y| x.name <=> y.name }
32
+ end
33
33
 
34
- def gems
35
- GemsData.all
36
- end
34
+ def elite_monster_loot
35
+ EliteMonsterLootDropsData.all
36
+ end
37
37
 
38
- def general
39
- GeneralData.all
40
- end
38
+ def gems
39
+ GemsData.all
40
+ end
41
41
 
42
- def local_specialties
43
- LocalSpecialtyData.all
44
- end
42
+ def general
43
+ GeneralData.all
44
+ end
45
45
 
46
- def monster_loot
47
- MonsterLootDropsData.all
48
- end
46
+ def local_specialties
47
+ LocalSpecialtyData.all
48
+ end
49
49
 
50
- def talent_books
51
- TalentBooksData.all
52
- end
50
+ def monster_loot
51
+ MonsterLootDropsData.all
52
+ end
53
53
 
54
- def weapon_materials
55
- WeaponMaterialData.all
56
- end
54
+ def talent_books
55
+ TalentBooksData.all
56
+ end
57
57
 
58
- def weapon_refinement
59
- WeaponRefinementMaterialData.all
60
- end
58
+ def weapon_materials
59
+ WeaponMaterialData.all
60
+ end
61
61
 
62
- def weekly_boss_drops
63
- WeeklyBossDropsData.all
64
- end
62
+ def weapon_refinement
63
+ WeaponRefinementMaterialData.all
64
+ end
65
+
66
+ def weekly_boss_drops
67
+ WeeklyBossDropsData.all
68
+ end
65
69
 
66
- def world_boss_drops
67
- WorldBossDropsData.all
70
+ def world_boss_drops
71
+ WorldBossDropsData.all
72
+ end
68
73
  end
69
74
  end
70
75
  end