1
This commit is contained in:
parent
dd504d1ab7
commit
4e73fc2343
@ -3020,5 +3020,14 @@ void Bag::InternalPushBagInfo()
|
||||
|
||||
void Bag::UpdateItemNum(int item_id, int item_num)
|
||||
{
|
||||
|
||||
auto p = GetItemById(item_id);
|
||||
if (p) {
|
||||
p->equip_num = item_num;
|
||||
cs::SMUpdateBag notify_msg;
|
||||
auto pb_item = notify_msg.add_items();
|
||||
pb_item->set_equip_id(p->equip_id);
|
||||
pb_item->set_equip_num(p->equip_num);
|
||||
pb_item->set_use_cd(p->GetCdTime(owner_));
|
||||
owner_->SendNotifyMsg(notify_msg);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user