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,107 +1,114 @@
1
- module GenshinData::Materials::Development
2
- module GeneralData
3
- def self.all
4
- self.constants.map { |x| "GenshinData::Materials::Development::GeneralData::#{x}".constantize }
5
- end
1
+ # frozen_string_literal: true
2
+
3
+ module GenshinData
4
+ module Materials
5
+ module Development
6
+ # Definitons for all misc development materials
7
+ module GeneralData
8
+ def self.all
9
+ constants.map { |x| GenshinData::Materials::Development::GeneralData.const_get(x) }
10
+ end
6
11
 
7
- ADVENTURERS_EXPERIENCE = GenshinObject::Material.new(
8
- kamera_key: "AdventurersExperience",
9
- name: "Adventurers Experience",
10
- rarity: 3,
11
- family: :character_experience,
12
- inventory_type: :development_material,
13
- source_category: :general_reward,
14
- source_sub_category: nil,
15
- ).freeze
12
+ ADVENTURERS_EXPERIENCE = GenshinObject::Material.new(
13
+ kamera_key: "AdventurersExperience",
14
+ name: "Adventurers Experience",
15
+ rarity: 3,
16
+ family: :character_experience,
17
+ inventory_type: :development_material,
18
+ source_category: :general_reward,
19
+ source_sub_category: nil
20
+ ).freeze
16
21
 
17
- CROWN_OF_INSIGHT = GenshinObject::Material.new(
18
- kamera_key: "CrownOfInsight",
19
- name: "Crown of Insight",
20
- rarity: 5,
21
- family: :talent_experience,
22
- inventory_type: :development_material,
23
- source_category: :general_reward,
24
- source_sub_category: nil,
25
- ).freeze
22
+ CROWN_OF_INSIGHT = GenshinObject::Material.new(
23
+ kamera_key: "CrownOfInsight",
24
+ name: "Crown of Insight",
25
+ rarity: 5,
26
+ family: :talent_experience,
27
+ inventory_type: :development_material,
28
+ source_category: :general_reward,
29
+ source_sub_category: nil
30
+ ).freeze
26
31
 
27
- ENHANCEMENT_ORE = GenshinObject::Material.new(
28
- kamera_key: "EnhancementOre",
29
- name: "Enhancement Ore",
30
- rarity: 1,
31
- family: :weapon_experience,
32
- inventory_type: :development_material,
33
- source_category: :general_reward,
34
- source_sub_category: nil,
35
- ).freeze
32
+ ENHANCEMENT_ORE = GenshinObject::Material.new(
33
+ kamera_key: "EnhancementOre",
34
+ name: "Enhancement Ore",
35
+ rarity: 1,
36
+ family: :weapon_experience,
37
+ inventory_type: :development_material,
38
+ source_category: :general_reward,
39
+ source_sub_category: nil
40
+ ).freeze
36
41
 
37
- FINE_ENHANCEMENT_ORE = GenshinObject::Material.new(
38
- kamera_key: "FineEnhancementOre",
39
- name: "Fine Enhancement Ore",
40
- rarity: 2,
41
- family: :weapon_experience,
42
- inventory_type: :development_material,
43
- source_category: :general_reward,
44
- source_sub_category: nil,
45
- ).freeze
42
+ FINE_ENHANCEMENT_ORE = GenshinObject::Material.new(
43
+ kamera_key: "FineEnhancementOre",
44
+ name: "Fine Enhancement Ore",
45
+ rarity: 2,
46
+ family: :weapon_experience,
47
+ inventory_type: :development_material,
48
+ source_category: :general_reward,
49
+ source_sub_category: nil
50
+ ).freeze
46
51
 
47
- HEROS_WIT = GenshinObject::Material.new(
48
- kamera_key: "HerosWit",
49
- name: "Heros Wit",
50
- rarity: 4,
51
- family: :character_experience,
52
- inventory_type: :development_material,
53
- source_category: :general_reward,
54
- source_sub_category: nil,
55
- ).freeze
52
+ HEROS_WIT = GenshinObject::Material.new(
53
+ kamera_key: "HerosWit",
54
+ name: "Heros Wit",
55
+ rarity: 4,
56
+ family: :character_experience,
57
+ inventory_type: :development_material,
58
+ source_category: :general_reward,
59
+ source_sub_category: nil
60
+ ).freeze
56
61
 
