talent & skin attr
This commit is contained in:
parent
ad47190220
commit
1ad105df3c
@ -2090,6 +2090,16 @@ bool Human::IsEnemy(Human* hum)
|
||||
}
|
||||
}
|
||||
|
||||
void Human::RecalTalentAttr()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Human::RecalSkinAttr()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Human::_InternalUpdateMove(float speed)
|
||||
{
|
||||
float nx = move_dir.x * speed;
|
||||
|
@ -152,6 +152,8 @@ class Human : public MoveableEntity
|
||||
int kill_times = 0;
|
||||
int rank = 0;
|
||||
|
||||
int maxtalent = 0;
|
||||
|
||||
std::function<void(Human*)> on_grid_chg;
|
||||
|
||||
Human();
|
||||
@ -295,6 +297,9 @@ class Human : public MoveableEntity
|
||||
void DeadDrop();
|
||||
bool IsEnemy(Human* hum);
|
||||
|
||||
void RecalTalentAttr();
|
||||
void RecalSkinAttr();
|
||||
|
||||
protected:
|
||||
void _InternalUpdateMove(float speed);
|
||||
void ProcLootSkin(Loot* entity, MetaData::Equip* item_meta);
|
||||
@ -398,6 +403,8 @@ private:
|
||||
|
||||
std::array<float, kHAT_End> buff_attr_abs_ = {};
|
||||
std::array<float, kHAT_End> buff_attr_rate_ = {};
|
||||
std::array<float, kHAT_End> talent_attr_abs_ = {};
|
||||
std::array<float, kHAT_End> skin_attr_abs_ = {};
|
||||
|
||||
std::array<ObjectSyncFlags, FIXED_OBJECT_MAXID> fixed_object_sync_flags_ = {};
|
||||
|
||||
|
@ -116,6 +116,10 @@ Player* PlayerMgr::CreatePlayerByCMJoin(Player* hum,
|
||||
#else
|
||||
hum->SetSkinInfo(msg.baseskin());
|
||||
#endif
|
||||
hum->maxtalent = msg.talent();
|
||||
hum->RecalTalentAttr();
|
||||
hum->RecalSkinAttr();
|
||||
|
||||
socket_hash_[socket] = hum;
|
||||
return hum;
|
||||
}
|
||||
|
@ -739,6 +739,7 @@ message CMJoin
|
||||
optional bool force_entry_newbie_room = 50; //是否强制进新手房
|
||||
repeated MFTeamMember team_members = 51; //包括自己
|
||||
optional int32 room_mode = 52; //0:吃鸡模式 1:僵尸模式
|
||||
optional int32 talent = 53; //已激活天赋max id
|
||||
}
|
||||
|
||||
//断线重连
|
||||
|
Loading…
x
Reference in New Issue
Block a user