1
This commit is contained in:
parent
b53700bb12
commit
424d3cf3b6
@ -15,6 +15,7 @@
|
|||||||
#include "ability.h"
|
#include "ability.h"
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "android.h"
|
#include "android.h"
|
||||||
|
#include "skill.h"
|
||||||
|
|
||||||
#include "buff/distance_dmg_addition.h"
|
#include "buff/distance_dmg_addition.h"
|
||||||
|
|
||||||
@ -434,6 +435,7 @@ void BattleDataContext::ParseResult(a8::XObject& obj)
|
|||||||
hero_dto = obj.At("hero_dto");
|
hero_dto = obj.At("hero_dto");
|
||||||
hero_ability_->hero_uniid_ = hero_dto->Get("hero_uniid", "");
|
hero_ability_->hero_uniid_ = hero_dto->Get("hero_uniid", "");
|
||||||
hero_ability_->spec_skill_id = obj.Get("skill_id", "");
|
hero_ability_->spec_skill_id = obj.Get("skill_id", "");
|
||||||
|
hero_ability_->main_skill_id = obj.Get("skill_id", "");
|
||||||
hero_ability_->hero_dto = hero_dto;
|
hero_ability_->hero_dto = hero_dto;
|
||||||
hero_lv_ = hero_dto->HasKey("hero_lv") ? hero_dto->Get("hero_lv").GetInt() : 1;
|
hero_lv_ = hero_dto->HasKey("hero_lv") ? hero_dto->Get("hero_lv").GetInt() : 1;
|
||||||
const mt::Hero* meta = mt::Hero::GetById(hero_dto->Get("hero_id", ""));
|
const mt::Hero* meta = mt::Hero::GetById(hero_dto->Get("hero_id", ""));
|
||||||
@ -1049,5 +1051,5 @@ int BattleDataContext::GetHeroLevel()
|
|||||||
|
|
||||||
bool BattleDataContext::IsMainSkill(Skill* skill)
|
bool BattleDataContext::IsMainSkill(Skill* skill)
|
||||||
{
|
{
|
||||||
|
return hero_ability_->main_skill_id == skill->meta->skill_id();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user