File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed
Sources/GachaMetaGeneratorModule Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,6 @@ extension GachaMetaGenerator {
27
27
}
28
28
}
29
29
30
- public init ? ( against target: GachaItemMeta ) {
31
- // Genshin Impact Protagonist Scenario.
32
- if target. id > 114514 , let genshinProtagonist = Self ( rawValue: target. id) {
33
- self = genshinProtagonist
34
- }
35
- guard let map = target. l10nMap else { return nil }
36
- // The rest must be either HSR protagonist or nothing.
37
- guard map. description. contains ( #"{NICKNAME}"# )
38
- || map. description. contains ( " Trailblazer " )
39
- else { return nil }
40
- self = ( target. id % 2 == 0 ) ? . ofStelle : . ofCaelus
41
- }
42
-
43
30
// MARK: Public
44
31
45
32
public var nameTranslationDict : [ String : String ] {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ extension GachaMetaGenerator {
67
67
guard let dict = dictAll [ localeID. langTag] ? [ hashKey] else { return }
68
68
if currentItem. l10nMap == nil { currentItem. l10nMap = [ : ] }
69
69
currentItem. l10nMap ? [ localeID. langTag] = dict
70
- if let matchedProtagonist = Protagonist ( against : currentItem) {
70
+ if let matchedProtagonist = Protagonist ( rawValue : currentItem. id ) {
71
71
currentItem. l10nMap = matchedProtagonist. nameTranslationDict
72
72
}
73
73
items [ theIndex] = currentItem
You can’t perform that action at this time.
0 commit comments