This commit is contained in:
theo3
2021-02-26 14:48:30 -08:00
parent 112e97abc8
commit cca3f69d18
205 changed files with 898 additions and 905 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ extern u16 gUnk_081140CC[];
extern void sub_0806D0B0(Entity*);
extern void sub_0807DD64(Entity*);
extern void sub_0807DDE4(Entity*);
extern void PlaySFX(u32);
extern void SoundReq(u32);
extern void sub_0806D02C(Entity*);
extern Entity* FindEntityInListByForm(u32, u32, u32, u32, u32);
@@ -47,7 +47,7 @@ void sub_0806CF30(Entity* this) {
case 2:
if (--this->actionDelay == 0) {
u32 uVar2 = Random();
PlaySFX(gUnk_081140CC[uVar2 % 4]);
SoundReq(gUnk_081140CC[uVar2 % 4]);
this->actionDelay = ((u8)uVar2 & 7) * 16;
this->actionDelay += 128;
}
+1 -1
View File
@@ -167,7 +167,7 @@ void sub_08068BEC(Entity* this, u32 unused) {
if (target) {
target->spritePriority.b0 = 1;
PositionRelative(this, target, 0, -0x100000);
PlaySFX(0xfa);
SoundReq(0xfa);
}
}
+2 -2
View File
@@ -14,7 +14,7 @@ extern void sub_080791D0();
extern void (*gUnk_08111914[])(Entity*);
extern void (*gUnk_08111928[])(Entity*);
extern Dialog gUnk_08111938[];
extern void PlaySFX(u32);
extern void SoundReq(u32);
extern u32 UpdateFuseInteraction(Entity*);
extern PlayerState gPlayerState;
@@ -216,7 +216,7 @@ void sub_0806924C(Entity* ent) {
Cow_ShowDialogue(ent);
sub_080791D0();
}
PlaySFX(212);
SoundReq(212);
ent->interactType = 0;
}
}
+1 -1
View File
@@ -83,7 +83,7 @@ void sub_08065AA4(Entity* this) {
sub_08065A50(this);
sub_080791D0();
}
PlaySFX(0xD3);
SoundReq(0xD3);
this->interactType = 0;
}
}
+1 -1
View File
@@ -96,7 +96,7 @@ void sub_08068780(Entity* this) {
if ((this->frames.b.f2) != 0) {
this->frames.all &= 0xbf;
if (sub_080040A8(this) == 0) {
PlaySFX(gUnk_0811153E[(s32)Random() % 3]);
SoundReq(gUnk_0811153E[(s32)Random() % 3]);
} else {
EnqueueSFX(gUnk_08111538[(s32)Random() % 3]);
}
+3 -3
View File
@@ -4,7 +4,7 @@
#include "script.h"
extern void sub_0807DDE4(Entity*);
extern void PlaySFX(u32);
extern void SoundReq(u32);
extern void sub_0806A8C8(Entity*);
extern void (*gUnk_08112260[])(Entity*);
@@ -28,11 +28,11 @@ void sub_0806a370(Entity* this) {
pbVar1 = &this->frames.all;
if (*pbVar1 == 1) {
*pbVar1 = 0;
PlaySFX(0x218);
SoundReq(0x218);
}
if (*pbVar1 == 2) {
*pbVar1 = 0;
PlaySFX(0x219);
SoundReq(0x219);
}
}
}
+1 -1
View File
@@ -35,7 +35,7 @@ void sub_0806C224(void) {
void Simon_CreateChest(Entity* this) {
CreateObjectWithParent(this, 0xf, 0x43, 0);
SetTileType(0x73, COORD_TO_TILE(this), this->collisionLayer);
PlaySFX(0x73);
SoundReq(0x73);
}
void sub_0806C280(void) {
+3 -3
View File
@@ -9,7 +9,7 @@ extern u32 GetFacingDirection(Entity*, Entity*);
extern u32 sub_0806F5A4(u32);
extern void sub_0806F118(Entity*);
extern Entity* CreateFx(Entity*, u32, u32);
extern void PlaySFX(u32);
extern void SoundReq(u32);
extern void sub_0807000C(Entity*);
extern u32 sub_0801E99C(Entity*);
extern void sub_0807DD50(Entity*);
@@ -53,7 +53,7 @@ void Smith(Entity* this) {
if ((this->frames.all & 1) != 0) {
this->frames.all &= 0xfe;
CreateFx(this, 0x3d, 0x20);
PlaySFX(gUnk_08110380[(Random() & 7)]);
SoundReq(gUnk_08110380[(Random() & 7)]);
}
}
@@ -161,7 +161,7 @@ void nullsub_501(Entity* this) {
}
void sub_08066258(void) {
PlaySFX(gUnk_081103D0[Random() & 7]);
SoundReq(gUnk_081103D0[Random() & 7]);
}
void sub_08066274(u32 arg0) {
+2 -2
View File
@@ -15,7 +15,7 @@ u32 GetAnimationState(Entity* ent);
void DeleteThisEntity(void);
extern Entity* GetEntityByType(u32, u32);
extern void sub_080686C4(Entity*, Entity*);
extern void PlaySFX(u32);
extern void SoundReq(u32);
extern void SetTileType(u32, u32, u32);
extern Entity gPlayerEntity;
@@ -140,7 +140,7 @@ void sub_08066E80(Entity* ent, u8* param_2) {
param_2[0x18]++;
ent->field_0x20 = 0x20000;
ent->frames.all &= 0xFE;
PlaySFX(0x7C);
SoundReq(0x7C);
}
break;
case 2: