2019-08-25 04:46:40 +00:00
|
|
|
// tower_door.c.inc
|
|
|
|
|
|
|
|
void bhv_tower_door_loop(void) {
|
|
|
|
if (o->oTimer == 0)
|
|
|
|
o->oMoveAngleYaw -= 0x4000;
|
2020-08-12 06:03:13 +00:00
|
|
|
if ((o->oInteractStatus & INT_STATUS_INTERACTED) || check_mario_attacking(&gMarioStates[0])) {
|
2020-03-02 03:42:52 +00:00
|
|
|
obj_explode_and_spawn_coins(80.0f, 0);
|
2019-10-05 19:08:05 +00:00
|
|
|
create_sound_spawner(SOUND_GENERAL_WALL_EXPLOSION);
|
2020-08-12 06:03:13 +00:00
|
|
|
|
|
|
|
if (!(o->oInteractStatus & INT_STATUS_INTERACTED)) {
|
|
|
|
network_send_collect_item(o);
|
|
|
|
}
|
|
|
|
o->oInteractStatus &= ~INT_STATUS_INTERACTED;
|
2019-08-25 04:46:40 +00:00
|
|
|
}
|
|
|
|
}
|