mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-08-11 19:08:57 -04:00
Implement & link ef_siawase_hana
This commit is contained in:
+1
-1
@@ -1320,7 +1320,7 @@ config.libs = [
|
||||
Object(Matching, "effect/ef_shooting.c"),
|
||||
Object(Matching, "effect/ef_shooting_kira.c"),
|
||||
Object(Matching, "effect/ef_shooting_set.c"),
|
||||
Object(NonMatching, "effect/ef_siawase_hana.c"),
|
||||
Object(Matching, "effect/ef_siawase_hana.c"),
|
||||
Object(NonMatching, "effect/ef_siawase_hana_ch.c"),
|
||||
Object(NonMatching, "effect/ef_siawase_hikari.c"),
|
||||
Object(NonMatching, "effect/ef_sibuki.c"),
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "ef_effect_control.h"
|
||||
|
||||
#include "m_common_data.h"
|
||||
|
||||
static void eSSHN_init(xyz_t pos, int prio, s16 angle, GAME* game, u16 item_name, s16 arg0, s16 arg1);
|
||||
static void eSSHN_ct(eEC_Effect_c* effect, GAME* game, void* ct_arg);
|
||||
static void eSSHN_mv(eEC_Effect_c* effect, GAME* game);
|
||||
@@ -18,17 +20,44 @@ eEC_PROFILE_c iam_ef_siawase_hana = {
|
||||
};
|
||||
|
||||
static void eSSHN_init(xyz_t pos, int prio, s16 angle, GAME* game, u16 item_name, s16 arg0, s16 arg1) {
|
||||
// TODO
|
||||
pos.y -= 10.0f;
|
||||
|
||||
eEC_CLIP->make_effect_proc(eEC_EFFECT_SIAWASE_HANA, pos, NULL, game, NULL, item_name, prio, 0, 0);
|
||||
}
|
||||
|
||||
static void eSSHN_ct(eEC_Effect_c* effect, GAME* game, void* ct_arg) {
|
||||
// TODO
|
||||
int i;
|
||||
xyz_t pos;
|
||||
|
||||
effect->timer = 22;
|
||||
if ((eEC_CLIP != NULL) && ((effect->timer & 1) != 0)) {
|
||||
pos = effect->position;
|
||||
pos.y -= 5.0f;
|
||||
|
||||
for (i = 0; i < 5; i++) {
|
||||
eEC_CLIP->effect_make_proc(eEC_EFFECT_SIAWASE_HANA_CH, pos, effect->prio, 0, game, effect->item_name, i * 4,
|
||||
0);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static void eSSHN_mv(eEC_Effect_c* effect, GAME* game) {
|
||||
// TODO
|
||||
int prio;
|
||||
u16 item_name;
|
||||
xyz_t pos;
|
||||
|
||||
eEC_CLIP->set_continious_env_proc(effect, 22, 122);
|
||||
if ((effect->timer & 3) == 0) {
|
||||
item_name = effect->item_name;
|
||||
prio = effect->prio;
|
||||
if (eEC_CLIP != NULL) {
|
||||
pos = effect->position;
|
||||
pos.y -= 5.0f;
|
||||
eEC_CLIP->effect_make_proc(eEC_EFFECT_SIAWASE_HANA_CH, pos, prio, 0, game, item_name, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void eSSHN_dw(eEC_Effect_c* effect, GAME* game) {
|
||||
// TODO
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user