diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index d7b4fce3..5d67e277 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -3544,5 +3544,11 @@ void Human::ProcGemStoneItem(AddItemDTO& dto) GetMaxHP(), true); SyncVolume(IS_GEMSTONE); + //刷新数量 + int add_num = 1; + Entity* entity = room->GetEntityByUniId(dto.uniid); + if (entity && entity->IsEntityType(ET_Loot)) { + ((Loot*)entity)->count -= add_num; + } dto.handled = true; }