5#define BOWSER_FLAG_TOCHECK ACTOR_EVENT_FLAG_ENCHANTED
7#define BOWSER_FLAG_TOCHECK ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED
10API_CALLABLE(N(UpdateEnchantedBowserColors)) {
11 #define RGBA_BUF_SIZE 20
29 script->functionTemp[1] = 0;
30 script->functionTemp[2] = 0;
31 script->functionTemp[0] = 0;
33 for (i = 0; i < 10; i++) {
38 script->functionTemp[1] += 10;
39 if (script->functionTemp[1] >= 360) {
40 script->functionTemp[1] %= 360;
44 colR[j] = (
cosine(script->functionTemp[1] + j * 25 + 120) + 1.0) * 56.0;
45 colG[j] = (
cosine(script->functionTemp[1] + j * 25 + 60) + 1.0) * 56.0;
46 colB[j] = (
cosine(script->functionTemp[1] + j * 25 + 180) + 1.0) * 56.0;
52 colorRGBA = colR[j] << 0x18 | colG[j] << 0x10 | colB[j] << 8 | 0xFF;
53 for (i = 0; i < 10; i++) {
62 for (i = 0; i < 10; i++) {
67 script->functionTemp[1] = 0;
68 script->functionTemp[2] = 0;
69 script->functionTemp[0] = 0;
#define BOWSER_FLAG_TOCHECK
@ IMGFX_COLOR_BUF_SET_MODULATE
ActorPart * get_actor_part(Actor *actor, s32 partID)
Actor * get_actor(s32 actorID)
void set_npc_imgfx_comp(s32 spriteIdx, s32 compIdx, ImgFXType imgfx, s32 imgfxArg1, s32 imgfxArg2, s32 imgfxArg3, s32 imgfxArg4, s32 imgfxArg5)