1
This commit is contained in:
parent
b120b4355a
commit
3e4aa98643
@ -446,6 +446,25 @@ void BattleDataContext::ParseResult(a8::XObject& obj)
|
|||||||
hero_ability_->hero_meta = meta;
|
hero_ability_->hero_meta = meta;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (obj.HasKey("honor_info") && obj.At("honor_info")->IsArray()) {
|
||||||
|
auto honor_info = obj.At("horn_info");
|
||||||
|
for (int i = 0; i < honor_info->Size(); ++i) {
|
||||||
|
auto info = honor_info->At(i);
|
||||||
|
if (info->IsObject()) {
|
||||||
|
if (info->HasKey("token_type") &&
|
||||||
|
info->HasKey("state") &&
|
||||||
|
info->At("token_type")->IsSimple() &&
|
||||||
|
info->At("state")->IsSimple()
|
||||||
|
) {
|
||||||
|
int token_type = info->Get("token_type").GetInt();
|
||||||
|
int state = info->Get("state").GetInt();
|
||||||
|
if (token_type == 6 && state) {
|
||||||
|
honor_ = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
#if 1
|
#if 1
|
||||||
if (hero_ability_->hero_meta) {
|
if (hero_ability_->hero_meta) {
|
||||||
const mt::Item* item_meta = mt::Item::GetById(hero_ability_->hero_meta->default_weapon());
|
const mt::Item* item_meta = mt::Item::GetById(hero_ability_->hero_meta->default_weapon());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user