Implement & link ef_swing_rod

This commit is contained in:
Cuyler36
2025-06-16 08:26:33 -04:00
parent 7e2c51cc6e
commit 3c4d67936d
2 changed files with 28 additions and 3 deletions
+1 -1
View File
@@ -1333,7 +1333,7 @@ config.libs = [
Object(NonMatching, "effect/ef_suisou_awa.c"),
Object(NonMatching, "effect/ef_swing_axe.c"),
Object(NonMatching, "effect/ef_swing_net.c"),
Object(NonMatching, "effect/ef_swing_rod.c"),
Object(Matching, "effect/ef_swing_rod.c"),
Object(Matching, "effect/ef_taberu.c"),
Object(Matching, "effect/ef_takurami.c"),
Object(Matching, "effect/ef_takurami_kira.c"),
+27 -2
View File
@@ -1,5 +1,7 @@
#include "ef_effect_control.h"
#include "m_common_data.h"
static void eSwing_Rod_init(xyz_t pos, int prio, s16 angle, GAME* game, u16 item_name, s16 arg0, s16 arg1);
static void eSwing_Rod_ct(eEC_Effect_c* effect, GAME* game, void* ct_arg);
static void eSwing_Rod_mv(eEC_Effect_c* effect, GAME* game);
@@ -18,11 +20,34 @@ eEC_PROFILE_c iam_ef_swing_rod = {
};
static void eSwing_Rod_init(xyz_t pos, int prio, s16 angle, GAME* game, u16 item_name, s16 arg0, s16 arg1) {
// TODO
int bush_happa_num;
int bush_yuki_num;
if (eEC_CLIP != NULL) {
switch (arg0) {
case mCoBG_ATTRIBUTE_BUSH:
bush_happa_num = 3;
while (bush_happa_num-- != 0) {
eEC_CLIP->effect_make_proc(eEC_EFFECT_BUSH_HAPPA, pos, prio, angle, game, item_name, arg0, 1);
}
if (Common_Get(time.season) == mTM_SEASON_WINTER) {
bush_yuki_num = 3;
while (bush_yuki_num-- != 0) {
eEC_CLIP->effect_make_proc(eEC_EFFECT_BUSH_YUKI, pos, prio, angle, game, item_name, arg0, 0);
}
}
break;
}
}
eEC_CLIP->make_effect_proc(eEC_EFFECT_SWING_ROD, pos, NULL, game, NULL, item_name, prio, arg0, arg1);
}
static void eSwing_Rod_ct(eEC_Effect_c* effect, GAME* game, void* ct_arg) {
// TODO
effect->timer = 0;
}
static void eSwing_Rod_mv(eEC_Effect_c* effect, GAME* game) {