teyvatdb 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1816f528585dd94e7d9010db3d0e09bbaf26f25566ada8df82acbea4fafb49fe
4
- data.tar.gz: 5491d16829e2d0cc626faaf1c71058253ee1f70a70530b6dc07b221a6da83a93
3
+ metadata.gz: 2ac689ccce3860661f1e49793cd4f8de3960b9deba4ccb5a2b1fdf134d7e0e62
4
+ data.tar.gz: 9102735437903c28b29dcd50b005240624bb049d5a7415552e58c8887d1c9084
5
5
  SHA512:
6
- metadata.gz: b74630d6197cca4191420aeb92b10b2505fced380a5a79cc9b68ba84a5b5fcdabcf322beb3b2a2e38c4c22412292bce589fc76fd3fda8524ab83b62a58dfa72b
7
- data.tar.gz: d5fdf30a22ed071d95f1c95314cf22f881cbbf6b15cb534210fc4014b4d3b1eb7cf29492c63dc47598f06723bd9eb914eaff9a17ec89719990515a1e20055197
6
+ metadata.gz: '01139235c719211570852eed6174625b25bd899fe1d5d4e2b067b62df1560406adbf3483f05f13c7adae3c8d31c21a79cea975ea6b1ee0a0254f04f4697d843b'
7
+ data.tar.gz: 3efa4a4cc86993cd34a867dcf4c9b7f8aa9b8035a430967350f8b5acbcad1a181a7094d7aa21856142ac629c111fd39a7a07a98397bd18f84e602c86951ec669
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- teyvatdb (0.1.3)
4
+ teyvatdb (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
data/lib/genshin_data.rb CHANGED
@@ -1,5 +1,7 @@
1
+ # Module that handles higher constants and base data classes
1
2
  module GenshinData
2
- require_relative "genshin_data/nation"
3
+ require_relative "genshin_data/artifact_set"
3
4
  require_relative "genshin_data/character"
5
+ require_relative "genshin_data/nation"
4
6
  require_relative "genshin_data/weapon"
5
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
+
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TeyvatDB
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
data/lib/teyvatdb.rb CHANGED
@@ -6,8 +6,9 @@ require_relative "genshin_data"
6
6
 
7
7
  require_relative "teyvatdb/version"
8
8
 
9
- require_relative "teyvatdb/nations"
9
+ require_relative "teyvatdb/artifact_sets"
10
10
  require_relative "teyvatdb/characters"
11
+ require_relative "teyvatdb/nations"
11
12
  require_relative "teyvatdb/weapons"
12
13
 
13
14
  # Common helpers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teyvatdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Haberer
@@ -39,10 +39,13 @@ files:
39
39
  - README.md
40
40
  - Rakefile
41
41
  - lib/genshin_data.rb
42
+ - lib/genshin_data/artifact_set.rb
42
43
  - lib/genshin_data/character.rb
43
44
  - lib/genshin_data/nation.rb
44
45
  - lib/genshin_data/weapon.rb
45
46
  - lib/teyvatdb.rb
47
+ - lib/teyvatdb/artifact_dump.rb
48
+ - lib/teyvatdb/artifact_sets.rb
46
49
  - lib/teyvatdb/characters.rb
47
50
  - lib/teyvatdb/materials/development/data/boss_weekly/ashen_heart.json
48
51
  - lib/teyvatdb/materials/development/data/boss_weekly/bloodjade_branch.json