Go to the source code of this file.
◆ anonymous enum
Enumerator |
---|
SHINING_STATE_INIT | |
SHINING_STATE_DELAY | |
SHINING_STATE_BEGIN | |
SHINING_STATE_GATHER | |
SHINING_STATE_HOLDING | |
SHINING_STATE_RELEASE | |
Definition at line 22 of file watt.c.
◆ force_player_anim()
void force_player_anim |
( |
AnimID | anim | ) |
|
Definition at line 905 of file 77480.c.
905 {
907
908 playerStatus->
anim = anim;
910 playerStatus->
flags &= ~PS_FLAG_FACE_FORWARD;
911}
PlayerStatus gPlayerStatus
◆ sync_held_position()
void N sync_held_position |
( |
void | | ) |
|
Definition at line 552 of file watt.c.
552 {
557 f32 offsetScale, angle;
558 f32 spriteFacingAngle;
559 s32 angleOffset;
560
563 if ((spriteFacingAngle < 90.0f) || (spriteFacingAngle > 270.0f)) {
565 angleOffset = -5;
566 offsetScale = 0.6f;
567 } else {
568 angleOffset = 5;
569 offsetScale = 0.6f;
570 }
571 } else {
573 angleOffset = 5;
574 offsetScale = 0.6f;
575 } else {
576 angleOffset = -5;
577 offsetScale = 0.6f;
578 }
579 }
580
582
586
589 partnerNPC = new_var2;
591
594 }
595}
AnimID trueAnimation
Encoding back-facing sprite.
PlayerStatus * gPlayerStatusPtr
PartnerStatus gPartnerStatus
◆ update_player_carry_anim()
void N update_player_carry_anim |
( |
void | | ) |
|
Definition at line 537 of file watt.c.
537 {
539 f32 currentSpeed = playerStatus->
curSpeed;
541
542 if (playerStatus->
runSpeed <= currentSpeed) {
543 anim = ANIM_MarioW1_CarryRun;
544 }
else if (playerStatus->
walkSpeed <= currentSpeed) {
545 anim = ANIM_MarioW1_CarryWalk;
546 } else {
547 anim = ANIM_MarioW1_CarryIdle;
548 }
550}
void suggest_player_anim_allow_backward(AnimID anim)
PlayerStatus gPlayerStatus
◆ create_static_effect()
void N create_static_effect |
( |
Npc * | npc | ) |
|
Definition at line 32 of file watt.c.
32 {
34 if (N(StaticEffect) == NULL) {
35 N(StaticEffect) = fx_static_status(0, npc->
pos.
x, npc->
pos.
y + 13.0f, npc->
pos.
z, 0.9f, 5, 0);
36 }
37 }
38}
Referenced by post_battle().
◆ dispose_static_effect()
void N dispose_static_effect |
( |
void | | ) |
|
Definition at line 40 of file watt.c.
40 {
41 if (N(StaticEffect) != NULL) {
42 N(StaticEffect)->data.staticStatus->timeLeft = 1;
43 N(StaticEffect) = NULL;
44 }
45}
Referenced by pre_battle().
◆ reset_static_effect()
void N reset_static_effect |
( |
s32 | type | ) |
|
Definition at line 49 of file watt.c.
49 {
52 f32 invisTime;
53 s32 count;
54 s32 i;
55
57 invisTime = N(EffectAnimLengths)[type] * 0.5f;
59
60 part++;
61 for (i = 1; i < count; i++, part++) {
62 part->
frame = -1.0f - (invisTime * (i & 1));
63 }
64}
struct StaticStatusFXData * staticStatus
◆ init()
Definition at line 66 of file watt.c.
66 {
69 N(D_802BE308) = FALSE;
70 N(D_802BE300) = FALSE;
71 N(IsPlayerHolding) = FALSE;
73 N(StaticEffect) = NULL;
74}
◆ try_cancel_tweester()
void N try_cancel_tweester |
( |
Npc * | watt | ) |
|
Definition at line 214 of file watt.c.
214 {
217 watt->
flags = N(TweesterPhysicsPtr)->prevFlags;
220 }
221}
void partner_clear_player_tracking(Npc *partner)
Entity * TweesterTouchingPartner
◆ pre_battle()
void N pre_battle |
( |
Npc * | watt | ) |
|
Definition at line 467 of file watt.c.
467 {
469
470 if (N(IsPlayerHolding)) {
471 partnerStatus->
npc = *watt;
474 }
475
477}
void N dispose_static_effect(void)
◆ post_battle()
void N post_battle |
( |
Npc * | watt | ) |
|
Definition at line 479 of file watt.c.
479 {
481
483 *watt = partnerStatus->
npc;
486 }
487}
s32 partner_use_ability(void)
void N create_static_effect(Npc *npc)
◆ EVS_WorldWatt_TakeOut
Initial value:= {
}
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Return
Kills the current EVT thread.
Definition at line 90 of file watt.c.
◆ EVS_WorldWatt_Update
Initial value:
Definition at line 208 of file watt.c.
◆ EVS_WorldWatt_UseAbility
Initial value:
Definition at line 433 of file watt.c.
◆ EVS_WorldWatt_PutAway
Initial value:
Definition at line 461 of file watt.c.
◆ EVS_WorldWatt_EnterMap
Initial value:
Definition at line 597 of file watt.c.