This commit is contained in:
aozhiwei 2024-07-30 09:17:07 +08:00
parent 60aa08a375
commit d909066a76

View File

@ -1,6 +1,7 @@
#include "precompile.h"
#include "boxdrop.h"
#include "room.h"
const int BOX_ID = 150001;
@ -31,5 +32,7 @@ void BoxDrop::OnObstacleDeadDrop(Obstacle* ob)
void BoxDrop::Drop(int num, const glm::vec3& center)
{
for (int i = 0; i < num; ++i) {
room_->CreateLoot(BOX_ID, center, center, 1, 1);
}
}