Merge branch 'mr-origin-80'
This commit is contained in:
@@ -73,10 +73,10 @@ void chAttackTutorial_setState(Actor * this, s32 arg1){
|
||||
case 5:
|
||||
if(this->unk10_12 == 0){
|
||||
ability_unlock(ABILITY_4_CLAW_SWIPE);
|
||||
func_80311480(0xDFF, 0xE, this->unk1C, this->marker, func_80387288, func_80387258);
|
||||
gcdialog_showText(ASSET_DFF_TEXT_BOTTLES_CLAW_SWIPE_LEARN, 0xE, this->unk1C, this->marker, func_80387288, func_80387258);
|
||||
}
|
||||
else{
|
||||
func_80311480((this->unk10_12 == 1) ? 0xe15 : 0xe17, 0xE, this->unk1C, this->marker, func_80387288, NULL);
|
||||
gcdialog_showText((this->unk10_12 == 1) ? ASSET_E15_TEXT_UNKNOWN : ASSET_E17_TEXT_UNKNOWN, 0xE, this->unk1C, this->marker, func_80387288, NULL);
|
||||
}
|
||||
break;
|
||||
case 2://L803873E0
|
||||
@@ -185,35 +185,36 @@ void func_80387764(ActorMarker * marker){
|
||||
sp2C = 0xE;
|
||||
}
|
||||
|
||||
switch (actor->unk10_12)
|
||||
{
|
||||
case 0x1: //L803877D8
|
||||
sp34 = temp_a2 ? 0xe15 : 0xe14; //dialog enums
|
||||
break;
|
||||
switch (actor->unk10_12) {
|
||||
case 0x1: //L803877D8
|
||||
sp34 = temp_a2 ? ASSET_E15_TEXT_UNKNOWN : ASSET_E14_TEXT_UNKNOWN; //dialog enums
|
||||
break;
|
||||
|
||||
case 0x2: //L803877F4
|
||||
sp34 = temp_a2 ? 0xe17 : 0xe16; //dialog enums
|
||||
break;
|
||||
case 0x2: //L803877F4
|
||||
sp34 = temp_a2 ? ASSET_E17_TEXT_UNKNOWN : ASSET_E16_TEXT_UNKNOWN; //dialog enums
|
||||
break;
|
||||
|
||||
case 3: //L80387810
|
||||
sp34 = temp_a2 ? 0xe19 : 0xe18; //dialog enums
|
||||
break;
|
||||
default:
|
||||
//sp34 = actor->unk38_31;
|
||||
break;
|
||||
case 3: //L80387810
|
||||
sp34 = temp_a2 ? ASSET_E19_TEXT_UNKNOWN : ASSET_E18_TEXT_UNKNOWN; //dialog enums
|
||||
break;
|
||||
default:
|
||||
//sp34 = actor->unk38_31;
|
||||
break;
|
||||
}//L8038782C
|
||||
if(sp34 == 0xe19){
|
||||
|
||||
if (sp34 == ASSET_E19_TEXT_UNKNOWN) {
|
||||
func_8028F94C(2, actor->unk1C);
|
||||
}
|
||||
//L80387848
|
||||
if(!mapSpecificFlags_get(3) && chmole_learnedAllSpiralMountainAbilities() && temp_a2){
|
||||
if (!mapSpecificFlags_get(3) && chmole_learnedAllSpiralMountainAbilities() && temp_a2) {
|
||||
mapSpecificFlags_set(3, 1);
|
||||
sp34 = 0xE12;
|
||||
sp34 = ASSET_E12_TEXT_BOTTLES_LEARNED_TUTORIAL_MOVES;
|
||||
}//L80387898
|
||||
if(temp_a2){
|
||||
|
||||
if (temp_a2) {
|
||||
timed_setStaticCameraToNode(0.0f, 6);
|
||||
}//L803878B0
|
||||
|
||||
func_80311480(sp34, sp2C, actor->unk1C, actor->marker, func_80387690, NULL);
|
||||
gcdialog_showText(sp34, sp2C, actor->unk1C, actor->marker, func_80387690, NULL);
|
||||
actor->unk38_31++;
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@
|
||||
//external
|
||||
f32 mapModel_getFloorY(f32*);
|
||||
void func_802C4218(s32, f32, f32, f32);
|
||||
void func_803252D0(f32, s32);
|
||||
void timed_mapSpecificFlags_setTrue(f32, s32);
|
||||
void subaddie_set_state_with_direction(Actor *, s32, f32, s32);
|
||||
|
||||
//typedefs
|
||||
@@ -205,7 +205,7 @@ void func_80387C28(Actor * this){
|
||||
func_802CA1CC(HONEYCOMB_17_SM_COLIWOBBLE);
|
||||
__spawnQueue_add_4((GenFunction_4)func_802C4218, 0x1f, reinterpret_cast(s32, this->position_x), reinterpret_cast(s32, this->position_y), reinterpret_cast(s32, this->position_z));
|
||||
}//L80387D64
|
||||
func_803252D0(1.5f, 7);
|
||||
timed_mapSpecificFlags_setTrue(1.5f, 7);
|
||||
actor_collisionOff(this);
|
||||
if(local->unkC != 3){
|
||||
subaddie_set_state_with_direction(this, 3, 0.0f, 1);
|
||||
@@ -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->is_first_encounter)
|
||||
if(actor->has_met_before)
|
||||
func_8033A470(3, 7);
|
||||
else
|
||||
func_8033A45C(3, 0);
|
||||
@@ -320,7 +320,7 @@ 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->is_first_encounter = TRUE;
|
||||
this->has_met_before = TRUE;
|
||||
this->unk138_23 = 0;
|
||||
this->unk38_0 = 0;
|
||||
this->initialized = TRUE;
|
||||
@@ -371,7 +371,7 @@ void func_80388080(Actor *this){
|
||||
}
|
||||
}else{//L80388520
|
||||
if(local->unkC == 1){
|
||||
this->unk28 = 3.0f;
|
||||
this->actor_specific_1_f = 3.0f;
|
||||
if(mapSpecificFlags_get(0xC) || volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE)){//L80388554
|
||||
if(!func_80329030(this, 0) && func_80329480(this)){
|
||||
func_80328CEC(this, (s32)this->yaw, 0x78, 0xb4);
|
||||
@@ -391,7 +391,7 @@ void func_80388080(Actor *this){
|
||||
}
|
||||
}
|
||||
else if(local->unkC == 2){//L80388634
|
||||
this->unk28 = 4.0f;
|
||||
this->actor_specific_1_f = 4.0f;
|
||||
if(!func_80329030(this, 0) && func_80329480(this)){
|
||||
func_80328CEC(this, (s32)this->yaw, 0x78, 0xB4);
|
||||
this->unk38_0 = 1;
|
||||
@@ -426,9 +426,9 @@ void func_80388080(Actor *this){
|
||||
if(ml_distance_vec3f(this->position, this->unk1C) < 20.0f){
|
||||
func_80387E64(this);
|
||||
}
|
||||
this->unk28 = 5.0f;
|
||||
this->actor_specific_1_f = 5.0f;
|
||||
if(mapSpecificFlags_get(0xC) || (volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE))){ //L8038892C
|
||||
if(!func_80387FA8(this, local, (s32)this->yaw, (s32)this->unk28)){
|
||||
if(!func_80387FA8(this, local, (s32)this->yaw, (s32)this->actor_specific_1_f)){
|
||||
if(func_80329480(this)){
|
||||
func_80328CEC(this, (s32)this->yaw, 0x78, 0xb4);
|
||||
this->unk38_0 = 1;
|
||||
@@ -441,7 +441,7 @@ void func_80388080(Actor *this){
|
||||
this->unk1C_x -= local->unk0_x;
|
||||
this->unk1C_y -= local->unk0_y;
|
||||
this->unk1C_z -= local->unk0_z;
|
||||
TUPLE_ASSIGN(sp60, this->unk28, 0.0f, 0.0f);
|
||||
TUPLE_ASSIGN(sp60, this->actor_specific_1_f, 0.0f, 0.0f);
|
||||
ml_vec3f_yaw_rotate_copy(sp60, sp60, this->yaw - 90.0);
|
||||
local->unk0_x = sp60[0] + local->unk0_x;
|
||||
local->unk0_y = sp60[1] + local->unk0_y;
|
||||
@@ -483,7 +483,7 @@ void func_80388080(Actor *this){
|
||||
sp54[2] = this->position_z;
|
||||
if(local->unkC == 1)
|
||||
sp54[1] += 150.0f;
|
||||
this->is_first_encounter = FALSE;
|
||||
this->has_met_before = FALSE;
|
||||
func_80387A80(partEmitMgr_newEmitter(3), sp54, 3, (local->unkC == 1)? 0x4f0: 0x4f1);
|
||||
}//L80388CC4
|
||||
|
||||
|
@@ -213,7 +213,7 @@ void func_803892C8(ActorMarker *marker, enum asset_e text_id, s32 arg2){
|
||||
actor = marker_getActor(marker);
|
||||
if(!mapSpecificFlags_get(3) && chmole_learnedAllSpiralMountainAbilities()){
|
||||
mapSpecificFlags_set(3, 1);
|
||||
func_80311480(ASSET_E12_TEXT_BOTTLES_LEARNED_TUTORIAL_MOVES, 0xe, actor->position, actor->marker, func_803892C8, NULL);
|
||||
gcdialog_showText(ASSET_E12_TEXT_BOTTLES_LEARNED_TUTORIAL_MOVES, 0xe, actor->position, actor->marker, func_803892C8, NULL);
|
||||
}//L8038933C
|
||||
else{
|
||||
if(!(text_id == ASSET_DF3_TEXT_BOTTLES_INTRODUCTION
|
||||
@@ -225,7 +225,7 @@ void func_803892C8(ActorMarker *marker, enum asset_e text_id, s32 arg2){
|
||||
case ASSET_D38_TEXT_BOTTLES_ALL_MOVES_LEARNED:
|
||||
break;
|
||||
case ASSET_DF3_TEXT_BOTTLES_INTRODUCTION: /* 2FB8 803893A8 3C188039 */
|
||||
func_80311480(ASSET_E1F_TEXT_BOTTLES_TUTORIAL_OFFER, 0x8e, actor->position, actor->marker, func_803892C8, __chsmmole_additionalAbilityLearnActions);
|
||||
gcdialog_showText(ASSET_E1F_TEXT_BOTTLES_TUTORIAL_OFFER, 0x8e, actor->position, actor->marker, func_803892C8, __chsmmole_additionalAbilityLearnActions);
|
||||
break;
|
||||
|
||||
case ASSET_E1F_TEXT_BOTTLES_TUTORIAL_OFFER: /* 2FEC 803893DC 9209003B */
|
||||
@@ -233,7 +233,7 @@ 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->is_first_encounter = FALSE;
|
||||
actor->has_met_before = FALSE;
|
||||
actor->lifetime_value = 0.0f;
|
||||
break;
|
||||
|
||||
@@ -249,7 +249,7 @@ void func_803892C8(ActorMarker *marker, enum asset_e text_id, s32 arg2){
|
||||
|
||||
default:
|
||||
if(actor->state != 5)
|
||||
func_80311480(ASSET_D38_TEXT_BOTTLES_ALL_MOVES_LEARNED, 4, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(ASSET_D38_TEXT_BOTTLES_ALL_MOVES_LEARNED, 4, NULL, NULL, NULL, NULL);
|
||||
|
||||
func_80388FA0(actor, actor->state == 5 ? 1:4);
|
||||
break;
|
||||
@@ -363,7 +363,7 @@ void chsmmole_80389610(Actor * this){
|
||||
break;
|
||||
}//L80389904
|
||||
if(sp2C){
|
||||
func_80311480(sp2C, sp28, this->position, this->marker, func_803892C8, __chsmmole_additionalAbilityLearnActions);
|
||||
gcdialog_showText(sp2C, sp28, this->position, this->marker, func_803892C8, __chsmmole_additionalAbilityLearnActions);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -414,10 +414,10 @@ void chsmmole_Update(Actor * this){
|
||||
this->unk1C_x = this->position_x;
|
||||
this->unk1C_y = this->position_y;
|
||||
this->unk1C_z = this->position_z;
|
||||
this->unk28 = 300.0f;
|
||||
this->actor_specific_1_f = 300.0f;
|
||||
} else{ //L80389A68
|
||||
nodeprop_getPosition(sp40, this->unk1C);
|
||||
this->unk28 = nodeprop_getRadius(sp40);
|
||||
this->actor_specific_1_f = nodeprop_getRadius(sp40);
|
||||
}//L80389A8C
|
||||
if(this->unkF4_8 == 1){
|
||||
if(volatileFlag_get(VOLATILE_FLAG_1) || volatileFlag_get(VOLATILE_FLAG_1F_IN_CHARACTER_PARADE)){
|
||||
@@ -458,7 +458,7 @@ void chsmmole_Update(Actor * this){
|
||||
|| (this->unkF4_8 == 8 && mapSpecificFlags_get(3) && !mapSpecificFlags_get(0xF))
|
||||
){//L80389C50
|
||||
|
||||
if( ((ml_distance_vec3f(sp44, this->unk1C) < this->unk28) && func_8028F20C())
|
||||
if( ((ml_distance_vec3f(sp44, this->unk1C) < this->actor_specific_1_f) && func_8028F20C())
|
||||
|| mapSpecificFlags_get(0x10)
|
||||
){//L80389C8C
|
||||
if(func_80329530(this, 0x96))
|
||||
@@ -567,14 +567,14 @@ void chsmmole_Update(Actor * this){
|
||||
|
||||
if( user_input != -1){ //button was pressed
|
||||
fileProgressFlag_set(FILEPROG_DB_SKIPPED_TUTORIAL, (user_input)?0:1);
|
||||
func_80311480((user_input)? 0xe07 : 0xe09, 0xe, this->position, this->marker, func_803892C8, __chsmmole_additionalAbilityLearnActions);
|
||||
gcdialog_showText((user_input)? 0xe07 : 0xe09, 0xe, this->position, this->marker, func_803892C8, __chsmmole_additionalAbilityLearnActions);
|
||||
if(!user_input){
|
||||
chsmmole_skipIntroTutorial(); //give all SM moves
|
||||
}
|
||||
this->unk38_0 = 0;
|
||||
}else if(!this->is_first_encounter && 5.0 < this->lifetime_value){
|
||||
func_80311480(0xe1d, 0x86, this->position, this->marker, func_803892C8, NULL);
|
||||
this->is_first_encounter = TRUE;
|
||||
}else if(!this->has_met_before && 5.0 < this->lifetime_value){
|
||||
gcdialog_showText(0xe1d, 0x86, this->position, this->marker, func_803892C8, NULL);
|
||||
this->has_met_before = TRUE;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@@ -43,7 +43,7 @@ void func_8038A4DC(Actor *this, s32 arg1){
|
||||
}else{//L8038A560
|
||||
func_8038A460(this);
|
||||
ability_unlock(ABILITY_A_HOLD_A_JUMP_HIGHER);
|
||||
func_80311480(0xdf6, 0xe, this->unk1C, this->marker, func_8038A488, NULL);
|
||||
gcdialog_showText(0xdf6, 0xe, this->unk1C, this->marker, func_8038A488, NULL);
|
||||
this->sm_4070.unk0 = 0xe1a;
|
||||
mapSpecificFlags_set(8, 0);
|
||||
}
|
||||
@@ -95,7 +95,7 @@ void SM_func_8038A5D8(Actor *this){
|
||||
if(mapSpecificFlags_get(8)){
|
||||
func_8038A460(this);
|
||||
ability_unlock(ABILITY_7_FEATHERY_FLAP);
|
||||
func_80311480(0xdf7, 0xa, this->unk1C, this->marker, func_8038A488, NULL);
|
||||
gcdialog_showText(0xdf7, 0xa, this->unk1C, this->marker, func_8038A488, NULL);
|
||||
this->sm_4070.unk0 = 0xe1b;
|
||||
mapSpecificFlags_set(8,0);
|
||||
}//L8038A730
|
||||
@@ -103,7 +103,7 @@ void SM_func_8038A5D8(Actor *this){
|
||||
if(mapSpecificFlags_get(9)){
|
||||
func_8038A460(this);
|
||||
ability_unlock(ABILITY_8_FLAP_FLIP);
|
||||
func_80311480(0xdf8, 0xa, this->unk1C, this->marker, func_8038A488, NULL);
|
||||
gcdialog_showText(0xdf8, 0xa, this->unk1C, this->marker, func_8038A488, NULL);
|
||||
this->sm_4070.unk0 = 0xe1c;
|
||||
mapSpecificFlags_set(9,0);
|
||||
}//L8038A794
|
||||
@@ -119,7 +119,7 @@ void SM_func_8038A5D8(Actor *this){
|
||||
temp_a0 = 0xdf9;
|
||||
}
|
||||
|
||||
func_80311480(temp_a0, 0xe, this->unk1C, this->marker, func_8038A488, NULL);
|
||||
gcdialog_showText(temp_a0, 0xe, this->unk1C, this->marker, func_8038A488, NULL);
|
||||
mapSpecificFlags_set(0xa,0);
|
||||
this->sm_4070.unk0 = 0;
|
||||
}
|
||||
@@ -133,7 +133,7 @@ void SM_func_8038A5D8(Actor *this){
|
||||
&& func_8028F20C()
|
||||
){
|
||||
if(this->sm_4070.unk0)
|
||||
func_80311480(temp_a0 = this->sm_4070.unk0, 0, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(temp_a0 = this->sm_4070.unk0, 0, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user