mirror of
https://github.com/zeldaret/tmc
synced 2026-07-09 06:53:27 -04:00
mazaal hand
This commit is contained in:
+38
-1
@@ -1 +1,38 @@
|
||||
#include "global.h"
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
|
||||
void sub_08035194(Entity*);
|
||||
|
||||
extern const Hitbox gUnk_080FD394;
|
||||
extern const Hitbox gUnk_080FD39C;
|
||||
extern const Hitbox gUnk_080FD3A4;
|
||||
extern const Hitbox gUnk_080FD3AC;
|
||||
extern const Hitbox gUnk_080FD3B4;
|
||||
extern const Hitbox gUnk_080FD3BC;
|
||||
extern const Hitbox gUnk_080FD3C4;
|
||||
|
||||
const Hitbox* const gUnk_080CEF34[] = {
|
||||
&gUnk_080FD394, &gUnk_080FD394, &gUnk_080FD394, &gUnk_080FD39C, &gUnk_080FD3A4,
|
||||
&gUnk_080FD3AC, &gUnk_080FD3AC, &gUnk_080FD3AC, &gUnk_080FD3AC,
|
||||
};
|
||||
const Hitbox* const gUnk_080CEF58[] = {
|
||||
&gUnk_080FD3B4, &gUnk_080FD3B4, &gUnk_080FD3B4, &gUnk_080FD3BC, &gUnk_080FD3A4,
|
||||
&gUnk_080FD3C4, &gUnk_080FD3C4, &gUnk_080FD3C4, &gUnk_080FD3C4,
|
||||
};
|
||||
|
||||
void MazaalHand(Entity* this) {
|
||||
if (this->action == 0) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.flipX = this->type;
|
||||
InitAnimationForceUpdate(this, 0);
|
||||
}
|
||||
sub_08035194(this);
|
||||
}
|
||||
|
||||
void sub_08035194(Entity* this) {
|
||||
if (this->type == 0) {
|
||||
this->hitbox = (Hitbox*)gUnk_080CEF34[this->frameIndex];
|
||||
} else {
|
||||
this->hitbox = (Hitbox*)gUnk_080CEF58[this->frameIndex];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user