Go to the source code of this file.
◆ gather_magic_appendGfx()
void gather_magic_appendGfx |
( |
void * | effect | ) |
|
Definition at line 154 of file gather_magic.c.
154 {
157 s32 unk_34 =
part->unk_34;
158 s32 unk_38 =
part->unk_38;
162 s32 i;
163
166
171
175
179
180 if (scale != 0.0f) {
182
187
191 }
192 }
193
195}
BSS s32 PopupMenu_SelectedIndex
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by gather_magic_render().
◆ gather_magic_init()
◆ gather_magic_update()
Definition at line 79 of file gather_magic.c.
79 {
81 s32 unk_1C;
82 s32 i;
83
84 if (
part->unk_18 < 100) {
86 }
87
89
90 if (
part->unk_18 < 0) {
92 return;
93 }
94
95 unk_1C =
part->unk_1C;
96
97 if (unk_1C < 21) {
98 part->unk_14 = unk_1C * 12;
99 } else {
101 }
102
103 if (unk_1C % 2) {
105 }
106
107 unk_1C =
part->unk_1C;
108
118
122
123 part->unk_14 = ((100.0f -
part->unk_2C) * 255.0f * 2.0f) / 100.0f;
124 if (
part->unk_14 >= 256) {
126 }
127
128 part->unk_28 =
part->unk_2C / 80.0f + 0.2;
129 part->unk_2C -= (i & 3) * 2 + 2;
130
131 if (
part->unk_2C < 0.0f) {
134 }
135
136 part->unk_20 += (unk_1C % 2) ? 5.0f : 2.0f;
137 part->unk_24 += (unk_1C % 2) ? 2.0f : 5.0f;
138 }
139}
EffectInstanceDataPtr data
struct GatherMagicFXData * gatherMagic
Referenced by gather_magic_main().
◆ gather_magic_render()
Definition at line 141 of file gather_magic.c.
141 {
144
149
152}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_SURFACE_XLU_LAYER3
void gather_magic_appendGfx(void *effect)
void(* appendGfx)(void *)
Referenced by gather_magic_main().
◆ gather_magic_main()
Definition at line 15 of file gather_magic.c.
15 {
19 s32 numParts = 31;
20 s32 i;
21
28
34
39 } else {
41 }
46
54 } else {
61 }
62
63 data++;
64 for (i = 1; i < numParts; i++, data++) {
67
68 data->
unk_20 = ((i - 1) * 3240) /
d;
70 data->
unk_2C = ((i - 1) * 100) /
d;
72 }
73 return effect;
74}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void gather_magic_update(EffectInstance *effect)
void gather_magic_init(EffectInstance *effect)
void gather_magic_render(EffectInstance *effect)
Referenced by lightning_main().
◆ D_09000080_38F790
◆ D_090001A8_38F8B8
◆ D_090001C8_38F8D8
◆ D_E008E890