1
This commit is contained in:
parent
13b65e9658
commit
881044b0b6
@ -1341,6 +1341,27 @@ void Player::_CMOpenBox(f8::MsgHdr& hdr, const cs::CMOpenBox& msg)
|
|||||||
|
|
||||||
AddInventory(item_meta->i->_inventory_slot(), add_num);
|
AddInventory(item_meta->i->_inventory_slot(), add_num);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
switch (item_meta->i->equip_type()) {
|
||||||
|
case 7:
|
||||||
|
{
|
||||||
|
//背包
|
||||||
|
if (backpack == 0) {
|
||||||
|
MetaData::Equip* old_item_meta = MetaMgr::Instance()->GetEquip(backpack);
|
||||||
|
if (old_item_meta) {
|
||||||
|
if (old_item_meta->i->equip_lv() >= item_meta->i->equip_lv()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
room->DropItem(GetPos(), old_item_meta->i->id(), 1, 1);
|
||||||
|
}
|
||||||
|
backpack = item_meta->i->id();
|
||||||
|
RecalcVolume();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -626,6 +626,8 @@ void RoomMgr::TeamRoomTimeOut(const std::string& team_uuid)
|
|||||||
GenTeamHashData(team_uuid, team_hash),
|
GenTeamHashData(team_uuid, team_hash),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
delete team_hash;
|
||||||
|
team_room_hash_.erase(team_uuid);
|
||||||
} else {
|
} else {
|
||||||
a8::UdpLog::Instance()->Warning
|
a8::UdpLog::Instance()->Warning
|
||||||
("team not found team_uuid:s",
|
("team not found team_uuid:s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user