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,187 +1,194 @@
1
- module GenshinData::Materials::Standard
2
- module ForgingMaterialData
3
- def self.all
4
- self.constants.map { |x| "GenshinData::Materials::Standard::ForgingMaterialData::#{x}".constantize }
1
+ # frozen_string_literal: true
2
+
3
+ module GenshinData
4
+ module Materials
5
+ module Standard
6
+ # Definitons for all forging related Materials
7
+ module ForgingMaterialData
8
+ def self.all
9
+ constants.map { |x| GenshinData::Materials::Standard::ForgingMaterialData.const_get(x) }
10
+ end
11
+
12
+ AMETHYST_LUMP = GenshinObject::Material.new(
13
+ kamera_key: "AmethystLump",
14
+ name: "Amethyst Lump",
15
+ rarity: 1,
16
+ family: nil,
17
+ inventory_type: :standard_material,
18
+ source_category: :gathering,
19
+ source_sub_category: :forging_material
20
+ ).freeze
21
+
22
+ CONDESSENCE_CRYSTAL = GenshinObject::Material.new(
23
+ kamera_key: "CondessenceCrystal",
24
+ name: "Condessence Crystal",
25
+ rarity: 1,
26
+ family: nil,
27
+ inventory_type: :standard_material,
28
+ source_category: :gathering,
29
+ source_sub_category: :forging_material
30
+ ).freeze
31
+
32
+ CRYSTAL_CHUNK = GenshinObject::Material.new(
33
+ kamera_key: "CrystalChunk",
34
+ name: "Crystal Chunk",
35
+ rarity: 1,
36
+ family: nil,
37
+ inventory_type: :standard_material,
38
+ source_category: :gathering,
39
+ source_sub_category: :forging_material
40
+ ).freeze
41
+
42
+ IRON_CHUNK = GenshinObject::Material.new(
43
+ kamera_key: "IronChunk",
44
+ name: "Iron Chunk",
45
+ rarity: 1,
46
+ family: nil,
47
+ inventory_type: :standard_material,
48
+ source_category: :gathering,
49
+ source_sub_category: :forging_material
50
+ ).freeze
51
+
52
+ MAGICAL_CRYSTAL_CHUNK = GenshinObject::Material.new(
53
+ kamera_key: "MagicalCrystalChunk",
54
+ name: "Magical Crystal Chunk",
55
+ rarity: 1,
56
+ family: nil,
57
+ inventory_type: :standard_material,
58
+ source_category: :gathering,
59
+ source_sub_category: :forging_material
60
+ ).freeze
61
+
62
+ MIDLANDER_BOW_BILLET = GenshinObject::Material.new(
63
+ kamera_key: "MidlanderBowBillet",
64
+ name: "Midlander Bow Billet",
65
+ rarity: 4,
66
+ family: nil,
67
+ inventory_type: :development_material,
68
+ source_category: :boss_loot,
69
+ source_sub_category: :forging_material
70
+ ).freeze
71
+
72
+ MIDLANDER_CATALYST_BILLET = GenshinObject::Material.new(
73
+ kamera_key: "MidlanderCatalystBillet",
74
+ name: "Midlander Cataylst Billet",
75
+ rarity: 4,
76
+ family: nil,
77
+ inventory_type: :development_material,
78
+ source_category: :boss_loot,
79
+ source_sub_category: :forging_material
80
+ ).freeze
81
+
82
+ MIDLANDER_CLAYMORE_BILLET = GenshinObject::Material.new(
83
+ kamera_key: "MidlanderClaymoreBillet",
84
+ name: "Midlander Claymore Billet",
85
+ rarity: 4,
86
+ family: nil,
87
+ inventory_type: :development_material,
88
+ source_category: :boss_loot,
89
+ source_sub_category: :forging_material
90
+ ).freeze
91
+
92
+ MIDLANDER_SWORD_BILLET = GenshinObject::Material.new(
93
+ kamera_key: "MidlanderSwordBillet",
94
+ name: "Midlander Sword Billet",
95
+ rarity: 4,
96
+ family: nil,
97
+ inventory_type: :development_material,
98
+ source_category: :boss_loot,
99
+ source_sub_category: :forging_material
100
+ ).freeze
101
+
102
+ MIDLANDER_POLEARM_BILLET = GenshinObject::Material.new(
103
+ kamera_key: "MidlanderPolearmBillet",
104
+ name: "Midlander Polearm Billet",
105
+ rarity: 4,
106
+ family: nil,
107
+ inventory_type: :development_material,
108
+ source_category: :boss_loot,
109
+ source_sub_category: :forging_material
110
+ ).freeze
111
+
112
+ NORTHLANDER_BOW_BILLET = GenshinObject::Material.new(
113
+ kamera_key: "NorthlanderBowBillet",
114
+ name: "Northlander Bow Billet",
115
+ rarity: 4,
116
+ family: nil,
117
+ inventory_type: :standard_material,
118
+ source_category: :boss_loot,
119
+ source_sub_category: :forging_material
120
+ ).freeze
121
+
122
+ NORTHLANDER_CATALYST_BILLET = GenshinObject::Material.new(
123
+ kamera_key: "NorthlanderCatalystBillet",
124
+ name: "Northlander Catalyst Billet",
125
+ rarity: 4,
126
+ family: nil,
127
+ inventory_type: :standard_material,
128
+ source_category: :boss_loot,
129
+ source_sub_category: :forging_material
130
+ ).freeze
131
+
132
+ NORTHLANDER_CLAYMORE_BILLET = GenshinObject::Material.new(
133
+ kamera_key: "NorthlanderClaymoreBillet",
134
+ name: "Northlander Claymore Billet",
135
+ rarity: 4,
136
+ family: nil,
137
+ inventory_type: :standard_material,
138
+ source_category: :boss_loot,
139
+ source_sub_category: :forging_material
140
+ ).freeze
141
+
142
+ NORTHLANDER_POLEARM_BILLET = GenshinObject::Material.new(
143
+ kamera_key: "NorthlanderPolearmBillet",
144
+ name: "Northlander Polearm Billet",
145
+ rarity: 4,
146
+ family: nil,
147
+ inventory_type: :standard_material,
148
+ source_category: :boss_loot,
149
+ source_sub_category: :forging_material
150
+ ).freeze
151
+
152
+ NORTHLANDER_SWORD_BILLET = GenshinObject::Material.new(
153
+ kamera_key: "NorthlanderSwordBillet",
154
+ name: "Northlander Sword Billet",
155
+ rarity: 4,
156
+ family: nil,
157
+ inventory_type: :standard_material,
158
+ source_category: :boss_loot,
159
+ source_sub_category: :forging_material
160
+ ).freeze
161
+
162
+ STARSILVER = GenshinObject::Material.new(
163
+ kamera_key: "Starsilver",
164
+ name: "Starsilver",
165
+ rarity: 1,
166
+ family: nil,
167
+ inventory_type: :standard_material,
168
+ source_category: :gathering,
169
+ source_sub_category: :forging_material
170
+ ).freeze
171
+
172
+ VITALIZED_DRAGONTOOTH = GenshinObject::Material.new(
173
+ kamera_key: "VitalizedDragontooth",
174
+ name: "Vitalized Dragontooth",
175
+ rarity: 1,
176
+ family: nil,
177
+ inventory_type: :standard_material,
178
+ source_category: :gathering,
179
+ source_sub_category: :forging_material
180
+ ).freeze
181
+
182
+ WHITE_IRON_CHUNK = GenshinObject::Material.new(
183
+ kamera_key: "WhiteIronChunk",
184
+ name: "White Iron Chunk",
185
+ rarity: 1,
186
+ family: nil,
187
+ inventory_type: :standard_material,
188
+ source_category: :gathering,
189
+ source_sub_category: :forging_material
190
+ ).freeze
191
+ end
5
192
  end
