teyvatdb 0.1.18 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) 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 +2 -2
  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/weapon_materials.rb +14 -0
  30. data/lib/genshin_data/weapons/weapon_data/bows.rb +369 -364
  31. data/lib/genshin_data/weapons/weapon_data/catalysts.rb +359 -354
  32. data/lib/genshin_data/weapons/weapon_data/claymores.rb +359 -354
  33. data/lib/genshin_data/weapons/weapon_data/polearms.rb +262 -257
  34. data/lib/genshin_data/weapons/weapon_data/swords.rb +399 -395
  35. data/lib/genshin_data/weapons/weapon_data.rb +10 -7
  36. data/lib/genshin_data/weapons.rb +2 -1
  37. data/lib/genshin_data/weekly_bosses/weekly_boss_data.rb +75 -0
  38. data/lib/genshin_data/weekly_bosses.rb +14 -0
  39. data/lib/genshin_data/world_bosses/world_boss_data.rb +186 -0
  40. data/lib/genshin_data/world_bosses.rb +14 -0
  41. data/lib/genshin_data.rb +23 -5
  42. data/lib/genshin_object/artifact_set.rb +2 -2
  43. data/lib/genshin_object/boss.rb +13 -0
  44. data/lib/genshin_object/material_family.rb +15 -0
  45. data/lib/genshin_object/schedule.rb +42 -0
  46. data/lib/genshin_object/talent_book.rb +6 -0
  47. data/lib/genshin_object/weapon_material_family.rb +6 -0
  48. data/lib/genshin_object/weekly_boss.rb +15 -0
  49. data/lib/genshin_object/world_boss.rb +14 -0
  50. data/lib/genshin_object.rb +11 -5
  51. data/lib/teyvatdb/version.rb +1 -1
  52. data/lib/teyvatdb.rb +3 -3
  53. metadata +16 -2
@@ -1,137 +1,144 @@
1
- module GenshinData::Materials::Standard
2
- module CraftingMaterialData
3
- def self.all
4
- self.constants.map { |x| "GenshinData::Materials::Standard::CraftingMaterialData::#{x}".constantize }
5
- end
1
+ # frozen_string_literal: true
2
+
3
+ module GenshinData
4
+ module Materials
5
+ module Standard
6
+ # Definitons for all general crafting Materials
7
+ module CraftingMaterialData
8
+ def self.all
9
+ constants.map { |x| GenshinData::Materials::Standard::CraftingMaterialData.const_get(x) }
10
+ end
6
11
 
7
- BUTTERFLY_WINGS = GenshinObject::Material.new(
8
- kamera_key: "ButterflyWings",
9
- name: "Butterfly Wings",
10
- rarity: 1,
11
- family: nil,
12
- inventory_type: :standard_material,
13
- source_category: :gathering,
14
- source_sub_category: :miscellaneous,
15
- ).freeze
12
+ BUTTERFLY_WINGS = GenshinObject::Material.new(
13
+ kamera_key: "ButterflyWings",
14
+ name: "Butterfly Wings",
15
+ rarity: 1,
16
+ family: nil,
17
+ inventory_type: :standard_material,
18
+ source_category: :gathering,
19
+ source_sub_category: :miscellaneous
20
+ ).freeze
16
21
 
17
- CRYSTAL_CORE = GenshinObject::Material.new(
18
- kamera_key: "CrystalCore",
19
- name: "Crystal Core",
20
- rarity: 1,
21
- family: nil,
22
- inventory_type: :standard_material,
23
- source_category: :gathering,
24
- source_sub_category: :miscellaneous,
25
- ).freeze
22
+ CRYSTAL_CORE = GenshinObject::Material.new(
23
+ kamera_key: "CrystalCore",
24
+ name: "Crystal Core",
25
+ rarity: 1,
26
+ family: nil,
27
+ inventory_type: :standard_material,
28
+ source_category: :gathering,
29
+ source_sub_category: :miscellaneous
30
+ ).freeze
26
31
 
