teyvatdb 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/genshin_data/artifact_set.rb +14 -0
- data/lib/genshin_data/weapon.rb +19 -0
- data/lib/genshin_data.rb +4 -1
- data/lib/teyvatdb/artifact_dump.rb +0 -0
- data/lib/teyvatdb/artifact_sets.rb +313 -0
- data/lib/teyvatdb/version.rb +1 -1
- data/lib/teyvatdb/weapons.rb +1712 -0
- data/lib/teyvatdb.rb +3 -1
- metadata +6 -2
- data/lib/teyvatdb/character_data.rb +0 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ac689ccce3860661f1e49793cd4f8de3960b9deba4ccb5a2b1fdf134d7e0e62
|
4
|
+
data.tar.gz: 9102735437903c28b29dcd50b005240624bb049d5a7415552e58c8887d1c9084
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '01139235c719211570852eed6174625b25bd899fe1d5d4e2b067b62df1560406adbf3483f05f13c7adae3c8d31c21a79cea975ea6b1ee0a0254f04f4697d843b'
|
7
|
+
data.tar.gz: 3efa4a4cc86993cd34a867dcf4c9b7f8aa9b8035a430967350f8b5acbcad1a181a7094d7aa21856142ac629c111fd39a7a07a98397bd18f84e602c86951ec669
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module GenshinData
|
2
|
+
class ArtifactSet
|
3
|
+
ALL_SLOTS = [:flower, :plume, :sands, :goblet, :circlet]
|
4
|
+
|
5
|
+
attr_accessor :kamera_key, :name, :max_rarity, :slots
|
6
|
+
|
7
|
+
def initialize(kamera_key:, name:, max_rarity:, slots: ALL_SLOTS)
|
8
|
+
@kamera_key = kamera_key
|
9
|
+
@name = name
|
10
|
+
@max_rarity = max_rarity
|
11
|
+
@slots = slots
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module GenshinData
|
2
|
+
class Weapon
|
3
|
+
WEAPON_TYPES = [:sword, :polearm, :catalyst, :bow, :claymore]
|
4
|
+
|
5
|
+
attr_accessor :kamera_key, :name, :rarity, :weapon_type,
|
6
|
+
:elite_material_type, :standard_material_type, :weapon_material_type
|
7
|
+
|
8
|
+
def initialize(kamera_key:, name:, rarity:, weapon_type:,
|
9
|
+
elite_material_type:, standard_material_type:, weapon_material_type:)
|
10
|
+
@kamera_key = kamera_key
|
11
|
+
@name = name
|
12
|
+
@rarity = rarity
|
13
|
+
@weapon_type = weapon_type
|
14
|
+
@elite_material_type = elite_material_type
|
15
|
+
@standard_material_type = standard_material_type
|
16
|
+
@weapon_material_type = weapon_material_type
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/genshin_data.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
+
# Module that handles higher constants and base data classes
|
1
2
|
module GenshinData
|
2
|
-
require_relative "genshin_data/
|
3
|
+
require_relative "genshin_data/artifact_set"
|
3
4
|
require_relative "genshin_data/character"
|
5
|
+
require_relative "genshin_data/nation"
|
6
|
+
require_relative "genshin_data/weapon"
|
4
7
|
end
|
File without changes
|
@@ -0,0 +1,313 @@
|
|
1
|
+
module TeyvatDB
|
2
|
+
module ArtifactSets
|
3
|
+
|
4
|
+
ARCHAIC_PETRA = GenshinData::ArtifactSet.new(
|
5
|
+
kamera_key: "ArchaicPetra",
|
6
|
+
name: "Archaic Petra",
|
7
|
+
max_rarity: 5,
|
8
|
+
).freeze
|
9
|
+
|
10
|
+
BLIZZARD_STRAYER = GenshinData::ArtifactSet.new(
|
11
|
+
kamera_key: "BlizzardStrayer",
|
12
|
+
name: "Blizzard Strayer",
|
13
|
+
max_rarity: 5,
|
14
|
+
).freeze
|
15
|
+
|
16
|
+
BLOODSTAINED_CHIVALRY = GenshinData::ArtifactSet.new(
|
17
|
+
kamera_key: "BloodstainedChivalry",
|
18
|
+
name: "Bloodstained Chivalry",
|
19
|
+
max_rarity: 5,
|
20
|
+
).freeze
|
21
|
+
|
22
|
+
CRIMSON_WITCH_OF_FLAMES = GenshinData::ArtifactSet.new(
|
23
|
+
kamera_key: "CrimsonWitchOfFlames",
|
24
|
+
name: "Crimson Witch of Flames",
|
25
|
+
max_rarity: 5,
|
26
|
+
).freeze
|
27
|
+
|
28
|
+
DEEPWOOD_MEMORIES = GenshinData::ArtifactSet.new(
|
29
|
+
kamera_key: "DeepwoodMemories",
|
30
|
+
name: "Deepwood Memories",
|
31
|
+
max_rarity: 5,
|
32
|
+
).freeze
|
33
|
+
|
34
|
+
DESERT_PAVILION_CHRONICLE = GenshinData::ArtifactSet.new(
|
35
|
+
kamera_key: "DesertPavilionChronicle",
|
36
|
+
name: "Desert Pavilion Chronicle",
|
37
|
+
max_rarity: 5,
|
38
|
+
).freeze
|
39
|
+
|
40
|
+
ECHOES_OF_AN_OFFERING = GenshinData::ArtifactSet.new(
|
41
|
+
kamera_key: "EchoesOfAnOffering",
|
42
|
+
name: "Echoes of an Offering",
|
43
|
+
max_rarity: 5,
|
44
|
+
).freeze
|
45
|
+
|
46
|
+
EMBLEM_OF_SEVERED_FATE = GenshinData::ArtifactSet.new(
|
47
|
+
kamera_key: "EmblemOfSeveredFate",
|
48
|
+
name: "Emblem of Severed Fate",
|
49
|
+
max_rarity: 5,
|
50
|
+
).freeze
|
51
|
+
|
52
|
+
FLOWER_OF_PARADISE_LOST = GenshinData::ArtifactSet.new(
|
53
|
+
kamera_key: "FlowerOfParadiseLost",
|
54
|
+
name: "Flower of Paradise Lost",
|
55
|
+
max_rarity: 5,
|
56
|
+
).freeze
|
57
|
+
|
58
|
+
GILDED_DREAMS = GenshinData::ArtifactSet.new(
|
59
|
+
kamera_key: "GildedDreams",
|
60
|
+
name: "Gilded Dreams",
|
61
|
+
max_rarity: 5,
|
62
|
+
).freeze
|
63
|
+
|
64
|
+
GLADIATORS_FINALE = GenshinData::ArtifactSet.new(
|
65
|
+
kamera_key: "GladiatorsFinale",
|
66
|
+
name: "Gladiator's Finale",
|
67
|
+
max_rarity: 5,
|
68
|
+
).freeze
|
69
|
+
|
70
|
+
HEART_OF_DEPTH = GenshinData::ArtifactSet.new(
|
71
|
+
kamera_key: "HeartOfDepth",
|
72
|
+
name: "Heart of Depth",
|
73
|
+
max_rarity: 5,
|
74
|
+
).freeze
|
75
|
+
|
76
|
+
HUSK_OF_OPULENT_DREAMS = GenshinData::ArtifactSet.new(
|
77
|
+
kamera_key: "HuskOfOpulentDreams",
|
78
|
+
name: "Husk of Opulent Dreams",
|
79
|
+
max_rarity: 5,
|
80
|
+
).freeze
|
81
|
+
|
82
|
+
LAVAWALKER = GenshinData::ArtifactSet.new(
|
83
|
+
kamera_key: "Lavawalker",
|
84
|
+
name: "Lavawalker",
|
85
|
+
max_rarity: 5,
|
86
|
+
).freeze
|
87
|
+
|
88
|
+
MAIDEN_BELOVED = GenshinData::ArtifactSet.new(
|
89
|
+
kamera_key: "MaidenBeloved",
|
90
|
+
name: "Maiden Beloved",
|
91
|
+
max_rarity: 5,
|
92
|
+
).freeze
|
93
|
+
|
94
|
+
NOBLESSE_OBLIGE = GenshinData::ArtifactSet.new(
|
95
|
+
kamera_key: "NoblesseOblige",
|
96
|
+
name: "Noblesse Oblige",
|
97
|
+
max_rarity: 5,
|
98
|
+
).freeze
|
99
|
+
|
100
|
+
OCEAN_HUED_CLAM = GenshinData::ArtifactSet.new(
|
101
|
+
kamera_key: "OceanHuedClam",
|
102
|
+
name: "Ocean-Hued Clam",
|
103
|
+
max_rarity: 5,
|
104
|
+
).freeze
|
105
|
+
|
106
|
+
PALE_FLAME = GenshinData::ArtifactSet.new(
|
107
|
+
kamera_key: "PaleFlame",
|
108
|
+
name: "Pale Flame",
|
109
|
+
max_rarity: 5,
|
110
|
+
).freeze
|
111
|
+
|
112
|
+
RETRACING_BOLIDE = GenshinData::ArtifactSet.new(
|
113
|
+
kamera_key: "RetracingBolide",
|
114
|
+
name: "Retracing Bolide",
|
115
|
+
max_rarity: 5,
|
116
|
+
).freeze
|
117
|
+
|
118
|
+
SHIMENAWAS_REMINISCENCE = GenshinData::ArtifactSet.new(
|
119
|
+
kamera_key: "ShimenawasReminiscence",
|
120
|
+
name: "Shimenawa's Reminiscence",
|
121
|
+
max_rarity: 5,
|
122
|
+
).freeze
|
123
|
+
|
124
|
+
TENACITY_OF_THE_MILLELITH = GenshinData::ArtifactSet.new(
|
125
|
+
kamera_key: "TenacityOfTheMillelith",
|
126
|
+
name: "Tenacity of the Millelith",
|
127
|
+
max_rarity: 5,
|
128
|
+
).freeze
|
129
|
+
|
130
|
+
THUNDERING_FURY = GenshinData::ArtifactSet.new(
|
131
|
+
kamera_key: "ThunderingFury",
|
132
|
+
name: "Thundering Fury",
|
133
|
+
max_rarity: 5,
|
134
|
+
).freeze
|
135
|
+
|
136
|
+
THUNDERSOOTHER = GenshinData::ArtifactSet.new(
|
137
|
+
kamera_key: "Thundersoother",
|
138
|
+
name: "Thundersoother",
|
139
|
+
max_rarity: 5,
|
140
|
+
).freeze
|
141
|
+
|
142
|
+
VERMILLION_HEREAFTER = GenshinData::ArtifactSet.new(
|
143
|
+
kamera_key: "VermillionHereafter",
|
144
|
+
name: "Vermillion Hereafter",
|
145
|
+
max_rarity: 5,
|
146
|
+
).freeze
|
147
|
+
|
148
|
+
VIRIDESCENT_VENERER = GenshinData::ArtifactSet.new(
|
149
|
+
kamera_key: "ViridescentVenerer",
|
150
|
+
name: "Viridescent Venerer",
|
151
|
+
max_rarity: 5,
|
152
|
+
).freeze
|
153
|
+
|
154
|
+
WANDERERS_TROUPE = GenshinData::ArtifactSet.new(
|
155
|
+
kamera_key: "WanderersTroupe",
|
156
|
+
name: "Wanderer's Troupe",
|
157
|
+
max_rarity: 5,
|
158
|
+
).freeze
|
159
|
+
|
160
|
+
BERSERKER = GenshinData::ArtifactSet.new(
|
161
|
+
kamera_key: "Berserker",
|
162
|
+
name: "Berserker",
|
163
|
+
max_rarity: 4,
|
164
|
+
).freeze
|
165
|
+
|
166
|
+
BRAVE_HEART = GenshinData::ArtifactSet.new(
|
167
|
+
kamera_key: "BraveHeart",
|
168
|
+
name: "Brave Heart",
|
169
|
+
max_rarity: 4,
|
170
|
+
).freeze
|
171
|
+
|
172
|
+
DEFENDERS_WILL = GenshinData::ArtifactSet.new(
|
173
|
+
kamera_key: "DefendersWill",
|
174
|
+
name: "Defender's Will",
|
175
|
+
max_rarity: 4,
|
176
|
+
).freeze
|
177
|
+
|
178
|
+
INSTRUCTOR = GenshinData::ArtifactSet.new(
|
179
|
+
kamera_key: "Instructor",
|
180
|
+
name: "Instructor",
|
181
|
+
max_rarity: 4,
|
182
|
+
).freeze
|
183
|
+
|
184
|
+
GAMBLER = GenshinData::ArtifactSet.new(
|
185
|
+
kamera_key: "Gambler",
|
186
|
+
name: "Gambler",
|
187
|
+
max_rarity: 4,
|
188
|
+
).freeze
|
189
|
+
|
190
|
+
MARTIAL_ARTIST = GenshinData::ArtifactSet.new(
|
191
|
+
kamera_key: "MartialArtist",
|
192
|
+
name: "Martial Artist",
|
193
|
+
max_rarity: 4,
|
194
|
+
).freeze
|
195
|
+
|
196
|
+
PRAYERS_FOR_DESTINY = GenshinData::ArtifactSet.new(
|
197
|
+
kamera_key: "PrayersForDestiny",
|
198
|
+
name: "Prayers for Destiny",
|
199
|
+
max_rarity: 4,
|
200
|
+
).freeze
|
201
|
+
|
202
|
+
PRAYERS_FOR_ILLUMINATION = GenshinData::ArtifactSet.new(
|
203
|
+
kamera_key: "PrayersForIllumination",
|
204
|
+
name: "Prayers for Illumination",
|
205
|
+
max_rarity: 4,
|
206
|
+
).freeze
|
207
|
+
|
208
|
+
PRAYERS_TO_SPRINGTIME = GenshinData::ArtifactSet.new(
|
209
|
+
kamera_key: "PrayersToSpringtime",
|
210
|
+
name: "Prayers to Springtime",
|
211
|
+
max_rarity: 4,
|
212
|
+
).freeze
|
213
|
+
|
214
|
+
PRAYERS_FOR_WISDOM = GenshinData::ArtifactSet.new(
|
215
|
+
kamera_key: "PrayersForWisdom",
|
216
|
+
name: "Prayers for Wisdom",
|
217
|
+
max_rarity: 4,
|
218
|
+
).freeze
|
219
|
+
|
220
|
+
RESOLUTION_OF_SOJOURNER = GenshinData::ArtifactSet.new(
|
221
|
+
kamera_key: "ResolutionOfSojourner",
|
222
|
+
name: "Resolution of Sojourner",
|
223
|
+
max_rarity: 4,
|
224
|
+
).freeze
|
225
|
+
|
226
|
+
SCHOLAR = GenshinData::ArtifactSet.new(
|
227
|
+
kamera_key: "Scholar",
|
228
|
+
name: "Scholar",
|
229
|
+
max_rarity: 4,
|
230
|
+
).freeze
|
231
|
+
|
232
|
+
THE_EXILE = GenshinData::ArtifactSet.new(
|
233
|
+
kamera_key: "TheExile",
|
234
|
+
name: "The Exile",
|
235
|
+
max_rarity: 4,
|
236
|
+
).freeze
|
237
|
+
|
238
|
+
TINY_MIRACLE = GenshinData::ArtifactSet.new(
|
239
|
+
kamera_key: "TinyMiracle",
|
240
|
+
name: "Tiny Miracle",
|
241
|
+
max_rarity: 4,
|
242
|
+
).freeze
|
243
|
+
|
244
|
+
ADVENTURER = GenshinData::ArtifactSet.new(
|
245
|
+
kamera_key: "Adventurer",
|
246
|
+
name: "Adventurer",
|
247
|
+
max_rarity: 3,
|
248
|
+
).freeze
|
249
|
+
|
250
|
+
LUCKY_DOG = GenshinData::ArtifactSet.new(
|
251
|
+
kamera_key: "LuckyDog",
|
252
|
+
name: "Lucky Dog",
|
253
|
+
max_rarity: 3,
|
254
|
+
).freeze
|
255
|
+
|
256
|
+
TRAVELING_DOCTOR = GenshinData::ArtifactSet.new(
|
257
|
+
kamera_key: "TravelingDoctor",
|
258
|
+
name: "Traveling Doctor",
|
259
|
+
max_rarity: 3,
|
260
|
+
).freeze
|
261
|
+
|
262
|
+
class << self
|
263
|
+
def all
|
264
|
+
[
|
265
|
+
ARCHAIC_PETRA,
|
266
|
+
BLIZZARD_STRAYER,
|
267
|
+
BLOODSTAINED_CHIVALRY,
|
268
|
+
CRIMSON_WITCH_OF_FLAMES,
|
269
|
+
DEEPWOOD_MEMORIES,
|
270
|
+
DESERT_PAVILION_CHRONICLE,
|
271
|
+
ECHOES_OF_AN_OFFERING,
|
272
|
+
EMBLEM_OF_SEVERED_FATE,
|
273
|
+
FLOWER_OF_PARADISE_LOST,
|
274
|
+
GILDED_DREAMS,
|
275
|
+
GLADIATORS_FINALE,
|
276
|
+
HEART_OF_DEPTH,
|
277
|
+
HUSK_OF_OPULENT_DREAMS,
|
278
|
+
LAVAWALKER,
|
279
|
+
MAIDEN_BELOVED,
|
280
|
+
NOBLESSE_OBLIGE,
|
281
|
+
OCEAN_HUED_CLAM,
|
282
|
+
PALE_FLAME,
|
283
|
+
RETRACING_BOLIDE,
|
284
|
+
SHIMENAWAS_REMINISCENCE,
|
285
|
+
TENACITY_OF_THE_MILLELITH,
|
286
|
+
THUNDERING_FURY,
|
287
|
+
THUNDERSOOTHER,
|
288
|
+
VERMILLION_HEREAFTER,
|
289
|
+
VIRIDESCENT_VENERER,
|
290
|
+
WANDERERS_TROUPE,
|
291
|
+
BERSERKER,
|
292
|
+
BRAVE_HEART,
|
293
|
+
DEFENDERS_WILL,
|
294
|
+
INSTRUCTOR,
|
295
|
+
GAMBLER,
|
296
|
+
MARTIAL_ARTIST,
|
297
|
+
PRAYERS_FOR_DESTINY,
|
298
|
+
PRAYERS_FOR_ILLUMINATION,
|
299
|
+
PRAYERS_TO_SPRINGTIME,
|
300
|
+
PRAYERS_FOR_WISDOM,
|
301
|
+
RESOLUTION_OF_SOJOURNER,
|
302
|
+
SCHOLAR,
|
303
|
+
THE_EXILE,
|
304
|
+
TINY_MIRACLE,
|
305
|
+
ADVENTURER,
|
306
|
+
LUCKY_DOG,
|
307
|
+
TRAVELING_DOCTOR,
|
308
|
+
]
|
309
|
+
end
|
310
|
+
end
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
data/lib/teyvatdb/version.rb
CHANGED