summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_ks.cpp
diff options
context:
space:
mode:
author123456789758 <205478182+123456789758@users.noreply.github.com>2026-06-16 14:55:36 -0400
committerGitHub <noreply@github.com>2026-06-16 14:55:36 -0400
commitd61a31e7ab30ef357060124bae1830939106104b (patch)
tree409e8cd3e8f81a3cd516470a88b4a237636e2bd5 /src/d/actor/d_a_ks.cpp
parentf2d931cd81b76b5e7ab29f6b53d172040d088a23 (diff)
Use joint enums in several different places (#981)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
Diffstat (limited to 'src/d/actor/d_a_ks.cpp')
-rw-r--r--src/d/actor/d_a_ks.cpp31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/d/actor/d_a_ks.cpp b/src/d/actor/d_a_ks.cpp
index eff1082d..0e952df9 100644
--- a/src/d/actor/d_a_ks.cpp
+++ b/src/d/actor/d_a_ks.cpp
@@ -1677,22 +1677,20 @@ static cPhs_State daKS_Create(fopAc_ac_c* i_this) {
a_this->mEnemyFire.mpMcaMorf = a_this->mpBodyMorf;
a_this->mEnemyFire.mpActor = i_this;
- static s8 fire_j[10] = {
- 0,
- -1,
- -1,
- -1,
- -1,
- -1,
- -1,
- -1,
- -1,
- -1,
-
+ static u8 fire_j[ARRAY_SIZE(a_this->mEnemyFire.mFlameJntIdxs)] = {
+ KS_BODY_JNT_KARADA_e,
+ 0xFF,
+ 0xFF,
+ 0xFF,
+ 0xFF,
+ 0xFF,
+ 0xFF,
+ 0xFF,
+ 0xFF,
+ 0xFF
};
- static f32 fire_sc[10] = {
- 1.0f,
- 1.0f,
+ static f32 fire_sc[ARRAY_SIZE(a_this->mEnemyFire.mParticleScale)] = {
+ 1.0f, // KS_BODY_JNT_KARADA_e
1.0f,
1.0f,
1.0f,
@@ -1701,9 +1699,10 @@ static cPhs_State daKS_Create(fopAc_ac_c* i_this) {
1.0f,
1.0f,
1.0f,
+ 1.0f
};
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < ARRAY_SIZE(a_this->mEnemyFire.mFlameJntIdxs); i++) {
a_this->mEnemyFire.mFlameJntIdxs[i] = fire_j[i];
a_this->mEnemyFire.mParticleScale[i] = fire_sc[i];
}