tmc/src/object/crackingGround.c

24 lines
528 B
C

/**
* @file crackingGround.c
* @ingroup Objects
*
* @brief Cracking Ground object
*/
#include "functions.h"
#include "object.h"
void CrackingGround(Entity* this) {
if (this->action == 0) {
this->action = 1;
this->timer = 20;
SnapToTile(this);
} else {
if (this->timer-- == 0) {
sub_0807B7D8(0x35, COORD_TO_TILE(this), this->collisionLayer);
CreateFx(this, FX_FALL_DOWN, 0x40);
SoundReq(SFX_126);
DeleteThisEntity();
}
}
}