@@ -12,10 +12,9 @@ use reliquary::network::gen::command_id;
12
12
use reliquary:: network:: gen:: proto:: Avatar :: Avatar as ProtoCharacter ;
13
13
use reliquary:: network:: gen:: proto:: AvatarSkillTree :: AvatarSkillTree as ProtoSkillTree ;
14
14
use reliquary:: network:: gen:: proto:: Equipment :: Equipment as ProtoLightCone ;
15
- use reliquary:: network:: gen:: proto:: Gender :: Gender ;
16
15
use reliquary:: network:: gen:: proto:: GetAvatarDataScRsp :: GetAvatarDataScRsp ;
17
16
use reliquary:: network:: gen:: proto:: GetBagScRsp :: GetBagScRsp ;
18
- use reliquary:: network:: gen:: proto:: GetHeroBasicTypeInfoScRsp :: GetHeroBasicTypeInfoScRsp ;
17
+ use reliquary:: network:: gen:: proto:: GetMultiPathAvatarInfoScRsp :: GetMultiPathAvatarInfoScRsp ;
19
18
use reliquary:: network:: gen:: proto:: HeroBasicTypeInfo :: HeroBasicTypeInfo ;
20
19
use reliquary:: network:: gen:: proto:: PlayerGetTokenScRsp :: PlayerGetTokenScRsp ;
21
20
use reliquary:: network:: gen:: proto:: Relic :: Relic as ProtoRelic ;
@@ -78,30 +77,7 @@ impl OptimizerExporter {
78
77
self . uid = Some ( uid) ;
79
78
}
80
79
81
- pub fn add_trailblazer_data ( & mut self , hero : GetHeroBasicTypeInfoScRsp ) {
82
- let gender = match hero. gender . enum_value ( ) . unwrap ( ) {
83
- Gender :: GenderNone => "" , // probably in the prologue before selecting gender?
84
- Gender :: GenderMan => "Caelus" ,
85
- Gender :: GenderWoman => "Stelle"
86
- } ;
87
-
88
- self . trailblazer = Some ( gender) ;
89
- info ! ( gender, "found trailblazer gender" ) ;
90
-
91
- let mut builds: Vec < Character > = hero. basic_type_info_list . iter ( )
92
- . filter_map ( |b| export_proto_hero ( & self . database , & b) )
93
- . collect ( ) ;
94
-
95
- self . current_trailblazer_path = avatar_path_lookup ( & self . database , hero. cur_basic_type . value ( ) as u32 ) ;
96
- if let Some ( path) = self . current_trailblazer_path {
97
- info ! ( path, "found current trailblazer path" ) ;
98
- } else {
99
- warn ! ( "unknown path for current trailblazer" ) ;
100
- }
101
-
102
- info ! ( num=builds. len( ) , "found trailblazer builds" ) ;
103
- self . trailblazer_characters . append ( & mut builds) ;
104
- }
80
+ // TODO: add_multipath_avatars
105
81
106
82
pub fn add_inventory ( & mut self , bag : GetBagScRsp ) {
107
83
let mut relics: Vec < Relic > = bag. relic_list . iter ( )
@@ -171,15 +147,16 @@ impl Exporter for OptimizerExporter {
171
147
}
172
148
}
173
149
}
174
- command_id:: GetHeroBasicTypeInfoScRsp => {
175
- debug ! ( "detected trailblazer packet" ) ;
176
- let cmd = command. parse_proto :: < GetHeroBasicTypeInfoScRsp > ( ) ;
150
+ command_id:: GetMultiPathAvatarInfoScRsp => {
151
+ debug ! ( "detected multipath packet (trailblazer/march 7th) " ) ;
152
+ let cmd = command. parse_proto :: < GetMultiPathAvatarInfoScRsp > ( ) ;
177
153
match cmd {
178
154
Ok ( cmd) => {
179
- self . add_trailblazer_data ( cmd) ;
155
+ // TODO: handle multi path packets
156
+ warn ! ( "ignored multipath characters for now, will be supported in next version" ) ;
180
157
}
181
158
Err ( error) => {
182
- warn ! ( %error, "could not parse trailblazer data command" ) ;
159
+ warn ! ( %error, "could not parse multipath data command" ) ;
183
160
}
184
161
}
185
162
}
0 commit comments