diff options
| author | theo3 <arisstephenson2@gmail.com> | 2020-07-15 20:12:52 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2020-07-15 20:12:52 -0700 |
| commit | 035d4a150f3341aecd6d9d124c7f2cb99ac83473 (patch) | |
| tree | d7cdcd0487d47620efee5677e3723f22ef200ec8 /src | |
| parent | c97a025a88a0baf861b4f47a289931f569e80cc8 (diff) | |
tingleSiblings.c started
Diffstat (limited to 'src')
| -rw-r--r-- | src/npc/tingleSiblings.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/npc/tingleSiblings.c b/src/npc/tingleSiblings.c new file mode 100644 index 00000000..ab50c63c --- /dev/null +++ b/src/npc/tingleSiblings.c @@ -0,0 +1,43 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "textbox.h" + +extern void sub_08064DE4(Entity*); +extern void sub_08064D78(Entity*); +extern void sub_08064EE8(Entity*); + +extern void (*const gUnk_0810FBFC[])(Entity*); + +void TingleSiblings(Entity* this) { + if ((this->flags & 2) != 0) { + sub_08064DE4(this); + } + else { + sub_08064D78(this); + } +} + +void sub_08064D78(Entity* this) { + gUnk_0810FBFC[this->action](this); +} + +void sub_08064D90(Entity* this) { + InitAnimationForceUpdate(this, 2); + this->field_0xf = 1; +} + +void sub_08064DA0(Entity* this) { + sub_08064EE8(this); + if (this->interactType != 0) { + this->action = 2; + InitAnimationForceUpdate(this, 6); + TextboxNoOverlapFollow(0); + } +} + +void sub_08064DCC(Entity* this) { + sub_08064EE8(this); + InitAnimationForceUpdate(this, 2); + this->action = 1; +}
\ No newline at end of file |
