This commit is contained in:
aozhiwei 2022-09-07 10:38:58 +08:00
parent bdce02acca
commit ee286bb3d0
4 changed files with 3 additions and 22 deletions

View File

@ -744,12 +744,14 @@ void Human::FillMFTeamData(Human* hum, cs::MFTeamData* team_data, bool is_game_o
room->GetFrameNo() - room->GetBattleStartFrameNo() < 4) { room->GetFrameNo() - room->GetBattleStartFrameNo() < 4) {
team_data->set_user_data(user_data); team_data->set_user_data(user_data);
} }
#if 0
if (HasBuffEffect(kBET_Jump) && GetTeam()) { if (HasBuffEffect(kBET_Jump) && GetTeam()) {
bool can_follow = hum->CanFollow(this); bool can_follow = hum->CanFollow(this);
if (can_follow) { if (can_follow) {
team_data->set_can_follow(can_follow); team_data->set_can_follow(can_follow);
} }
} }
#endif
{ {
for (auto itr : skins) { for (auto itr : skins) {
auto skin = team_data->add_skin(); auto skin = team_data->add_skin();

View File

@ -24,11 +24,7 @@ void RawTeamMember::FillMFMatchTeamMember(cs::MFMatchTeamMember* p)
} else { } else {
p->set_hero_id(msg->hero_id()); p->set_hero_id(msg->hero_id());
*p->mutable_weapons() = msg->weapons(); *p->mutable_weapons() = msg->weapons();
#if 0
*p->mutable_skins() = msg->skins();
#endif
*p->mutable_skill_list() = msg->skill_list(); *p->mutable_skill_list() = msg->skill_list();
*p->mutable_baseskin() = msg->baseskin();
} }
p->set_is_leader(is_leader); p->set_is_leader(is_leader);
p->set_state(state); p->set_state(state);
@ -133,14 +129,7 @@ void MatchTeam::_CMMatchChoose(f8::MsgHdr& hdr, const cs::CMMatchChoose& msg)
member->msg->set_hero_id(msg.hero_id()); member->msg->set_hero_id(msg.hero_id());
member->msg->set_hero_uniid(msg.hero_uniid()); member->msg->set_hero_uniid(msg.hero_uniid());
*member->msg->mutable_weapons() = msg.weapons(); *member->msg->mutable_weapons() = msg.weapons();
#if 0
*member->msg->mutable_skins() = msg.skins();
#endif
*member->msg->mutable_skill_list() = msg.skill_list(); *member->msg->mutable_skill_list() = msg.skill_list();
*member->msg->mutable_baseskin() = msg.baseskin();
#if 0
member->msg->set_hero_skin(msg.hero_skin());
#endif
++member->choose_hero_times; ++member->choose_hero_times;
#ifdef DEBUG #ifdef DEBUG
a8::XPrintf("matchchoose %s\n", {member->msg->account_id()}); a8::XPrintf("matchchoose %s\n", {member->msg->account_id()});

View File

@ -111,7 +111,7 @@ Player* PlayerMgr::CreatePlayerByCMJoin(Player* hum,
} }
} }
#endif #endif
#if 1 #if 0
{ {
int idx = 0; int idx = 0;
for (int skin_id : msg.baseskin()) { for (int skin_id : msg.baseskin()) {
@ -119,8 +119,6 @@ Player* PlayerMgr::CreatePlayerByCMJoin(Player* hum,
++idx; ++idx;
} }
} }
#else
hum->SetSkinInfo(msg.baseskin());
#endif #endif
#if 0 #if 0
for (auto& pair : msg.talent_list()) { for (auto& pair : msg.talent_list()) {

View File

@ -628,7 +628,6 @@ message MFTeamData
optional float max_health = 9; // optional float max_health = 9; //
optional bool riding = 40 [default = false]; // optional bool riding = 40 [default = false]; //
optional string user_data = 60 [default = ""]; // optional string user_data = 60 [default = ""]; //
optional int32 can_follow = 62 [default = 0]; //
optional int32 score = 63 [default = 0]; //pve模式积分 optional int32 score = 63 [default = 0]; //pve模式积分
optional int32 hero_id = 64 [default = 0]; //id() optional int32 hero_id = 64 [default = 0]; //id()
@ -910,13 +909,10 @@ message MFMatchTeamMember
optional string avatar_url = 3; // optional string avatar_url = 3; //
optional int32 hero_id = 4; //id optional int32 hero_id = 4; //id
repeated MFWeapon weapons = 5; // repeated MFWeapon weapons = 5; //
repeated MFSkin skins = 6; // key: id value:
repeated MFPair skill_list = 7; // key:id value:,0 repeated MFPair skill_list = 7; // key:id value:,0
optional bool is_leader = 8; // optional bool is_leader = 8; //
optional int32 state = 9; //0: 1: optional int32 state = 9; //0: 1:
optional int32 head_frame = 10; // optional int32 head_frame = 10; //
repeated int32 baseskin = 11; //id
optional int32 hero_skin = 12; //
} }
// //
@ -958,7 +954,6 @@ message CMJoin
optional bool auto_fill = 6; // optional bool auto_fill = 6; //
optional string name = 8; // optional string name = 8; //
optional string avatar_url = 11; // optional string avatar_url = 11; //
repeated int32 baseskin = 13; //id
repeated MFWeapon weapons = 17; // repeated MFWeapon weapons = 17; //
optional string session_id = 20; //session_id optional string session_id = 20; //session_id
optional int32 head_frame = 36 [default = 0]; // optional int32 head_frame = 36 [default = 0]; //
@ -1106,10 +1101,7 @@ message CMMatchChoose
{ {
optional int32 hero_id = 1; //id optional int32 hero_id = 1; //id
repeated MFWeapon weapons = 2; // repeated MFWeapon weapons = 2; //
repeated MFSkin skins = 3; // key: id value:
repeated MFPair skill_list = 4; // key:id value:,0 repeated MFPair skill_list = 4; // key:id value:,0
repeated int32 baseskin = 5; //id
optional int32 hero_skin = 6; //
optional string hero_uniid = 7; //id optional string hero_uniid = 7; //id
} }