This commit is contained in:
aozhiwei 2023-03-07 13:45:37 +08:00
parent a7f08b469f
commit cb53ecd496
2 changed files with 20 additions and 1 deletions

View File

@ -2975,12 +2975,17 @@ void Human::ProcAddItemDto(AddItemDTO& dto)
{
ProcNormalItem(dto);
}
break;
break;
case EQUIP_TYPE_GIFT_PACKAGE:
{
ProcGiftPackage(dto);
}
break;
case EQUIP_TYPE_GEMSTONE:
{
ProcGemStoneItem(dto);
}
break;
default:
{
ProcLootSpecItem(dto);
@ -3462,3 +3467,16 @@ void Human::SyncVolume(int slot_id)
room->frame_event.AddPropChgEx(GetWeakPtrRef(), kPropVolume, slot_id, GetInventory(slot_id), volume_[slot_id], 0, true);
}
}
void Human::ProcGemStoneItem(AddItemDTO& dto)
{
gemstone += 1;
room->frame_event.AddPropChg
(
GetWeakPtrRef(),
kPropGemstone,
gemstone,
0,
false);
dto.handled = true;
}

View File

@ -406,6 +406,7 @@ protected:
void ProcLootProtection(AddItemDTO& dto);
void ProcGiftPackage(AddItemDTO& dto);
void ProcLootSpecItem(AddItemDTO& dto);
void ProcGemStoneItem(AddItemDTO& dto);
void CancelRevive();
Weapon* TakeonWeapon(const mt::Equip* equip_meta);
void LootInteraction(Loot* entity);