This commit is contained in:
aozhiwei 2023-03-17 11:01:27 +08:00
parent 1869bad1a1
commit 8dfd647400

View File

@ -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;
}