57
- MORA = GenshinObject::Material.new(
58
- kamera_key: "Mora",
59
- name: "Mora",
60
- rarity: 1,
61
- family: nil,
62
- inventory_type: :standard_material,
63
- source_category: :general_reward,
64
- source_sub_category: nil,
65
- ).freeze
62
+ MORA = GenshinObject::Material.new(
63
+ kamera_key: "Mora",
64
+ name: "Mora",
65
+ rarity: 1,
66
+ family: nil,
67
+ inventory_type: :standard_material,
68
+ source_category: :general_reward,
69
+ source_sub_category: nil
70
+ ).freeze
66
71
 
67
- MYSTIC_ENHANCEMENT_ORE = GenshinObject::Material.new(
68
- kamera_key: "MysticEnhancementOre",
69
- name: "Mystic Enhancement Ore",
70
- rarity: 3,
71
- family: :weapon_experience,
72
- inventory_type: :development_material,
73
- source_category: :general_reward,
74
- source_sub_category: nil,
75
- ).freeze
72
+ MYSTIC_ENHANCEMENT_ORE = GenshinObject::Material.new(
73
+ kamera_key: "MysticEnhancementOre",
74
+ name: "Mystic Enhancement Ore",
75
+ rarity: 3,
76
+ family: :weapon_experience,
77
+ inventory_type: :development_material,
78
+ source_category: :general_reward,
79
+ source_sub_category: nil
80
+ ).freeze
76
81
 
77
- SANCTIFYING_ESSENCE = GenshinObject::Material.new(
78
- kamera_key: "SanctifyingEssence",
79
- name: "Sanctifying Essence",
80
- rarity: 4,
81
- family: :artifact_experience,
82
- inventory_type: :development_material,
83
- source_category: :general_reward,
84
- source_sub_category: nil,
85
- ).freeze
82
+ SANCTIFYING_ESSENCE = GenshinObject::Material.new(
83
+ kamera_key: "SanctifyingEssence",
84
+ name: "Sanctifying Essence",
85
+ rarity: 4,
86
+ family: :artifact_experience,
87
+ inventory_type: :development_material,
88
+ source_category: :general_reward,
89
+ source_sub_category: nil
90
+ ).freeze
86
91
 
87
- SANCTIFYING_UNCTION = GenshinObject::Material.new(
88
- kamera_key: "SanctifyingUnction",
89
- name: "Sanctifying Unction",
90
- rarity: 3,
91
- family: :artifact_experience,
92
- inventory_type: :development_material,
93
- source_category: :general_reward,
94
- source_sub_category: nil,
95
- ).freeze
92
+ SANCTIFYING_UNCTION = GenshinObject::Material.new(
93
+ kamera_key: "SanctifyingUnction",
94
+ name: "Sanctifying Unction",
95
+ rarity: 3,
96
+ family: :artifact_experience,
97
+ inventory_type: :development_material,
98
+ source_category: :general_reward,
99
+ source_sub_category: nil
100
+ ).freeze
96
101
 
97
- WANDERERS_ADVICE = GenshinObject::Material.new(
98
- kamera_key: "WanderersAdvice",
99
- name: "Wanderers Advice",
100
- rarity: 2,
101
- family: :character_experience,
102
- inventory_type: :development_material,
103
- source_category: :general_reward,
104
- source_sub_category: nil,
105
- ).freeze
102
+ WANDERERS_ADVICE = GenshinObject::Material.new(
103
+ kamera_key: "WanderersAdvice",
104
+ name: "Wanderers Advice",
105
+ rarity: 2,
106
+ family: :character_experience,
107
+ inventory_type: :development_material,
108
+ source_category: :general_reward,
109
+ source_sub_category: nil
110
+ ).freeze
111
+ end
112
+ end
106
113
  end
107
- end
114
+ end