1
This commit is contained in:
parent
0d16f4157b
commit
1624ee9293
@ -1888,18 +1888,6 @@ void Human::SendShowCountdown(const std::string& msg, int countdown)
|
|||||||
SendNotifyMsg(notifymsg);
|
SendNotifyMsg(notifymsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Human::GetWeaponConfigLv(int weapon_id)
|
|
||||||
{
|
|
||||||
auto itr = weapon_configs.find(weapon_id);
|
|
||||||
return itr != weapon_configs.end() ? itr->second : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int Human::GetSkinConfigLv(int skin_id)
|
|
||||||
{
|
|
||||||
auto itr = skin_configs.find(skin_id);
|
|
||||||
return itr != skin_configs.end() ? itr->second : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Human::_UpdateMove(int speed)
|
void Human::_UpdateMove(int speed)
|
||||||
{
|
{
|
||||||
if (HasBuffEffect(kBET_Vertigo)) {
|
if (HasBuffEffect(kBET_Vertigo)) {
|
||||||
|
@ -213,9 +213,6 @@ class Human : public Creature
|
|||||||
long long send_msg_times = 0;
|
long long send_msg_times = 0;
|
||||||
|
|
||||||
std::vector<Weapon> spec_weapons;
|
std::vector<Weapon> spec_weapons;
|
||||||
Weapon grow_weapon;
|
|
||||||
std::map<int, int> weapon_configs;
|
|
||||||
std::map<int, int> skin_configs;
|
|
||||||
std::map<int, int> spoils_items;
|
std::map<int, int> spoils_items;
|
||||||
std::map<int, int> battlein_items;
|
std::map<int, int> battlein_items;
|
||||||
|
|
||||||
@ -310,8 +307,6 @@ class Human : public Creature
|
|||||||
void SendWxVoip();
|
void SendWxVoip();
|
||||||
void SendSysPiaoMsg(const std::string& msg, int color, int duration);
|
void SendSysPiaoMsg(const std::string& msg, int color, int duration);
|
||||||
void SendShowCountdown(const std::string& msg, int countdown);
|
void SendShowCountdown(const std::string& msg, int countdown);
|
||||||
int GetWeaponConfigLv(int weapon_id);
|
|
||||||
int GetSkinConfigLv(int skin_id);
|
|
||||||
void OnDie();
|
void OnDie();
|
||||||
void FreeDownedTimer();
|
void FreeDownedTimer();
|
||||||
void FreeReviveTimer();
|
void FreeReviveTimer();
|
||||||
|
@ -79,7 +79,6 @@ Player* PlayerMgr::CreatePlayerByCMJoin(Player* hum,
|
|||||||
if (item_meta && item_meta->i->type() == 7) {
|
if (item_meta && item_meta->i->type() == 7) {
|
||||||
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquip(item_meta->i->relationship());
|
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquip(item_meta->i->relationship());
|
||||||
if (equip_meta && equip_meta->i->equip_type() == EQUIP_TYPE_WEAPON) {
|
if (equip_meta && equip_meta->i->equip_type() == EQUIP_TYPE_WEAPON) {
|
||||||
//hum->weapon_configs[weapon.weapon_id()] = weapon_lv;
|
|
||||||
Weapon& spec_weapon = a8::FastAppend(hum->spec_weapons);
|
Weapon& spec_weapon = a8::FastAppend(hum->spec_weapons);
|
||||||
spec_weapon.weapon_uniid = a8::XValue(weapon.weapon_uniid());
|
spec_weapon.weapon_uniid = a8::XValue(weapon.weapon_uniid());
|
||||||
spec_weapon.weapon_id = item_meta->i->relationship();
|
spec_weapon.weapon_id = item_meta->i->relationship();
|
||||||
@ -90,33 +89,6 @@ Player* PlayerMgr::CreatePlayerByCMJoin(Player* hum,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
for (auto& weapon : msg.grow_weapons()) {
|
|
||||||
if (weapon.weapon_id() != 0) {
|
|
||||||
hum->grow_weapon.weapon_id = weapon.weapon_id();
|
|
||||||
hum->grow_weapon.weapon_lv = weapon.weapon_lv();
|
|
||||||
hum->grow_weapon.ammo = weapon.ammo();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#if 0
|
|
||||||
{
|
|
||||||
for (auto& skin : msg.skins()) {
|
|
||||||
if (skin.skin_id() != 0 && skin.skin_lv() > 0) {
|
|
||||||
hum->skin_configs[skin.skin_id()] = skin.skin_lv();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#if 0
|
|
||||||
{
|
|
||||||
int idx = 0;
|
|
||||||
for (int skin_id : msg.baseskin()) {
|
|
||||||
hum->SetSkin(idx, skin_id);
|
|
||||||
++idx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#if 0
|
#if 0
|
||||||
for (auto& pair : msg.talent_list()) {
|
for (auto& pair : msg.talent_list()) {
|
||||||
hum->talent_list.push_back(
|
hum->talent_list.push_back(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user