teyvatdb 0.1.17 → 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 +3 -3
  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,137 +1,144 @@
1
- module GenshinData::Materials::Development
2
- module WeaponRefinementMaterialData
3
- def self.all
4
- self.constants.map { |x| "GenshinData::Materials::Development::WeaponRefinementMaterialData::#{x}".constantize }
5
- end
1
+ # frozen_string_literal: true
2
+
3
+ module GenshinData
4
+ module Materials
5
+ module Development
6
+ # Definitons for all special weapon refinement materials
7
+ module WeaponRefinementMaterialData
8
+ def self.all
9
+ constants.map { |x| GenshinData::Materials::Development::WeaponRefinementMaterialData.const_get(x) }
10
+ end
6
11
 
7
- AKOS_SAKE_VESSEL = GenshinObject::Material.new(
8
- kamera_key: "AkosSakeVessel",
9
- name: "Ako's Sake Vessel",
10
- rarity: 4,
11
- family: nil,
12
- inventory_type: :development_material,
13
- source_category: :weapon_material,
14
- source_sub_category: :refine_material,
15
- ).freeze
12
+ AKOS_SAKE_VESSEL = GenshinObject::Material.new(
13
+ kamera_key: "AkosSakeVessel",
14
+ name: "Ako's Sake Vessel",
15
+ rarity: 4,
16
+ family: nil,
17
+ inventory_type: :development_material,
18
+ source_category: :weapon_material,
19
+ source_sub_category: :refine_material
20
+ ).freeze
16
21
 
17
- ALKAHEST = GenshinObject::Material.new(
18
- kamera_key: "Alkahest",
19
- name: "Alkahest",
20
- rarity: 4,
21
- family: nil,
22
- inventory_type: :development_material,
23
- source_category: :weapon_material,
24
- source_sub_category: :refine_material,
25
- ).freeze
22
+ ALKAHEST = GenshinObject::Material.new(
23
+ kamera_key: "Alkahest",
24
+ name: "Alkahest",
25
+ rarity: 4,
26
+ family: nil,
27
+ inventory_type: :development_material,
28
+ source_category: :weapon_material,
29
+ source_sub_category: :refine_material
30
+ ).freeze
26
31
 
27
- CONGEALED_PUPA_WAX = GenshinObject::Material.new(
28
- kamera_key: "CongealedPupaWax",
29
- name: "Congealed Pupa Wax",
30
- rarity: 4,
31
- family: nil,
32
- inventory_type: :development_material,
33
- source_category: :weapon_material,
34
- source_sub_category: :refine_material,
35
- ).freeze
32
+ CONGEALED_PUPA_WAX = GenshinObject::Material.new(
33
+ kamera_key: "CongealedPupaWax",
34
+ name: "Congealed Pupa Wax",
35
+ rarity: 4,
36
+ family: nil,
37
+ inventory_type: :development_material,
38
+ source_category: :weapon_material,
39
+ source_sub_category: :refine_material
40
+ ).freeze
36
41
 
37
- EMPERORS_BALSAM = GenshinObject::Material.new(
38
- kamera_key: "EmperorsBalsam",
39
- name: "Emperor's Balsam",
40
- rarity: 4,
41
- family: nil,
42
- inventory_type: :development_material,
43
- source_category: :weapon_material,
44
- source_sub_category: :refine_material,
45
- ).freeze
42
+ EMPERORS_BALSAM = GenshinObject::Material.new(
43
+ kamera_key: "EmperorsBalsam",
44
+ name: "Emperor's Balsam",
45
+ rarity: 4,
46
+ family: nil,
47
+ inventory_type: :development_material,
48
+ source_category: :weapon_material,
49
+ source_sub_category: :refine_material
50
+ ).freeze
46
51
 
47
- FESTERING_DRAGON_MARROW = GenshinObject::Material.new(
48
- kamera_key: "FesteringDragonMarrow",
49
- name: "Festering Dragon Marrow",
50
- rarity: 4,
51
- family: nil,
52
- inventory_type: :development_material,
53
- source_category: :weapon_material,
54
- source_sub_category: :refine_material,
55
- ).freeze
52
+ FESTERING_DRAGON_MARROW = GenshinObject::Material.new(
53
+ kamera_key: "FesteringDragonMarrow",
54
+ name: "Festering Dragon Marrow",
55
+ rarity: 4,
56
+ family: nil,
57
+ inventory_type: :development_material,
58
+ source_category: :weapon_material,
59
+ source_sub_category: :refine_material
60
+ ).freeze
56
61
 
57
- FRAGMENTS_OF_INNOCENCE = GenshinObject::Material.new(
58
- kamera_key: "FragmentsOfInnocence",
59
- name: "Fragments of Innocence",
60
- rarity: 4,
61
- family: nil,
62
- inventory_type: :development_material,
63
- source_category: :weapon_material,
64
- source_sub_category: :refine_material,
65
- ).freeze
62
+ FRAGMENTS_OF_INNOCENCE = GenshinObject::Material.new(
63
+ kamera_key: "FragmentsOfInnocence",
64
+ name: "Fragments of Innocence",
65
+ rarity: 4,
66
+ family: nil,
67
+ inventory_type: :development_material,
68
+ source_category: :weapon_material,
69
+ source_sub_category: :refine_material
70
+ ).freeze
66
71
 
