teyvatdb 0.1.18 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +4 -1
- data/lib/genshin_data/artifact_sets/artifact_data.rb +946 -295
- data/lib/genshin_data/artifact_sets.rb +2 -2
- data/lib/genshin_data/characters/character_data.rb +1143 -1126
- data/lib/genshin_data/characters.rb +4 -2
- data/lib/genshin_data/materials/development/elite_monster_drops_data.rb +605 -598
- data/lib/genshin_data/materials/development/gems_data.rb +331 -324
- data/lib/genshin_data/materials/development/general_data.rb +103 -96
- data/lib/genshin_data/materials/development/local_specialty_data.rb +506 -499
- data/lib/genshin_data/materials/development/monster_loot_drops_data.rb +441 -434
- data/lib/genshin_data/materials/development/talent_books_data.rb +506 -500
- data/lib/genshin_data/materials/development/weapon_material_data.rb +672 -665
- data/lib/genshin_data/materials/development/weapon_refinement_material_data.rb +129 -122
- data/lib/genshin_data/materials/development/weekly_boss_drops_data.rb +283 -276
- data/lib/genshin_data/materials/development/world_boss_drops_data.rb +330 -327
- data/lib/genshin_data/materials/development.rb +61 -56
- data/lib/genshin_data/materials/standard/cooking_material_data.rb +561 -554
- data/lib/genshin_data/materials/standard/crafting_material_data.rb +130 -123
- data/lib/genshin_data/materials/standard/fishing_material_data.rb +452 -445
- data/lib/genshin_data/materials/standard/forging_material_data.rb +191 -184
- data/lib/genshin_data/materials/standard/furniture_material_data.rb +251 -244
- data/lib/genshin_data/materials/standard.rb +37 -32
- data/lib/genshin_data/materials.rb +13 -7
- data/lib/genshin_data/nations/nation_data.rb +55 -52
- data/lib/genshin_data/talent_books/talent_book_data.rb +147 -0
- data/lib/genshin_data/talent_books.rb +14 -0
- data/lib/genshin_data/weapons/weapon_data/bows.rb +369 -364
- data/lib/genshin_data/weapons/weapon_data/catalysts.rb +359 -354
- data/lib/genshin_data/weapons/weapon_data/claymores.rb +359 -354
- data/lib/genshin_data/weapons/weapon_data/polearms.rb +262 -257
- data/lib/genshin_data/weapons/weapon_data/swords.rb +399 -395
- data/lib/genshin_data/weapons/weapon_data.rb +10 -7
- data/lib/genshin_data/weapons.rb +2 -1
- data/lib/genshin_data.rb +16 -5
- data/lib/genshin_object/artifact_set.rb +2 -2
- data/lib/genshin_object/material_family.rb +15 -0
- data/lib/genshin_object/schedule.rb +42 -0
- data/lib/genshin_object/talent_book.rb +6 -0
- data/lib/genshin_object/weapon_material_family.rb +6 -0
- data/lib/genshin_object.rb +8 -5
- data/lib/teyvatdb/version.rb +1 -1
- data/lib/teyvatdb.rb +3 -3
- metadata +8 -2
@@ -1,289 +1,294 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
module GenshinData
|
4
|
-
module
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
module GenshinData
|
4
|
+
module Weapons
|
5
|
+
module WeaponData
|
6
|
+
# Definitons for all in game Polearms
|
7
|
+
module Polearms
|
8
|
+
def self.all
|
9
|
+
constants.map { |x| GenshinData::Weapons::WeaponData::Polearms.const_get(x) }
|
10
|
+
end
|
8
11
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
BALLAD_OF_THE_FJORDS = GenshinObject::Weapon.new(
|
13
|
+
kamera_key: "BalladOfTheFjords",
|
14
|
+
name: "Ballad of the Fjords",
|
15
|
+
rarity: 4,
|
16
|
+
weapon_type: :polearm,
|
17
|
+
elite_material_type: :rogue_flower,
|
18
|
+
standard_material_type: :nectar,
|
19
|
+
weapon_material_type: :pristine_sea
|
20
|
+
).freeze
|
18
21
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
BEGINNERS_PROTECTOR = GenshinObject::Weapon.new(
|
23
|
+
kamera_key: "BeginnersProtector",
|
24
|
+
name: "Beginner's Protector",
|
25
|
+
rarity: 1,
|
26
|
+
weapon_type: :polearm,
|
27
|
+
elite_material_type: :chaos_core,
|
28
|
+
standard_material_type: :scroll,
|
29
|
+
weapon_material_type: :chains
|
30
|
+
).freeze
|
28
31
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
BLACK_TASSEL = GenshinObject::Weapon.new(
|
33
|
+
kamera_key: "BlackTassel",
|
34
|
+
name: "Black Tassel",
|
35
|
+
rarity: 3,
|
36
|
+
weapon_type: :polearm,
|
37
|
+
elite_material_type: :bone_shard,
|
38
|
+
standard_material_type: :arrowhead,
|
39
|
+
weapon_material_type: :aerosiderite
|
40
|
+
).freeze
|
38
41
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
42
|
+
BLACKCLIFF_POLE = GenshinObject::Weapon.new(
|
43
|
+
kamera_key: "BlackcliffPole",
|
44
|
+
name: "Blackcliff Pole",
|
45
|
+
rarity: 4,
|
46
|
+
weapon_type: :polearm,
|
47
|
+
elite_material_type: :mist_grass,
|
48
|
+
standard_material_type: :fatui_insignia,
|
49
|
+
weapon_material_type: :elixir
|
50
|
+
).freeze
|
48
51
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
CALAMITY_QUELLER = GenshinObject::Weapon.new(
|
53
|
+
kamera_key: "CalamityQueller",
|
54
|
+
name: "Calamity Queller",
|
55
|
+
rarity: 5,
|
56
|
+
weapon_type: :polearm,
|
57
|
+
elite_material_type: :mist_grass,
|
58
|
+
standard_material_type: :nectar,
|
59
|
+
weapon_material_type: :elixir
|
60
|
+
).freeze
|
58
61
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
62
|
+
CRESCENT_PIKE = GenshinObject::Weapon.new(
|
63
|
+
kamera_key: "CrescentPike",
|
64
|
+
name: "Crescent Pike",
|
65
|
+
rarity: 4,
|
66
|
+
weapon_type: :polearm,
|
67
|
+
elite_material_type: :sacrificial_knife,
|
68
|
+
standard_material_type: :hoarder_insignia,
|
69
|
+
weapon_material_type: :guyun
|
70
|
+
).freeze
|
68
71
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
72
|
+
DEATHMATCH = GenshinObject::Weapon.new(
|
73
|
+
kamera_key: "Deathmatch",
|
74
|
+
name: "Deathmatch",
|
75
|
+
rarity: 4,
|
76
|
+
weapon_type: :polearm,
|
77
|
+
elite_material_type: :ley_line,
|
78
|
+
standard_material_type: :nectar,
|
79
|
+
weapon_material_type: :wolf_tooth
|
80
|
+
).freeze
|
78
81
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
82
|
+
DRAGONS_BANE = GenshinObject::Weapon.new(
|
83
|
+
kamera_key: "DragonsBane",
|
84
|
+
name: "Dragon's Bane",
|
85
|
+
rarity: 4,
|
86
|
+
weapon_type: :polearm,
|
87
|
+
elite_material_type: :mist_grass,
|
88
|
+
standard_material_type: :scroll,
|
89
|
+
weapon_material_type: :elixir
|
90
|
+
).freeze
|
88
91
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
92
|
+
DRAGONSPINE_SPEAR = GenshinObject::Weapon.new(
|
93
|
+
kamera_key: "DragonspineSpear",
|
94
|
+
name: "Dragonspine Spear",
|
95
|
+
rarity: 4,
|
96
|
+
weapon_type: :polearm,
|
97
|
+
elite_material_type: :mist_grass,
|
98
|
+
standard_material_type: :fatui_insignia,
|
99
|
+
weapon_material_type: :wolf_tooth
|
100
|
+
).freeze
|
98
101
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
102
|
+
ENGULFING_LIGHTNING = GenshinObject::Weapon.new(
|
103
|
+
kamera_key: "EngulfingLightning",
|
104
|
+
name: "Engulfing Lightning",
|
105
|
+
rarity: 5,
|
106
|
+
weapon_type: :polearm,
|
107
|
+
elite_material_type: :chaos_oculus,
|
108
|
+
standard_material_type: :handguard,
|
109
|
+
weapon_material_type: :oni_mask
|
110
|
+
).freeze
|
108
111
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
112
|
+
FAVONIUS_LANCE = GenshinObject::Weapon.new(
|
113
|
+
kamera_key: "FavoniusLance",
|
114
|
+
name: "Favonius Lance",
|
115
|
+
rarity: 4,
|
116
|
+
weapon_type: :polearm,
|
117
|
+
elite_material_type: :chaos_core,
|
118
|
+
standard_material_type: :slime,
|
119
|
+
weapon_material_type: :chains
|
120
|
+
).freeze
|
118
121
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
122
|
+
HALBERD = GenshinObject::Weapon.new(
|
123
|
+
kamera_key: "Halberd",
|
124
|
+
name: "Halberd",
|
125
|
+
rarity: 3,
|
126
|
+
weapon_type: :polearm,
|
127
|
+
elite_material_type: :mist_grass,
|
128
|
+
standard_material_type: :nectar,
|
129
|
+
weapon_material_type: :elixir
|
130
|
+
).freeze
|
128
131
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
132
|
+
IRON_POINT = GenshinObject::Weapon.new(
|
133
|
+
kamera_key: "IronPoint",
|
134
|
+
name: "Iron Point",
|
135
|
+
rarity: 2,
|
136
|
+
weapon_type: :polearm,
|
137
|
+
elite_material_type: :chaos_core,
|
138
|
+
standard_material_type: :scroll,
|
139
|
+
weapon_material_type: :chains
|
140
|
+
).freeze
|
138
141
|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
142
|
+
KITAIN_CROSS_SPEAR = GenshinObject::Weapon.new(
|
143
|
+
kamera_key: "KitainCrossSpear",
|
144
|
+
name: "Kitain Cross Spear",
|
145
|
+
rarity: 4,
|
146
|
+
weapon_type: :polearm,
|
147
|
+
elite_material_type: :chaos_oculus,
|
148
|
+
standard_material_type: :hoarder_insignia,
|
149
|
+
weapon_material_type: :oni_mask
|
150
|
+
).freeze
|
148
151
|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
152
|
+
LITHIC_SPEAR = GenshinObject::Weapon.new(
|
153
|
+
kamera_key: "LithicSpear",
|
154
|
+
name: "Lithic Spear",
|
155
|
+
rarity: 4,
|
156
|
+
weapon_type: :polearm,
|
157
|
+
elite_material_type: :bone_shard,
|
158
|
+
standard_material_type: :arrowhead,
|
159
|
+
weapon_material_type: :aerosiderite
|
160
|
+
).freeze
|
158
161
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
162
|
+
MISSIVE_WINDSPEAR = GenshinObject::Weapon.new(
|
163
|
+
kamera_key: "MissiveWindspear",
|
164
|
+
name: "Missive Windspear",
|
165
|
+
rarity: 4,
|
166
|
+
weapon_type: :polearm,
|
167
|
+
elite_material_type: :statuette,
|
168
|
+
standard_material_type: :slime,
|
169
|
+
weapon_material_type: :wolf_tooth
|
170
|
+
).freeze
|
168
171
|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
172
|
+
MOONPIERCER = GenshinObject::Weapon.new(
|
173
|
+
kamera_key: "Moonpiercer",
|
174
|
+
name: "Moonpiercer",
|
175
|
+
rarity: 4,
|
176
|
+
weapon_type: :polearm,
|
177
|
+
elite_material_type: :chaos_bolt,
|
178
|
+
standard_material_type: :fatui_insignia,
|
179
|
+
weapon_material_type: :oasis_garden
|
180
|
+
).freeze
|
178
181
|
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
182
|
+
PRIMORDIAL_JADE_WINGED_SPEAR = GenshinObject::Weapon.new(
|
183
|
+
kamera_key: "PrimordialJadeWingedSpear",
|
184
|
+
name: "Primordial Jade Winged-Spear",
|
185
|
+
rarity: 5,
|
186
|
+
weapon_type: :polearm,
|
187
|
+
elite_material_type: :sacrificial_knife,
|
188
|
+
standard_material_type: :fatui_insignia,
|
189
|
+
weapon_material_type: :guyun
|
190
|
+
).freeze
|
188
191
|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
192
|
+
PROTOTYPE_STARGLITTER = GenshinObject::Weapon.new(
|
193
|
+
kamera_key: "PrototypeStarglitter",
|
194
|
+
name: "Prototype Starglitter",
|
195
|
+
rarity: 4,
|
196
|
+
weapon_type: :polearm,
|
197
|
+
elite_material_type: :bone_shard,
|
198
|
+
standard_material_type: :hilichurl_mask,
|
199
|
+
weapon_material_type: :aerosiderite
|
200
|
+
).freeze
|
198
201
|
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
202
|
+
RIGHTFUL_REWARD = GenshinObject::Weapon.new(
|
203
|
+
kamera_key: "RightfulReward",
|
204
|
+
name: "Rightful Reward",
|
205
|
+
rarity: 4,
|
206
|
+
weapon_type: :polearm,
|
207
|
+
elite_material_type: :core,
|
208
|
+
standard_material_type: :gear,
|
209
|
+
weapon_material_type: :pristine_sea
|
210
|
+
).freeze
|
208
211
|
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
212
|
+
ROYAL_SPEAR = GenshinObject::Weapon.new(
|
213
|
+
kamera_key: "RoyalSpear",
|
214
|
+
name: "Royal Spear",
|
215
|
+
rarity: 4,
|
216
|
+
weapon_type: :polearm,
|
217
|
+
elite_material_type: :mist_grass,
|
218
|
+
standard_material_type: :fatui_insignia,
|
219
|
+
weapon_material_type: :elixir
|
220
|
+
).freeze
|
218
221
|
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
222
|
+
SKYWARD_SPINE = GenshinObject::Weapon.new(
|
223
|
+
kamera_key: "SkywardSpine",
|
224
|
+
name: "Skyward Spine",
|
225
|
+
rarity: 5,
|
226
|
+
weapon_type: :polearm,
|
227
|
+
elite_material_type: :chaos_core,
|
228
|
+
standard_material_type: :scroll,
|
229
|
+
weapon_material_type: :chains
|
230
|
+
).freeze
|
228
231
|
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
232
|
+
STAFF_OF_HOMA = GenshinObject::Weapon.new(
|
233
|
+
kamera_key: "StaffOfHoma",
|
234
|
+
name: "Staff of Homa",
|
235
|
+
rarity: 5,
|
236
|
+
weapon_type: :polearm,
|
237
|
+
elite_material_type: :ley_line,
|
238
|
+
standard_material_type: :slime,
|
239
|
+
weapon_material_type: :aerosiderite
|
240
|
+
).freeze
|
238
241
|
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
242
|
+
STAFF_OF_THE_SCARLET_SANDS = GenshinObject::Weapon.new(
|
243
|
+
kamera_key: "StaffOfTheScarletSands",
|
244
|
+
name: "Staff of the Scarlet Sands",
|
245
|
+
rarity: 5,
|
246
|
+
weapon_type: :polearm,
|
247
|
+
elite_material_type: :chaos_bolt,
|
248
|
+
standard_material_type: :pollen,
|
249
|
+
weapon_material_type: :oasis_garden
|
250
|
+
).freeze
|
248
251
|
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
252
|
+
THE_CATCH = GenshinObject::Weapon.new(
|
253
|
+
kamera_key: "TheCatch",
|
254
|
+
name: "Catch, The",
|
255
|
+
rarity: 4,
|
256
|
+
weapon_type: :polearm,
|
257
|
+
elite_material_type: :chaos_oculus,
|
258
|
+
standard_material_type: :spectral,
|
259
|
+
weapon_material_type: :oni_mask
|
260
|
+
).freeze
|
258
261
|
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
262
|
+
VORTEX_VANQUISHER = GenshinObject::Weapon.new(
|
263
|
+
kamera_key: "VortexVanquisher",
|
264
|
+
name: "Vortex Vanquisher",
|
265
|
+
rarity: 5,
|
266
|
+
weapon_type: :polearm,
|
267
|
+
elite_material_type: :bone_shard,
|
268
|
+
standard_material_type: :hoarder_insignia,
|
269
|
+
weapon_material_type: :aerosiderite
|
270
|
+
).freeze
|
268
271
|
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
272
|
+
WAVEBREAKERS_FIN = GenshinObject::Weapon.new(
|
273
|
+
kamera_key: "WavebreakersFin",
|
274
|
+
name: "Wavebreaker's Fin",
|
275
|
+
rarity: 4,
|
276
|
+
weapon_type: :polearm,
|
277
|
+
elite_material_type: :concealed_talon,
|
278
|
+
standard_material_type: :handguard,
|
279
|
+
weapon_material_type: :oni_mask
|
280
|
+
).freeze
|
278
281
|
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
282
|
+
WHITE_TASSEL = GenshinObject::Weapon.new(
|
283
|
+
kamera_key: "WhiteTassel",
|
284
|
+
name: "White Tassel",
|
285
|
+
rarity: 3,
|
286
|
+
weapon_type: :polearm,
|
287
|
+
elite_material_type: :sacrificial_knife,
|
288
|
+
standard_material_type: :fatui_insignia,
|
289
|
+
weapon_material_type: :guyun
|
290
|
+
).freeze
|
291
|
+
end
|
292
|
+
end
|
288
293
|
end
|
289
294
|
end
|