Merge branch 'mr-origin-80'
This commit is contained in:
@@ -79,11 +79,11 @@ void func_803875D4(ActorMarker *marker){
|
||||
|
||||
subaddie_set_state(this, 4);
|
||||
actor_loopAnimation(this);
|
||||
this->unk28 = 0.0f;
|
||||
this->actor_specific_1_f = 0.0f;
|
||||
|
||||
if(!mapSpecificFlags_get(2)) {
|
||||
text_id = jiggyscore_isCollected(JIGGY_14_TTC_BLUBBER) ? 0xa2a : 0xa0d;
|
||||
func_80311480( text_id, 0xf, this->position, this->marker, func_80387520, func_80387574);
|
||||
text_id = jiggyscore_isCollected(JIGGY_14_TTC_BLUBBER) ? ASSET_A2A_TEXT_UNKNOWN : ASSET_A0D_TEXT_UNKNOWN;
|
||||
gcdialog_showText(text_id, 0xf, this->position, this->marker, func_80387520, func_80387574);
|
||||
mapSpecificFlags_set(2, TRUE);
|
||||
}
|
||||
}
|
||||
@@ -114,10 +114,10 @@ void func_80387774(Actor **this_ptr){
|
||||
func_8028F364(local->throw_target_position, local->throw_target_radius, 100.0f, ACTOR_2A_GOLD_BULLION, this_ptr);
|
||||
if( func_80329530(*this_ptr, 200)
|
||||
&& bacarry_get_markerId() == MARKER_37_GOLD_BULLION
|
||||
&& func_8028FC34()
|
||||
&& player_throwCarriedObject()
|
||||
){
|
||||
func_8028FA34(!mapSpecificFlags_get(0)? 0x149 : 0x14a, *this_ptr);
|
||||
(*this_ptr)->is_first_encounter = TRUE;
|
||||
(*this_ptr)->has_met_before = TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -146,22 +146,23 @@ void func_803878CC(Actor * this){
|
||||
}//L80387970
|
||||
|
||||
if(func_80329530(this, 250) && !func_80329530(this, 80)
|
||||
&& !this->is_first_encounter
|
||||
&& !this->has_met_before
|
||||
&& item_getCount(ITEM_18_GOLD_BULLIONS) == 0
|
||||
){
|
||||
func_80311480(0xa0b, 0xe, this->position, this->marker, func_80387520, NULL);
|
||||
this->is_first_encounter = TRUE;
|
||||
gcdialog_showText(ASSET_A0B_TEXT_UNKNOWN, 0xe, this->position, this->marker, func_80387520, NULL);
|
||||
this->has_met_before = TRUE;
|
||||
subaddie_set_state_forward(this, 3);
|
||||
}
|
||||
|
||||
if( mapSpecificFlags_get(0)
|
||||
&& !this->unk138_23
|
||||
){
|
||||
if(item_getCount(ITEM_18_GOLD_BULLIONS) == 0)
|
||||
func_80311480(0xa0c, 4, NULL, NULL, NULL, NULL);
|
||||
if (item_getCount(ITEM_18_GOLD_BULLIONS) == 0) {
|
||||
gcdialog_showText(ASSET_A0C_TEXT_UNKNOWN, 4, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
this->unk138_23 = TRUE;
|
||||
this->is_first_encounter = TRUE;
|
||||
this->has_met_before = TRUE;
|
||||
|
||||
}//L80387A54
|
||||
|
||||
@@ -187,7 +188,7 @@ void func_803878CC(Actor * this){
|
||||
if( actor_animationIsAt(this, 0.99f)
|
||||
&& subaddie_maybe_set_state_position_direction(this, 1, 0.0f, 1, 0.78f)
|
||||
){
|
||||
this->unk28 = 4.0f;
|
||||
this->actor_specific_1_f = 4.0f;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -215,7 +216,7 @@ void func_803878CC(Actor * this){
|
||||
local = (ActorLocal_Blubber*)&this->local;
|
||||
if(actor_animationIsAt(this, 0.99f) && !local->unk24){
|
||||
subaddie_set_state(this, 5);
|
||||
this->unk28 = 8.0f;
|
||||
this->actor_specific_1_f = 8.0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -83,10 +83,10 @@ bool __chClam_updateTarget(Actor *this, f32 arg1) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
this->unk28 = phi_f2 / arg1;
|
||||
this->actor_specific_1_f = phi_f2 / arg1;
|
||||
this->yaw_ideal = func_80257204(this->position[0], this->position[2], target_position[0], target_position[2]);
|
||||
if ((volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0 : 0x11) < this->unk28) {
|
||||
this->unk28 = (volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) != 0) ? 0.0f : 17.0f;
|
||||
if ((volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0 : 0x11) < this->actor_specific_1_f) {
|
||||
this->actor_specific_1_f = (volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) != 0) ? 0.0f : 17.0f;
|
||||
} else if (sp38 == 0) {
|
||||
__chClam_func_803863F0(SFX_AE_YUMYUM_TALKING, randf2(0.9f, 1.0f), 22000, this->position, 500.0f, 2000.0f);
|
||||
}
|
||||
@@ -108,13 +108,13 @@ bool __chClam_rotateTowardTarget(Actor *this, s32 arg1) {
|
||||
if (((f64) animctrl_getAnimTimer(this->animctrl) < 0.1) && ((f64) randf() < 0.5)) {
|
||||
if (this->unk1C[0] != 0.0f) {
|
||||
arg1 *= 2;
|
||||
this->unk28 = (f32) randi2(0, 0.5*(volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0 : 0x11));
|
||||
this->actor_specific_1_f = (f32) randi2(0, 0.5*(volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0 : 0x11));
|
||||
this->yaw_ideal += (f32) randi2(-arg1, arg1);
|
||||
} else if ((f64) randf() < 0.4) {
|
||||
this->unk28 = 0.0f;
|
||||
this->actor_specific_1_f = 0.0f;
|
||||
this->yaw_ideal += (f32) randi2(-arg1, arg1);
|
||||
} else {
|
||||
this->unk28 = (f32) randi2(0.33 * (volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0 : 0x11), volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0 : 0x11);
|
||||
this->actor_specific_1_f = (f32) randi2(0.33 * (volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0 : 0x11), volatileFlag_get(VOLATILE_FLAG_C1_IN_FINAL_CHARACTER_PARADE) ? 0 : 0x11);
|
||||
this->yaw_ideal = this->yaw;
|
||||
}
|
||||
this->unk1C[0] = 0.0f;
|
||||
@@ -124,13 +124,13 @@ bool __chClam_rotateTowardTarget(Actor *this, s32 arg1) {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
temp_f0_2 = this->unk28 * sp2C;
|
||||
temp_f0_2 = this->actor_specific_1_f * sp2C;
|
||||
this->velocity[1] = ((f32)(0.3*temp_f0_2) / sp2C) - (f32) ((s32) (sp2C * -5) / 2);
|
||||
if (func_80329078(this, this->yaw_ideal, temp_f0_2)) {
|
||||
return TRUE;
|
||||
}
|
||||
this->unk1C[0] = 1.0f;
|
||||
this->unk28 = 0.0f;
|
||||
this->actor_specific_1_f = 0.0f;
|
||||
this->yaw_ideal = this->yaw;
|
||||
return FALSE;
|
||||
}
|
||||
@@ -249,7 +249,7 @@ void __chClam_attackOther(ActorMarker *this_marker, ActorMarker *other_marker){
|
||||
|
||||
if(func_80297C6C() == 3) return;
|
||||
|
||||
if( !mapSpecificFlags_get(5) && func_80311480(0xA14, 0, NULL, NULL, NULL, NULL)){
|
||||
if( !mapSpecificFlags_get(5) && gcdialog_showText(ASSET_A14_TEXT_UNKNOWN, 0, NULL, NULL, NULL, NULL)){
|
||||
mapSpecificFlags_set(5, TRUE);
|
||||
}
|
||||
|
||||
|
@@ -54,12 +54,12 @@ void chLeaky_update(Actor *this) {
|
||||
}
|
||||
}
|
||||
if( this->state == 1
|
||||
&& !this->is_first_encounter
|
||||
&& !this->has_met_before
|
||||
&& func_80329530(this, 250) && !func_80329530(this, 160)
|
||||
&& !func_8028ECAC()
|
||||
&& func_80311480(0xA1A, 0, NULL, NULL, NULL, NULL)
|
||||
&& gcdialog_showText(0xA1A, 0, NULL, NULL, NULL, NULL)
|
||||
){
|
||||
this->is_first_encounter = TRUE;
|
||||
this->has_met_before = TRUE;
|
||||
}
|
||||
if (func_803114B0() == 0) {
|
||||
if (actor_animationIsAt(this, 0.83f)) {
|
||||
@@ -111,6 +111,6 @@ bool chLeaky_eggCollision(ActorMarker *marker){
|
||||
|
||||
levelSpecificFlags_set(2, TRUE);
|
||||
levelSpecificFlags_set(5, TRUE);
|
||||
func_80311480(ASSET_A28_TEXT_LEAKY_DONE, 0x2a, this->position, this->marker, __chLeaky_startCutscene, NULL);
|
||||
gcdialog_showText(ASSET_A28_TEXT_LEAKY_DONE, 0x2a, this->position, this->marker, __chLeaky_startCutscene, NULL);
|
||||
return TRUE;
|
||||
}
|
||||
|
@@ -75,15 +75,15 @@ void func_80389600(Actor *this){
|
||||
s32 tmp_v1;
|
||||
int i;
|
||||
|
||||
if( !this->is_first_encounter
|
||||
if( !this->has_met_before
|
||||
&& this->unkF4_8 == 0xA
|
||||
&& !jiggyscore_isCollected(JIGGY_13_TTC_LOCKUP)
|
||||
&& func_80329530(this, 320)
|
||||
&& !func_80329530(this, 160)
|
||||
&& !func_8028ECAC()
|
||||
&& func_80311480(0xA15, 0, NULL, NULL, NULL, NULL)
|
||||
&& gcdialog_showText(0xA15, 0, NULL, NULL, NULL, NULL)
|
||||
){
|
||||
this->is_first_encounter = TRUE;
|
||||
this->has_met_before = TRUE;
|
||||
}//L803896AC
|
||||
|
||||
if(!this->volatile_initialized){
|
||||
|
@@ -112,11 +112,11 @@ bool func_80388088(Actor *this){
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return (-35.0f < sp2C && sp2C < 35.0f) ? TRUE : FALSE;
|
||||
return BOOL(-35.0f < sp2C && sp2C < 35.0f);
|
||||
}
|
||||
|
||||
bool func_8038812C(Actor *this){
|
||||
return (func_80329530(this, 1300) && func_80388088(this)) ? TRUE : FALSE;
|
||||
return BOOL(func_80329530(this, 1300) && func_80388088(this));
|
||||
}
|
||||
|
||||
void func_80388178(ActorMarker *this_marker, ActorMarker *other_marker) {
|
||||
@@ -147,7 +147,7 @@ void func_80388178(ActorMarker *this_marker, ActorMarker *other_marker) {
|
||||
|
||||
TTC_func_80387FF4(this);
|
||||
this->lifetime_value = 80.0f;
|
||||
func_80311480(0xA10, 4, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(0xA10, 4, NULL, NULL, NULL, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -167,8 +167,8 @@ void func_80388344(ActorMarker * this_marker, ActorMarker *other_marker){
|
||||
if(other_marker->id == 1){
|
||||
this = marker_getActor(this_marker);
|
||||
if( !mapSpecificFlags_get(7)
|
||||
&& this->is_first_encounter
|
||||
&& func_80311480(0xa0f, 0, NULL, NULL, NULL, NULL)
|
||||
&& this->has_met_before
|
||||
&& gcdialog_showText(0xa0f, 0, NULL, NULL, NULL, NULL)
|
||||
){
|
||||
mapSpecificFlags_set(7, TRUE);
|
||||
}
|
||||
@@ -178,8 +178,8 @@ void func_80388344(ActorMarker * this_marker, ActorMarker *other_marker){
|
||||
void func_803883C8(ActorMarker * this_marker, ActorMarker *other_marker){
|
||||
Actor *this = marker_getActor(this_marker);
|
||||
if( !this->unk138_23
|
||||
&& this->is_first_encounter
|
||||
&& func_80311480(0xa11, 0, NULL, NULL, NULL, NULL)
|
||||
&& this->has_met_before
|
||||
&& gcdialog_showText(0xa11, 0, NULL, NULL, NULL, NULL)
|
||||
){
|
||||
this->unk138_23 = TRUE;
|
||||
}
|
||||
@@ -229,13 +229,13 @@ void func_80388434(Actor *this){
|
||||
}//L8038860C
|
||||
if(func_8038812C(this)){
|
||||
temp_v0 = func_8028ECAC();
|
||||
if( !this->is_first_encounter
|
||||
if( !this->has_met_before
|
||||
&& temp_v0 != 1
|
||||
&& temp_v0 != 10
|
||||
){
|
||||
subaddie_set_state_with_direction(this, 5, 0.01f, 1);
|
||||
if(func_80311480(0xa0e, 0xf, this->position, this->marker, TTC_func_80387FB0, NULL)){
|
||||
this->is_first_encounter = TRUE;
|
||||
if(gcdialog_showText(0xa0e, 0xf, this->position, this->marker, TTC_func_80387FB0, NULL)){
|
||||
this->has_met_before = TRUE;
|
||||
}
|
||||
comusic_8025AB44(COMUSIC_12_TTC_NIPPER, 5000, 300);
|
||||
ncStaticCamera_setToNode(11);
|
||||
|
@@ -116,10 +116,10 @@ void func_80389A9C(void) {
|
||||
void func_80389B38(s32 arg0){
|
||||
if(D_8037DCB4 == arg0 && TTC_func_803899C0()){
|
||||
if(arg0 == 0 && !jiggyscore_isCollected(JIGGY_11_TTC_RED_X)){
|
||||
func_80311480(0xA18, 4, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(0xA18, 4, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
else if(arg0 == 4){
|
||||
func_80311480(0xA19, 4, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(0xA19, 4, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
D_8037DCB4++;
|
||||
@@ -170,7 +170,7 @@ void func_80389CC4(s16 arg0[3], s32 arg1){
|
||||
gcpausemenu_80314AC8(0);
|
||||
timedFunc_set_2(0.1f, (GenFunction_2) func_8028F45C, 9, (s32)&D_8038D708);
|
||||
timedFunc_set_1(0.1f, (GenFunction_1) gcpausemenu_80314AC8, 1);
|
||||
func_80311480(ASSET_A17_TEXT_BURIED_TREASURE_SPAWNED, 4, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(ASSET_A17_TEXT_BURIED_TREASURE_SPAWNED, 4, NULL, NULL, NULL, NULL);
|
||||
D_8037DCB4++;
|
||||
}//L80389E70
|
||||
}
|
||||
|
@@ -681,7 +681,7 @@ void __sandcastleCodes_eraseGameDialogCallback(ActorMarker *caller, enum asset_e
|
||||
if (confirmed == 1) {
|
||||
__sandcastleCodes_setNumberEntered(3);
|
||||
func_8038B800(D_8038CAD4);
|
||||
func_80311480(0xFBF, 0xC, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(ASSET_FBF_TEXT_UNKNOWN, 0xC, NULL, NULL, NULL, NULL);
|
||||
gameFile_clear(func_802C5A30());
|
||||
gameFile_8033CFD4(func_802C5A30());
|
||||
func_802C5A3C(-1);
|
||||
@@ -710,11 +710,11 @@ void TTC_func_8038BBA0(s32 secretCodeIndex) {
|
||||
__sandcastleCodes_setNumberEntered(2);
|
||||
func_8038B800(secretCodeIndex);
|
||||
func_8038B5B4();
|
||||
func_80311480(0xFBE, 0xC, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(ASSET_FBE_TEXT_UNKNOWN, 0xC, NULL, NULL, NULL, NULL);
|
||||
return;
|
||||
case 2:
|
||||
D_8038CAD4 = secretCodeIndex;
|
||||
func_80311480(0xE38, 0xC, NULL, NULL, __sandcastleCodes_eraseGameDialogCallback, NULL);
|
||||
gcdialog_showText(ASSET_E38_TEXT_UNKNOWN, 0xC, NULL, NULL, __sandcastleCodes_eraseGameDialogCallback, NULL);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
|
Reference in New Issue
Block a user