6
-
7
- AMETHYST_LUMP = GenshinObject::Material.new(
8
- kamera_key: "AmethystLump",
9
- name: "Amethyst Lump",
10
- rarity: 1,
11
- family: nil,
12
- inventory_type: :standard_material,
13
- source_category: :gathering,
14
- source_sub_category: :forging_material,
15
- ).freeze
16
-
17
- CONDESSENCE_CRYSTAL = GenshinObject::Material.new(
18
- kamera_key: "CondessenceCrystal",
19
- name: "Condessence Crystal",
20
- rarity: 1,
21
- family: nil,
22
- inventory_type: :standard_material,
23
- source_category: :gathering,
24
- source_sub_category: :forging_material,
25
- ).freeze
26
-
27
- CRYSTAL_CHUNK = GenshinObject::Material.new(
28
- kamera_key: "CrystalChunk",
29
- name: "Crystal Chunk",
30
- rarity: 1,
31
- family: nil,
32
- inventory_type: :standard_material,
33
- source_category: :gathering,
34
- source_sub_category: :forging_material,
35
- ).freeze
36
-
37
- IRON_CHUNK = GenshinObject::Material.new(
38
- kamera_key: "IronChunk",
39
- name: "Iron Chunk",
40
- rarity: 1,
41
- family: nil,
42
- inventory_type: :standard_material,
43
- source_category: :gathering,
44
- source_sub_category: :forging_material,
45
- ).freeze
46
-
47
- MAGICAL_CRYSTAL_CHUNK = GenshinObject::Material.new(
48
- kamera_key: "MagicalCrystalChunk",
49
- name: "Magical Crystal Chunk",
50
- rarity: 1,
51
- family: nil,
52
- inventory_type: :standard_material,
53
- source_category: :gathering,
54
- source_sub_category: :forging_material,
55
- ).freeze
56
-
57
- MIDLANDER_BOW_BILLET = GenshinObject::Material.new(
58
- kamera_key: "MidlanderBowBillet",
59
- name: "Midlander Bow Billet",
60
- rarity: 4,
61
- family: nil,
62
- inventory_type: :development_material,
63
- source_category: :boss_loot,
64
- source_sub_category: :forging_material,
65
- ).freeze
66
-
67
- MIDLANDER_CATALYST_BILLET = GenshinObject::Material.new(
68
- kamera_key: "MidlanderCatalystBillet",
69
- name: "Midlander Cataylst Billet",
70
- rarity: 4,
71
- family: nil,
72
- inventory_type: :development_material,
73
- source_category: :boss_loot,
74
- source_sub_category: :forging_material,
75
- ).freeze
76
-
77
- MIDLANDER_CLAYMORE_BILLET = GenshinObject::Material.new(
78
- kamera_key: "MidlanderClaymoreBillet",
79
- name: "Midlander Claymore Billet",
80
- rarity: 4,
81
- family: nil,
82
- inventory_type: :development_material,
83
- source_category: :boss_loot,
84
- source_sub_category: :forging_material,
85
- ).freeze
86
-
87
- MIDLANDER_SWORD_BILLET = GenshinObject::Material.new(
88
- kamera_key: "MidlanderSwordBillet",
89
- name: "Midlander Sword Billet",
90
- rarity: 4,
91
- family: nil,
92
- inventory_type: :development_material,
93
- source_category: :boss_loot,
94
- source_sub_category: :forging_material,
95
- ).freeze
96
-
97
- MIDLANDER_POLEARM_BILLET = GenshinObject::Material.new(
98
- kamera_key: "MidlanderPolearmBillet",
99
- name: "Midlander Polearm Billet",
100
- rarity: 4,
101
- family: nil,
102
- inventory_type: :development_material,
103
- source_category: :boss_loot,
104
- source_sub_category: :forging_material,
105
- ).freeze
106
-
107
- NORTHLANDER_BOW_BILLET = GenshinObject::Material.new(
108
- kamera_key: "NorthlanderBowBillet",
109
- name: "Northlander Bow Billet",
110
- rarity: 4,
111
- family: nil,
112
- inventory_type: :standard_material,
113
- source_category: :boss_loot,
114
- source_sub_category: :forging_material,
115
- ).freeze
116
-
117
- NORTHLANDER_CATALYST_BILLET = GenshinObject::Material.new(
118
- kamera_key: "NorthlanderCatalystBillet",
119
- name: "Northlander Catalyst Billet",
120
- rarity: 4,
121
- family: nil,
122
- inventory_type: :standard_material,
123
- source_category: :boss_loot,
124
- source_sub_category: :forging_material,
125
- ).freeze
126
-
127
- NORTHLANDER_CLAYMORE_BILLET = GenshinObject::Material.new(
128
- kamera_key: "NorthlanderClaymoreBillet",
129
- name: "Northlander Claymore Billet",
130
- rarity: 4,
131
- family: nil,
132
- inventory_type: :standard_material,
133
- source_category: :boss_loot,
134
- source_sub_category: :forging_material,
135
- ).freeze
136
-
137
- NORTHLANDER_POLEARM_BILLET = GenshinObject::Material.new(
138
- kamera_key: "NorthlanderPolearmBillet",
139
- name: "Northlander Polearm Billet",
140
- rarity: 4,
141
- family: nil,
142
- inventory_type: :standard_material,
143
- source_category: :boss_loot,
144
- source_sub_category: :forging_material,
145
- ).freeze
146
-
147
- NORTHLANDER_SWORD_BILLET = GenshinObject::Material.new(
148
- kamera_key: "NorthlanderSwordBillet",
149
- name: "Northlander Sword Billet",
150
- rarity: 4,
151
- family: nil,
152
- inventory_type: :standard_material,
153
- source_category: :boss_loot,
154
- source_sub_category: :forging_material,
155
- ).freeze
156
-
157
- STARSILVER = GenshinObject::Material.new(
158
- kamera_key: "Starsilver",
159
- name: "Starsilver",
160
- rarity: 1,
161
- family: nil,
162
- inventory_type: :standard_material,
163
- source_category: :gathering,
164
- source_sub_category: :forging_material,
165
- ).freeze
166
-
167
- VITALIZED_DRAGONTOOTH = GenshinObject::Material.new(
168
- kamera_key: "VitalizedDragontooth",
169
- name: "Vitalized Dragontooth",
170
- rarity: 1,
171
- family: nil,
172
- inventory_type: :standard_material,
173
- source_category: :gathering,
174
- source_sub_category: :forging_material,
175
- ).freeze
176
-
177
- WHITE_IRON_CHUNK = GenshinObject::Material.new(
178
- kamera_key: "WhiteIronChunk",
179
- name: "White Iron Chunk",
180
- rarity: 1,
181
- family: nil,
182
- inventory_type: :standard_material,
183
- source_category: :gathering,
184
- source_sub_category: :forging_material,
185
- ).freeze
186
193
  end
187
194
  end