Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
SetSpinSmashable.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
2
3API_CALLABLE(N(SetSpinSmashable)) {
4 s32 canSpinSmash = evt_get_variable(script, *script->ptrReadPos);
5 Actor* actor = get_actor(script->owner1.actorID);
6
7 if (!canSpinSmash) {
9 } else {
10 actor->actorBlueprint->spinSmashReq = 0;
11 }
12
13 return ApiStatus_DONE2;
14}
struct ActorBlueprint * actorBlueprint
#define ApiStatus_DONE2
Definition evt.h:118
s32 evt_get_variable(Evt *script, Bytecode var)
Definition evt.c:1690
Actor * get_actor(s32 actorID)
Definition actor_api.c:155