remove atk_add

This commit is contained in:
aozhiwei 2021-08-31 11:57:17 +08:00
parent 08c871d686
commit 7b0bd452f9
2 changed files with 0 additions and 8 deletions

View File

@ -112,7 +112,6 @@ class Human : public Creature
int lethal_weapon = 0;
long long join_frameno = 0;
long long enable_frameno = 0;
float atk_add = 0.0f;
int emoji1 = 0;
int emoji2 = 0;
int parachute = 0;

View File

@ -64,7 +64,6 @@ Player* PlayerMgr::CreatePlayerByCMJoin(Player* hum,
hum->create_tick = a8::XGetTickCount();
hum->account_registertime = f8::ExtractRegisterTimeFromSessionId(msg.session_id());
hum->channel = f8::ExtractChannelIdFromAccountId(msg.account_id());
hum->atk_add = msg.atk_add();
hum->emoji1 = msg.emoji1();
hum->emoji2 = msg.emoji2();
hum->parachute = msg.parachute();
@ -77,12 +76,6 @@ Player* PlayerMgr::CreatePlayerByCMJoin(Player* hum,
hum->head = msg.head();
hum->sex = msg.sex();
hum->user_data = msg.user_data();
#if 0
if (hum->atk_add > 0.9999f) {
hum->atk_add = hum->atk_add / 100.0f;
a8::SetBitFlag(hum->status, HS_AtkAdd);
}
#endif
for (auto& weapon : msg.weapons()) {
if (weapon.weapon_id() != 0 && weapon.weapon_lv() > 0) {
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquip(weapon.weapon_id());