1
This commit is contained in:
parent
a436d89bc6
commit
ccc601e209
@ -88,7 +88,7 @@ Player* PlayerMgr::CreatePlayerByCMJoin(Player* hum,
|
||||
hum->user_data = msg.user_data();
|
||||
for (auto& weapon : msg.weapons()) {
|
||||
if (weapon.weapon_id() != 0) {
|
||||
int weapon_lv = weapon.weapon_lv() > 0 ? weapon.weapon_lv() : 0;
|
||||
int weapon_lv = weapon.weapon_lv() > 0 ? weapon.weapon_lv() : 1;
|
||||
MetaData::Item* item_meta = MetaMgr::Instance()->GetItem(weapon.weapon_id());
|
||||
if (item_meta && item_meta->i->type() == 7) {
|
||||
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquip(item_meta->i->relationship());
|
||||
|
Loading…
x
Reference in New Issue
Block a user