67
- GLOWING_GEM = GenshinObject::Material.new(
68
- kamera_key: "GlowingGem",
69
- name: "Glowing Gem",
70
- rarity: 4,
71
- family: nil,
72
- inventory_type: :development_material,
73
- source_category: :weapon_material,
74
- source_sub_category: :refine_material,
75
- ).freeze
72
+ GLOWING_GEM = GenshinObject::Material.new(
73
+ kamera_key: "GlowingGem",
74
+ name: "Glowing Gem",
75
+ rarity: 4,
76
+ family: nil,
77
+ inventory_type: :development_material,
78
+ source_category: :weapon_material,
79
+ source_sub_category: :refine_material
80
+ ).freeze
76
81
 
77
- OINTMENT_OF_INSIGHT = GenshinObject::Material.new(
78
- kamera_key: "OintmentOfInsight",
79
- name: "Ointment of Insight",
80
- rarity: 4,
81
- family: nil,
82
- inventory_type: :development_material,
83
- source_category: :weapon_material,
84
- source_sub_category: :refine_material,
85
- ).freeze
82
+ OINTMENT_OF_INSIGHT = GenshinObject::Material.new(
83
+ kamera_key: "OintmentOfInsight",
84
+ name: "Ointment of Insight",
85
+ rarity: 4,
86
+ family: nil,
87
+ inventory_type: :development_material,
88
+ source_category: :weapon_material,
89
+ source_sub_category: :refine_material
90
+ ).freeze
86
91
 
87
- ORIGINAL_FISH_OINTMENT = GenshinObject::Material.new(
88
- kamera_key: "OriginalFishOintment",
89
- name: "Original Fish Ointment",
90
- rarity: 4,
91
- family: nil,
92
- inventory_type: :development_material,
93
- source_category: :weapon_material,
94
- source_sub_category: :refine_material,
95
- ).freeze
92
+ ORIGINAL_FISH_OINTMENT = GenshinObject::Material.new(
93
+ kamera_key: "OriginalFishOintment",
94
+ name: "Original Fish Ointment",
95
+ rarity: 4,
96
+ family: nil,
97
+ inventory_type: :development_material,
98
+ source_category: :weapon_material,
99
+ source_sub_category: :refine_material
100
+ ).freeze
96
101
 
97
- PARASOL_TALCUM = GenshinObject::Material.new(
98
- kamera_key: "ParasolTalcum",
99
- name: "Parasol Talcum",
100
- rarity: 4,
101
- family: nil,
102
- inventory_type: :development_material,
103
- source_category: :weapon_material,
104
- source_sub_category: :refine_material,
105
- ).freeze
102
+ PARASOL_TALCUM = GenshinObject::Material.new(
103
+ kamera_key: "ParasolTalcum",
104
+ name: "Parasol Talcum",
105
+ rarity: 4,
106
+ family: nil,
107
+ inventory_type: :development_material,
108
+ source_category: :weapon_material,
109
+ source_sub_category: :refine_material
110
+ ).freeze
106
111
 
107
- PLUME_OF_THE_CHANGING_WINDS = GenshinObject::Material.new(
108
- kamera_key: "PlumeOfTheChangingWinds",
109
- name: "Plume of the Changing Winds",
110
- rarity: 4,
111
- family: nil,
112
- inventory_type: :development_material,
113
- source_category: :weapon_material,
114
- source_sub_category: :refine_material,
115
- ).freeze
112
+ PLUME_OF_THE_CHANGING_WINDS = GenshinObject::Material.new(
113
+ kamera_key: "PlumeOfTheChangingWinds",
114
+ name: "Plume of the Changing Winds",
115
+ rarity: 4,
116
+ family: nil,
117
+ inventory_type: :development_material,
118
+ source_category: :weapon_material,
119
+ source_sub_category: :refine_material
120
+ ).freeze
116
121
 
117
- THE_VISIBLE_WINDS = GenshinObject::Material.new(
118
- kamera_key: "TheVisibleWinds",
119
- name: "The Visible Winds",
120
- rarity: 4,
121
- family: nil,
122
- inventory_type: :development_material,
123
- source_category: :weapon_material,
124
- source_sub_category: :refine_material,
125
- ).freeze
122
+ THE_VISIBLE_WINDS = GenshinObject::Material.new(
123
+ kamera_key: "TheVisibleWinds",
124
+ name: "The Visible Winds",
125
+ rarity: 4,
126
+ family: nil,
127
+ inventory_type: :development_material,
128
+ source_category: :weapon_material,
129
+ source_sub_category: :refine_material
130
+ ).freeze
126
131
 
127
- UNFADING_SILKY_GRACE = GenshinObject::Material.new(
128
- kamera_key: "UnfadingSilkyGrace",
129
- name: "Unfading Silky Grace",
130
- rarity: 4,
131
- family: nil,
132
- inventory_type: :development_material,
133
- source_category: :weapon_material,
134
- source_sub_category: :refine_material,
135
- ).freeze
132
+ UNFADING_SILKY_GRACE = GenshinObject::Material.new(
133
+ kamera_key: "UnfadingSilkyGrace",
134
+ name: "Unfading Silky Grace",
135
+ rarity: 4,
136
+ family: nil,
137
+ inventory_type: :development_material,
138
+ source_category: :weapon_material,
139
+ source_sub_category: :refine_material
140
+ ).freeze
141
+ end
142
+ end
136
143
  end
137
144
  end