mirror of
https://github.com/zeldaret/tmc
synced 2026-09-07 11:21:35 -04:00
finish player.c
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include "player.h"
|
||||
#include "effects.h"
|
||||
|
||||
extern void sub_0800449C(Entity*, u32);
|
||||
extern void SoundReqClipped(Entity*, u32);
|
||||
extern void sub_08079D84(void);
|
||||
|
||||
extern void (*const LakituCloudProjectile_Functions[])(Entity*);
|
||||
@@ -44,7 +44,7 @@ void LakituCloudProjectile_SubAction2(Entity* this) {
|
||||
if (sub_0806F3E4(this) != 0) {
|
||||
if (this->hitType == 0xa6) {
|
||||
ModHealth(-2);
|
||||
sub_0800449C(&gPlayerEntity, 0x7a);
|
||||
SoundReqClipped(&gPlayerEntity, 0x7a);
|
||||
sub_08079D84();
|
||||
}
|
||||
CreateFx(this, FX_DEATH, 0);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "functions.h"
|
||||
#include "asm.h"
|
||||
|
||||
extern void sub_0800449C(Entity*, u32);
|
||||
extern void SoundReqClipped(Entity*, u32);
|
||||
|
||||
extern void (*const V1DarkMagicProjectile_Functions[])(Entity*);
|
||||
extern void (*const V1DarkMagicProjectile_Actions[])(Entity*);
|
||||
@@ -173,7 +173,7 @@ void sub_080AAF74(Entity* this) {
|
||||
this->actionDelay = 0x1e;
|
||||
gPlayerEntity.iframes = 8;
|
||||
ModHealth(-4);
|
||||
sub_0800449C(&gPlayerEntity, 0x7a);
|
||||
SoundReqClipped(&gPlayerEntity, 0x7a);
|
||||
if (gPlayerEntity.health == 0) {
|
||||
this->health = 0;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ extern void (*const gUnk_0812A7F8[])(Entity*);
|
||||
extern void (*const gUnk_0812A800[])(Entity*);
|
||||
extern void (*const gUnk_0812A808[])(Entity*);
|
||||
|
||||
extern void sub_0800449C(Entity*, u32);
|
||||
extern void SoundReqClipped(Entity*, u32);
|
||||
extern void sub_08079D84(void);
|
||||
|
||||
extern s32 sub_080AF090(Entity*);
|
||||
@@ -43,7 +43,7 @@ void nullsub_542(Entity* this) {
|
||||
void sub_080ABC90(Entity* this) {
|
||||
if (sub_0806F3E4(this) != 0) {
|
||||
ModHealth(-2);
|
||||
sub_0800449C(&gPlayerEntity, 0x7a);
|
||||
SoundReqClipped(&gPlayerEntity, 0x7a);
|
||||
sub_08079D84();
|
||||
CreateFx(this, FX_DEATH, 0);
|
||||
DeleteThisEntity();
|
||||
|
||||
Reference in New Issue
Block a user