This commit is contained in:
aozhiwei 2021-04-04 22:31:59 +08:00
parent 434125103b
commit 6ed08bbb92
3 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,7 @@ private:
Skill* curr_skill_ = nullptr;
int skill_target_id_ = 0;
a8::Vec2 skill_target_pos_;
float skill_distance_ = 0.0f;
std::map<int, Skill*> skill_hash_;
std::map<int, Skill*> passive_skill_hash_;
std::array<int, IS_END - 1> inventory_ = {};

View File

@ -1130,6 +1130,7 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
} else {
skill_dir = a8::Vec2();
}
skill_distance = msg.skill_distance();
} else {
use_skill = false;
}

View File

@ -61,6 +61,7 @@ class Player : public Human
int use_skill_id = 0;
int skill_target_id = 0;
a8::Vec2 skill_dir;
float skill_distance = 0.0f;
bool get_down = false;
int get_on = 0;