Implement & link ef_lovelove

This commit is contained in:
Norgesnerd
2025-05-25 16:30:09 +02:00
parent b266e845d6
commit c95fd081b0
2 changed files with 20 additions and 5 deletions
+1 -1
View File
@@ -1289,7 +1289,7 @@ config.libs = [
Object(NonMatching, "effect/ef_kpun.c"),
Object(Matching, "effect/ef_kyousou_onpu.c"),
Object(Matching, "effect/ef_lamp_light.c"),
Object(NonMatching, "effect/ef_lovelove.c"),
Object(Matching, "effect/ef_lovelove.c"),
Object(NonMatching, "effect/ef_lovelove2.c"),
Object(NonMatching, "effect/ef_lovelove_heart.c"),
Object(Matching, "effect/ef_make_hem.c"),
+19 -4
View File
@@ -1,5 +1,7 @@
#include "ef_effect_control.h"
#include "m_common_data.h"
static void eLove_init(xyz_t pos, int prio, s16 angle, GAME* game, u16 item_name, s16 arg0, s16 arg1);
static void eLove_ct(eEC_Effect_c* effect, GAME* game, void* ct_arg);
static void eLove_mv(eEC_Effect_c* effect, GAME* game);
@@ -18,17 +20,30 @@ eEC_PROFILE_c iam_ef_lovelove = {
};
static void eLove_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_LOVELOVE, pos, NULL, game, NULL, item_name, prio, 0, 0);
}
static void eLove_ct(eEC_Effect_c* effect, GAME* game, void* ct_arg) {
// TODO
effect->timer = 52;
}
static void eLove_mv(eEC_Effect_c* effect, GAME* game) {
// TODO
s32 prio;
u16 name;
eEC_CLIP->set_continious_env_proc(effect, 52, 102);
sAdo_OngenPos((u32)effect, 14, &effect->position);
if ((effect->timer & 7) == 0) {
name = effect->item_name;
prio = effect->prio;
if ((eEC_CLIP != NULL)) {
eEC_CLIP->effect_make_proc(eEC_EFFECT_LOVELOVE_HEART, effect->position, prio, 0, game, name, 0, 0);
}
}
}
static void eLove_dw(eEC_Effect_c* effect, GAME* game) {
// TODO
return;
}