1
This commit is contained in:
parent
60aa08a375
commit
d909066a76
@ -1,6 +1,7 @@
|
|||||||
#include "precompile.h"
|
#include "precompile.h"
|
||||||
|
|
||||||
#include "boxdrop.h"
|
#include "boxdrop.h"
|
||||||
|
#include "room.h"
|
||||||
|
|
||||||
const int BOX_ID = 150001;
|
const int BOX_ID = 150001;
|
||||||
|
|
||||||
@ -31,5 +32,7 @@ void BoxDrop::OnObstacleDeadDrop(Obstacle* ob)
|
|||||||
|
|
||||||
void BoxDrop::Drop(int num, const glm::vec3& center)
|
void BoxDrop::Drop(int num, const glm::vec3& center)
|
||||||
{
|
{
|
||||||
|
for (int i = 0; i < num; ++i) {
|
||||||
|
room_->CreateLoot(BOX_ID, center, center, 1, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user