This commit is contained in:
aozhiwei 2023-10-23 18:44:49 +08:00
parent 2281bf1d80
commit 7b8c2f71d7
2 changed files with 8 additions and 4 deletions

View File

@ -701,22 +701,24 @@ bool HeroAgent::InTargetShotRange()
void HeroAgent::ResetShotTimes()
{
shot_times_ = 0;
last_shot_frameno_ = owner_->room->GetFrameNo();
}
void HeroAgent::ResetUseSkillTimes()
{
useskill_times_ = 0;
last_useskill_frameno_ = owner_->room->GetFrameNo();
}
int HeroAgent::GetShotTimes()
{
return 0;
return shot_times_;
}
int HeroAgent::GetUseSkillTimes()
{
return 0;
return useskill_times_;
}
float HeroAgent::GetTargetManhattanDistance()

View File

@ -133,6 +133,8 @@ protected:
private:
bool bullet_trace_mode_ = false;
long long flags_ = 0;
int shot_times_ = 0;
int useskill_times_ = 0;
long long last_shot_frameno_ = 0;
long long last_useskill_frameno_ = 0;
std::map<int, int> dyn_hash_;