mirror of
https://github.com/zeldaret/tmc
synced 2026-05-31 01:16:04 -04:00
31 lines
673 B
C
31 lines
673 B
C
#include "global.h"
|
|
#include "audio.h"
|
|
#include "entity.h"
|
|
#include "save.h"
|
|
#include "script.h"
|
|
#include "functions.h"
|
|
|
|
extern void sub_08078850(Entity*, u32, u32, u8*);
|
|
|
|
extern u8 gUnk_08125010;
|
|
|
|
void Windcrest(Entity* this) {
|
|
if (this->action == 0) {
|
|
this->action++;
|
|
this->frameIndex = 0;
|
|
sub_0807DD64(this);
|
|
}
|
|
ExecuteScriptForEntity(this, NULL);
|
|
HandleEntity0x82Actions(this);
|
|
}
|
|
|
|
void sub_080A2124(Entity* this) {
|
|
sub_08078850(this, 1, 0xe, &gUnk_08125010);
|
|
}
|
|
|
|
void Windcrest_Unlock(Entity* this) {
|
|
SoundReq(SFX_SECRET);
|
|
gSave.windcrests = gSave.windcrests | 1 << (this->type2 + 0x18);
|
|
CreateFx(this, 0x46, 0);
|
|
}
|