1
This commit is contained in:
parent
e34322e59b
commit
39d4631e02
@ -2245,6 +2245,12 @@ void Creature::OnBattleStart(Room* room)
|
||||
A8_ABORT();
|
||||
}
|
||||
#endif
|
||||
for (int item_id : GetBattleContext()->GetAvatars()) {
|
||||
if (item_id == 290001) {
|
||||
TryAddBuff(this, 1029000101);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool Creature::CanFollow(Creature* follower)
|
||||
|
@ -544,6 +544,11 @@ void BattleDataContext::ParseResult(a8::XObject& obj)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (obj.HasKey("avatar_info") && obj.At("avatar_info")->IsArray()) {
|
||||
if (obj.At("avatar_info")->Size() > 0) {
|
||||
avatars_.push_back(290001);
|
||||
}
|
||||
}
|
||||
parse_ok = hero_ability_->hero_meta != nullptr;
|
||||
}
|
||||
|
||||
|
@ -88,6 +88,7 @@ struct BattleDataContext
|
||||
|
||||
int GetHonor();
|
||||
int GetElo() { return elo_; }
|
||||
const std::list<int>& GetAvatars() { return avatars_; }
|
||||
|
||||
private:
|
||||
void Clear();
|
||||
@ -122,6 +123,8 @@ private:
|
||||
int current_get_star_ = 0;
|
||||
int battle_times_ = 0;
|
||||
|
||||
std::list<int> avatars_;
|
||||
|
||||
int skill1_lv = 1;
|
||||
int skill2_lv = 1;
|
||||
int skill3_lv = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user