31 NULL, NULL, NULL, NULL, NULL
34s8
D_E011AC4C[] = { 15, 15, 15, 15, 15, 35, 75, 100, 100, 100, 100, 0 };
35s8
D_E011AC58[] = { 100, 100, 100, 100, 100, 90, 10, 10, 10, 10, 10, 0 };
36s8
D_E011AC64[] = { 0, -1, -3, -4, -4, 4, 32, 32, 32, 32, 32, 0 };
74 if (useRandomValues == 1) {
91 effect->
flags &= ~FX_INSTANCE_FLAG_DISMISS;
113 if (useRandomValues == 1 && time % 30 == 0) {
117 switch (buff->
state) {
119 if (buff->
alpha == 255) {
157 if (buff->
alpha < 0) {
168 if (buff->
alpha > 255) {
186 gDPSetRenderMode(
gMainGfxPos++, AA_EN | CVG_DST_FULL | ZMODE_OPA | CVG_X_ALPHA |
187 GBL_c1(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM),
188 GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM));
189 gDPSetCombineMode(
gMainGfxPos++, G_CC_DECALRGBA, G_CC_DECALRGBA);
191 gDPSetRenderMode(
gMainGfxPos++, G_RM_CLD_SURF, G_RM_CLD_SURF2);
193 gDPSetPrimColor(
gMainGfxPos++, 0, 0, 0, 0, 0, alpha);
233 alpha = buffData->
alpha;
235 gSPTexture(
gMainGfxPos++, 0xFFFF, 0xFFFF, 2, i, G_ON);
242 gSPTexture(
gMainGfxPos++, 0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON);
251 alpha = buffData->
alpha;
254 if (turnsDisplay < 0) {
257 if (turnsDisplay > 9) {
266 idx = turnsDisplay - 1;
268 idx = turnsDisplay + 1;
274 temp2 = (-(scale - 1.0f) * 16.0f) + 0.5;
275 x = temp2 + 20 + numShown * 32;
287 x = temp1 + 20 + numShown * 32;
#define general_heap_malloc
#define create_effect_instance
struct PartnerBuffFXData * partnerBuff
#define ASSERT(condition)
@ FX_INSTANCE_FLAG_DISMISS
EffectInstance * partner_buff_main(s32 useRandomValues, f32 arg1, f32 arg2, f32 arg3, f32 arg4, s32 duration)
@ BUFF_STATE_FADE_IN_INIT
@ BUFF_STATE_SET_TURNS_INIT
@ BUFF_STATE_DECREMENT_TURNS_INIT
@ BUFF_STATE_DECREMENT_TURNS
void func_E011A700(EffectInstance *effect)
void partner_buff_init(EffectInstance *effect)
void partner_buff_render(EffectInstance *effect)
void func_E011A3A0(EffectInstance *effect)
void func_E011A3BC(s16 alpha)
void partner_buff_update(EffectInstance *effect)
void func_E011A48C(s32 posX, s32 posY, s32 tile, f32 scale)
#define VIRTUAL_TO_PHYSICAL(addr)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)