27
- ELECTRO_CRYSTAL = GenshinObject::Material.new(
28
- kamera_key: "ElectroCrystal",
29
- name: "Electro Crystal",
30
- rarity: 1,
31
- family: nil,
32
- inventory_type: :standard_material,
33
- source_category: :gathering,
34
- source_sub_category: :miscellaneous,
35
- ).freeze
32
+ ELECTRO_CRYSTAL = GenshinObject::Material.new(
33
+ kamera_key: "ElectroCrystal",
34
+ name: "Electro Crystal",
35
+ rarity: 1,
36
+ family: nil,
37
+ inventory_type: :standard_material,
38
+ source_category: :gathering,
39
+ source_sub_category: :miscellaneous
40
+ ).freeze
36
41
 
37
- FLAMING_FLOWER_STAMEN = GenshinObject::Material.new(
38
- kamera_key: "FlamingFlowerStamen",
39
- name: "Flaming Flower Stamen",
40
- rarity: 1,
41
- family: nil,
42
- inventory_type: :standard_material,
43
- source_category: :gathering,
44
- source_sub_category: :miscellaneous,
45
- ).freeze
42
+ FLAMING_FLOWER_STAMEN = GenshinObject::Material.new(
43
+ kamera_key: "FlamingFlowerStamen",
44
+ name: "Flaming Flower Stamen",
45
+ rarity: 1,
46
+ family: nil,
47
+ inventory_type: :standard_material,
48
+ source_category: :gathering,
49
+ source_sub_category: :miscellaneous
50
+ ).freeze
46
51
 
47
- FROG_MATERIAL = GenshinObject::Material.new(
48
- kamera_key: "Frog",
49
- name: "Frog",
50
- rarity: 1,
51
- family: nil,
52
- inventory_type: :standard_material,
53
- source_category: :gathering,
54
- source_sub_category: :miscellaneous,
55
- ).freeze
52
+ FROG_MATERIAL = GenshinObject::Material.new(
53
+ kamera_key: "Frog",
54
+ name: "Frog",
55
+ rarity: 1,
56
+ family: nil,
57
+ inventory_type: :standard_material,
58
+ source_category: :gathering,
59
+ source_sub_category: :miscellaneous
60
+ ).freeze
56
61
 
57
- LANTERN_FIBER = GenshinObject::Material.new(
58
- kamera_key: "LanternFiber",
59
- name: "Lantern Fiber",
60
- rarity: 3,
61
- family: nil,
62
- inventory_type: :standard_material,
63
- source_category: :gathering,
64
- source_sub_category: :miscellaneous,
65
- ).freeze
62
+ LANTERN_FIBER = GenshinObject::Material.new(
63
+ kamera_key: "LanternFiber",
64
+ name: "Lantern Fiber",
65
+ rarity: 3,
66
+ family: nil,
67
+ inventory_type: :standard_material,
68
+ source_category: :gathering,
69
+ source_sub_category: :miscellaneous
70
+ ).freeze
66
71
 
67
- LIZARD_TAIL = GenshinObject::Material.new(
68
- kamera_key: "LizardTail",
69
- name: "Lizard Tail",
70
- rarity: 3,
71
- family: nil,
72
- inventory_type: :standard_material,
73
- source_category: :gathering,
74
- source_sub_category: :miscellaneous,
75
- ).freeze
72
+ LIZARD_TAIL = GenshinObject::Material.new(
73
+ kamera_key: "LizardTail",
74
+ name: "Lizard Tail",
75
+ rarity: 3,
76
+ family: nil,
77
+ inventory_type: :standard_material,
78
+ source_category: :gathering,
79
+ source_sub_category: :miscellaneous
80
+ ).freeze
76
81
 
77
- LOACH_PEARL = GenshinObject::Material.new(
78
- kamera_key: "LoachPearl",
79
- name: "Loach Pearl",
80
- rarity: 1,
81
- family: nil,
82
- inventory_type: :standard_material,
83
- source_category: :gathering,
84
- source_sub_category: :miscellaneous,
85
- ).freeze
82
+ LOACH_PEARL = GenshinObject::Material.new(
83
+ kamera_key: "LoachPearl",
84
+ name: "Loach Pearl",
85
+ rarity: 1,
86
+ family: nil,
87
+ inventory_type: :standard_material,
88
+ source_category: :gathering,
89
+ source_sub_category: :miscellaneous
90
+ ).freeze
86
91
 
