mirror of
https://github.com/zeldaret/tmc
synced 2026-09-03 18:23:34 -04:00
34 lines
889 B
C
34 lines
889 B
C
#include "entity.h"
|
|
#include "script.h"
|
|
#include "functions.h"
|
|
#include "fileScreen.h"
|
|
#include "screen.h"
|
|
|
|
extern void sub_08057044(u32, struct_020227E8*, u32);
|
|
extern u32 gUnk_081146B8;
|
|
|
|
extern u16 gBG0Settings[];
|
|
|
|
void Phonograph(Entity* this) {
|
|
if (this->action == 0) {
|
|
this->action += 1;
|
|
this->spriteSettings.b.draw = 1;
|
|
this->field_0x68.HWORD = 1;
|
|
this->field_0x6a.HWORD = 0xffff;
|
|
sub_0807DD64(this);
|
|
this->frameIndex = 0;
|
|
}
|
|
ExecuteScriptForEntity(this, NULL);
|
|
HandleEntity0x82Actions(this);
|
|
}
|
|
|
|
ASM_FUNC("asm/non_matching/phonograph/sub_0806E964.inc",
|
|
void sub_0806E964(Entity* this, ScriptExecutionContext* context))
|
|
|
|
void sub_0806EABC(Entity* this, u32 param) {
|
|
sub_08050384();
|
|
sub_08057044(param, &gUnk_020227E8, 0x202020);
|
|
sub_0805F46C(0x3302, &gUnk_081146B8);
|
|
gScreen.bg.bg0Updated = 1;
|
|
}
|