diff options
Diffstat (limited to 'src/object/crackingGround.c')
| -rw-r--r-- | src/object/crackingGround.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/object/crackingGround.c b/src/object/crackingGround.c new file mode 100644 index 00000000..bf84577b --- /dev/null +++ b/src/object/crackingGround.c @@ -0,0 +1,25 @@ +/** + * @file crackingGround.c + * @ingroup Objects + * + * @brief Cracking Ground object + */ +#define NENT_DEPRECATED +#include "functions.h" +#include "global.h" +#include "object.h" + +void CrackingGround(Entity* this) { + if (this->action == 0) { + this->action = 1; + this->timer = 20; + sub_08004168(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(); + } + } +} |
