Renaming functions
This commit is contained in:
@@ -124,7 +124,7 @@ void chAttackTutorial_update(Actor *this){
|
||||
this->unk1C_z = this->position_z;}
|
||||
}
|
||||
this->unk10_12 = (ability_isUnlocked(ABILITY_C_ROLL))? 2 : (ability_isUnlocked(ABILITY_4_CLAW_SWIPE)? 1:0);
|
||||
this->initialized = 1;
|
||||
this->initialized = TRUE;
|
||||
}
|
||||
|
||||
switch(this->state){
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
|
||||
//external
|
||||
f32 func_80309724(f32*);
|
||||
f32 mapModel_getFloorY(f32*);
|
||||
void func_802C4218(s32, f32, f32, f32);
|
||||
void func_803252D0(f32, s32);
|
||||
void subaddie_set_state_with_direction(Actor *, s32, f32, s32);
|
||||
@@ -223,7 +223,7 @@ void func_80387DCC(ActorMarker *marker, ActorMarker *other_marker){
|
||||
Actor *func_80387DF4(ActorMarker *marker, Gfx **gdl, Mtx **mptr, Vtx **arg3){
|
||||
Actor *actor = marker_getActor(marker);
|
||||
|
||||
if(actor->unk138_24)
|
||||
if(actor->is_first_encounter)
|
||||
func_8033A470(3, 7);
|
||||
else
|
||||
func_8033A45C(3, 0);
|
||||
@@ -320,10 +320,10 @@ void func_80388080(Actor *this){
|
||||
this->velocity_x = temp_velX;
|
||||
this->velocity_y = (local->unkC == 3) ? 90.0f : 70.0f;
|
||||
this->velocity_z = temp_velZ;
|
||||
this->unk138_24 = 1;
|
||||
this->is_first_encounter = TRUE;
|
||||
this->unk138_23 = 0;
|
||||
this->unk38_0 = 0;
|
||||
this->initialized = 1;
|
||||
this->initialized = TRUE;
|
||||
this->scale = 0.5;
|
||||
}//L80388278
|
||||
switch (this->state)
|
||||
@@ -347,7 +347,7 @@ void func_80388080(Actor *this){
|
||||
this->velocity_y -= 5.0f;
|
||||
this->scale = MIN(this->scale + 0.05, 1.0);
|
||||
if(this->velocity_y < 0.0f && this->position_y < this->unk1C_y){
|
||||
this->position_y = func_80309724(this->position);
|
||||
this->position_y = mapModel_getFloorY(this->position);
|
||||
if(local->unkC == 3)
|
||||
func_80387F00(this);
|
||||
|
||||
@@ -483,7 +483,7 @@ void func_80388080(Actor *this){
|
||||
sp54[2] = this->position_z;
|
||||
if(local->unkC == 1)
|
||||
sp54[1] += 150.0f;
|
||||
this->unk138_24 = 0;
|
||||
this->is_first_encounter = FALSE;
|
||||
func_80387A80(partEmitMgr_newEmitter(3), sp54, 3, (local->unkC == 1)? 0x4f0: 0x4f1);
|
||||
}//L80388CC4
|
||||
|
||||
|
@@ -233,8 +233,8 @@ void func_803892C8(ActorMarker *marker, enum asset_e text_id, s32 arg2){
|
||||
break;
|
||||
|
||||
case ASSET_E1D_TEXT_BOTTLES_TUTORIAL_OFFER_WAIT: /* 2FFC 803893EC 920B0138 */
|
||||
actor->unk138_24 = 0;
|
||||
actor->unk60 = 0.0f;
|
||||
actor->is_first_encounter = FALSE;
|
||||
actor->lifetime_value = 0.0f;
|
||||
break;
|
||||
|
||||
case ASSET_DF6_TEXT_BOTTLES_HIGH_JUMP_LEARN: /* 3014 80389404 0C0A3E46 */
|
||||
@@ -406,7 +406,7 @@ void chsmmole_Update(Actor * this){
|
||||
if(!this->initialized){
|
||||
this->marker->propPtr->unk8_3 = 0;
|
||||
actor_collisionOff(this);
|
||||
this->initialized = 1;
|
||||
this->initialized = TRUE;
|
||||
marker_setFreeMethod(this->marker, func_80389984);
|
||||
if(this->unkF4_8 == 1 || this->unkF4_8 == 8){//L80389A30
|
||||
sp40 = func_80304C38(0x349, this);
|
||||
@@ -557,7 +557,7 @@ void chsmmole_Update(Actor * this){
|
||||
}//L8038A1B8
|
||||
user_input = -1;
|
||||
if(this->unk38_0){
|
||||
this->unk60 += time_getDelta();
|
||||
this->lifetime_value += time_getDelta();
|
||||
if(func_803114C4() != 0xe1d){
|
||||
if(sp50[FACE_BUTTON(BUTTON_A)] == 1)
|
||||
user_input = 1; //A button pressed
|
||||
@@ -572,9 +572,9 @@ void chsmmole_Update(Actor * this){
|
||||
chsmmole_skipIntroTutorial(); //give all SM moves
|
||||
}
|
||||
this->unk38_0 = 0;
|
||||
}else if(!this->unk138_24 && 5.0 < this->unk60){
|
||||
}else if(!this->is_first_encounter && 5.0 < this->lifetime_value){
|
||||
func_80311480(0xe1d, 0x86, this->position, this->marker, func_803892C8, NULL);
|
||||
this->unk138_24 = 1;
|
||||
this->is_first_encounter = TRUE;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@@ -74,7 +74,7 @@ void SM_func_8038A5D8(Actor *this){
|
||||
this->unk1C_y = this->position_y;
|
||||
this->unk1C_z = this->position_z;
|
||||
}//L8038A644
|
||||
this->initialized = 1;
|
||||
this->initialized = TRUE;
|
||||
}//L8038A650
|
||||
|
||||
func_8024E55C(0, sp44);
|
||||
|
@@ -76,8 +76,8 @@ void func_80386B04(ParticleEmitter *p_ctrl, f32 *arg1, s32 arg2, f32 arg3) {
|
||||
particleEmitter_setModel(p_ctrl, 0x42E);
|
||||
particleEmitter_setPosition(p_ctrl, arg1);
|
||||
particleEmitter_setDrawMode(p_ctrl, 2);
|
||||
func_802EFB70(p_ctrl, arg3, arg3);
|
||||
func_802EFB84(p_ctrl, arg3, arg3);
|
||||
particleEmitter_setStartingScaleRange(p_ctrl, arg3, arg3);
|
||||
particleEmitter_setFinalScaleRange(p_ctrl, arg3, arg3);
|
||||
particleEmitter_setAngularVelocityRange(p_ctrl, -100.0f, -100.0f, -100.0f, 100.0f, 100.0f, 100.0f);
|
||||
particleEmitter_setSpawnIntervalRange(p_ctrl, 0.00f, 0.01f);
|
||||
particleEmitter_setParticleLifeTimeRange(p_ctrl, 2.0f, 2.0f);
|
||||
@@ -91,8 +91,8 @@ void func_80386C2C(ParticleEmitter *p_ctrl, f32 *arg1, s32 arg2, f32 arg3) {
|
||||
particleEmitter_setFade(p_ctrl, 0.00f, 0.01f);
|
||||
particleEmitter_setStartingFrameRange(p_ctrl, 0, 7);
|
||||
particleEmitter_setPosition(p_ctrl, arg1);
|
||||
func_802EFB70(p_ctrl, (arg3 * 0.1), (arg3 * 0.5));
|
||||
func_802EFB84(p_ctrl, (arg3 * 1.5), (arg3 * 3.0));
|
||||
particleEmitter_setStartingScaleRange(p_ctrl, (arg3 * 0.1), (arg3 * 0.5));
|
||||
particleEmitter_setFinalScaleRange(p_ctrl, (arg3 * 1.5), (arg3 * 3.0));
|
||||
particleEmitter_setSpawnIntervalRange(p_ctrl, 0.0f, 0.01f);
|
||||
particleEmitter_setParticleLifeTimeRange(p_ctrl, 1.5f, 2.0f);
|
||||
particleEmitter_setPositionVelocityAndAccelerationRanges(p_ctrl, &D_8038AB9C);
|
||||
|
Reference in New Issue
Block a user