35u8
D_E0022D14[] = { 0x1E, 0x3C, 0x50, 0x5F, 0x64, 0x68, 0x6A };
36u8
D_E0022D1C[] = { 0x3C, 0x5A, 0x64, 0x68, 0x6A, 0x6C, 0x6D };
99 for (i = 1; i < numParts; i++, part++) {
100 f32 rand1 =
rand_int(arg4 * 1000.0f) / 1000.0f;
101 f32 rand2 =
rand_int(var_f30 * 1000.0f) / 1000.0f;
105 angle = (360.0f / (numParts - 1)) * i;
106 angle2 = (1800.0f / (numParts - 1)) * i - 90.0f;
108 part->
unk_10 = (
sin_deg(angle) * (85.0f -
sin_deg(angle2) * 15.0f - (i & 1) * 5) / 100.0f) * arg4;
109 part->
unk_14 = (
cos_deg(angle) * (85.0f -
sin_deg(angle2) * 15.0f - (i & 1) * 5) / 100.0f) * arg4;
115 angle = (360.0f / (numParts - 1)) * i +
rand_int(359);
127 part->
unk_24 = i * 2 + 30;
134 angle = (360.0f / (numParts - 1)) * i +
rand_int(359);
142 part->
unk_24 = i * 2 + 18;
156 s32 unk_00 = part->
unk_00;
170 if ((unk_00 == 0 || unk_00 == 10) && part->
unk_24 < 0) {
176 for (i = 0; i < effect->
numParts - 1; i++, part++) {
177 part->
unk_2C = (unk_20 + i) & 7;
181 if (unk_20 - 1 < 7) {
187 temp_f20 = (i & 3) * 0.5f + 1.0f;
218 if (unk_20 - 1 < 7) {
228 if (unk_00 != 0 && unk_00 != 10 && count >= effect->
numParts - 1) {
257 colorIdx = (part->
unk_20 - 1) * 3;
264 for (i = 0; i < ((
EffectInstance*)effect)->numParts - 1; i++, part++) {
265 s32 unk_2C = part->
unk_2C;
270 sp58[0][0] = part->
unk_1C;
271 sp58[1][1] = part->
unk_1C;
272 sp58[2][2] = part->
unk_1C;
#define general_heap_malloc
#define queue_render_task
#define create_effect_instance
struct SparklesFXData * sparkles
s32 effect_simple_rand(s32, s32)
#define ASSERT(condition)
@ RENDER_MODE_CLOUD_NO_ZCMP
#define VIRTUAL_TO_PHYSICAL(addr)
void sparkles_appendGfx(void *effect)
void sparkles_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4)
void sparkles_init(EffectInstance *effect)
void sparkles_update(EffectInstance *effect)
void sparkles_render(EffectInstance *effect)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
void(* appendGfx)(void *)
DisplayContext * gDisplayContext