87
- LUMINESCENT_SPINE = GenshinObject::Material.new(
88
- kamera_key: "LuminescentSpine",
89
- name: "Luminescent Spine",
90
- rarity: 1,
91
- family: nil,
92
- inventory_type: :standard_material,
93
- source_category: :gathering,
94
- source_sub_category: :miscellaneous,
95
- ).freeze
92
+ LUMINESCENT_SPINE = GenshinObject::Material.new(
93
+ kamera_key: "LuminescentSpine",
94
+ name: "Luminescent Spine",
95
+ rarity: 1,
96
+ family: nil,
97
+ inventory_type: :standard_material,
98
+ source_category: :gathering,
99
+ source_sub_category: :miscellaneous
100
+ ).freeze
96
101
 
97
- MIST_FLOWER_COROLLA = GenshinObject::Material.new(
98
- kamera_key: "MistFlowerCorolla",
99
- name: "Mist Flower Corolla",
100
- rarity: 1,
101
- family: nil,
102
- inventory_type: :standard_material,
103
- source_category: :gathering,
104
- source_sub_category: :miscellaneous,
105
- ).freeze
102
+ MIST_FLOWER_COROLLA = GenshinObject::Material.new(
103
+ kamera_key: "MistFlowerCorolla",
104
+ name: "Mist Flower Corolla",
105
+ rarity: 1,
106
+ family: nil,
107
+ inventory_type: :standard_material,
108
+ source_category: :gathering,
109
+ source_sub_category: :miscellaneous
110
+ ).freeze
106
111
 
107
- PLAUSTRITE_SHARD = GenshinObject::Material.new(
108
- kamera_key: "PlaustriteShard",
109
- name: "Plaustrite Shard",
110
- rarity: 3,
111
- family: nil,
112
- inventory_type: :standard_material,
113
- source_category: :gathering,
114
- source_sub_category: :miscellaneous,
115
- ).freeze
112
+ PLAUSTRITE_SHARD = GenshinObject::Material.new(
113
+ kamera_key: "PlaustriteShard",
114
+ name: "Plaustrite Shard",
115
+ rarity: 3,
116
+ family: nil,
117
+ inventory_type: :standard_material,
118
+ source_category: :gathering,
119
+ source_sub_category: :miscellaneous
120
+ ).freeze
116
121
 
117
- STRANGE_TOOTH = GenshinObject::Material.new(
118
- kamera_key: "StrangeTooth",
119
- name: "Strange Tooth",
120
- rarity: 1,
121
- family: nil,
122
- inventory_type: :standard_material,
123
- source_category: :gathering,
124
- source_sub_category: :miscellaneous,
125
- ).freeze
122
+ STRANGE_TOOTH = GenshinObject::Material.new(
123
+ kamera_key: "StrangeTooth",
124
+ name: "Strange Tooth",
125
+ rarity: 1,
126
+ family: nil,
127
+ inventory_type: :standard_material,
128
+ source_category: :gathering,
129
+ source_sub_category: :miscellaneous
130
+ ).freeze
126
131
 
127
- WICK_MATERIAL = GenshinObject::Material.new(
128
- kamera_key: "WickMaterial",
129
- name: "Wick Material",
130
- rarity: 3,
131
- family: nil,
132
- inventory_type: :standard_material,
133
- source_category: :gathering,
134
- source_sub_category: :miscellaneous,
135
- ).freeze
132
+ WICK_MATERIAL = GenshinObject::Material.new(
133
+ kamera_key: "WickMaterial",
134
+ name: "Wick Material",
135
+ rarity: 3,
136
+ family: nil,
137
+ inventory_type: :standard_material,
138
+ source_category: :gathering,
139
+ source_sub_category: :miscellaneous
140
+ ).freeze
141
+ end
142
+ end
136
143
  end
137
- end
144
+ end