1
This commit is contained in:
parent
d539ee5351
commit
ea516d2af0
@ -499,6 +499,13 @@ void Obstacle::DoTreasureBoxInteraction(Human* sender)
|
||||
{
|
||||
if (!IsDead(sender->room)) {
|
||||
++sender->box_num;
|
||||
sender->room->frame_event.AddPropChg
|
||||
(
|
||||
sender->GetWeakPtrRef(),
|
||||
kPropPickUp,
|
||||
0,
|
||||
GetUniId(),
|
||||
false);
|
||||
sender->room->frame_event.AddPropChgEx(sender->GetWeakPtrRef(), kPropBoxNum, 0, sender->box_num,
|
||||
1, 0, false);
|
||||
Die(sender->room);
|
||||
|
Loading…
x
Reference in New Issue
Block a user