Merge branch 'mr-origin-80'
This commit is contained in:
@@ -142,17 +142,19 @@ void chTiptup_setState(Actor *this, s32 arg1){
|
||||
if(this->state == 2){
|
||||
skeletalAnim_set(this->unk148, ASSET_12B_ANIM_TIPTUP_IDLE, 1.0f, 9.0f);
|
||||
unqPtr->unkC = randf2(5.0f, 15.0f);
|
||||
if(!this->is_first_encounter){
|
||||
this->is_first_encounter = TRUE;
|
||||
if(unqPtr->unkA == 0){
|
||||
func_80311480(0xc72, 0xe, this->position, this->marker, chTiptup_textEvent, 0);
|
||||
}else{
|
||||
func_80311480(0xc74, 0xf, this->position, this->marker, chTiptup_textEvent, 0);
|
||||
|
||||
if (!this->has_met_before) {
|
||||
this->has_met_before = TRUE;
|
||||
|
||||
if (unqPtr->unkA == 0) {
|
||||
gcdialog_showText(ASSET_C72_TEXT_UNKNOWN, 0xe, this->position, this->marker, func_80388784, 0);
|
||||
}
|
||||
else {
|
||||
gcdialog_showText(ASSET_C74_TEXT_UNKNOWN, 0xf, this->position, this->marker, func_80388784, 0);
|
||||
}
|
||||
}
|
||||
else{
|
||||
func_80311480(D_80390854[unqPtr->unkA], 0xf, this->position, this->marker, chTiptup_textEvent, 0);
|
||||
else {
|
||||
gcdialog_showText(D_80390854[unqPtr->unkA], 0xf, this->position, this->marker, func_80388784, 0);
|
||||
}
|
||||
}
|
||||
if(this->state == 3){
|
||||
@@ -233,7 +235,7 @@ void chTiptup_choirHitReaction(ActorMarker *this, s32 arg1){
|
||||
thisActor = marker_getActor(this);
|
||||
unqPtr = (ActorLocal_Tiptup *)&thisActor->local;
|
||||
if((s32)unqPtr->unk0 >= (s32) vector_size(unqPtr->unk4)){
|
||||
if(!mapSpecificFlags_get(0) && func_80311480(0xc76, 0, 0, 0, 0, 0))
|
||||
if(!mapSpecificFlags_get(0) && gcdialog_showText(ASSET_C76_TEXT_UNKNOWN, 0, 0, 0, 0, 0))
|
||||
mapSpecificFlags_set(0,1);
|
||||
}else{
|
||||
tmp = (Struct_BGS_2270_0s *)vector_at(unqPtr->unk4, unqPtr->unk0);
|
||||
@@ -243,7 +245,7 @@ void chTiptup_choirHitReaction(ActorMarker *this, s32 arg1){
|
||||
else{
|
||||
func_8028F55C(1, thisActor->marker);
|
||||
timedFunc_set_0(0.5f, chTiptup_sfxIncorrectHit);
|
||||
if(!mapSpecificFlags_get(1) && !volatileFlag_get(VOLATILE_FLAG_2_FF_IN_MINIGAME) && func_80311480(0xc75, 0, NULL, NULL, NULL, NULL))
|
||||
if(!mapSpecificFlags_get(1) && !volatileFlag_get(VOLATILE_FLAG_2_FF_IN_MINIGAME) && gcdialog_showText(0xc75, 0, NULL, NULL, NULL, NULL))
|
||||
mapSpecificFlags_set(1,TRUE);
|
||||
}
|
||||
}
|
||||
@@ -340,7 +342,7 @@ void chTiptup_update(Actor *this){
|
||||
if(this->state == 6){
|
||||
if(ml_distance_vec3f(this->position, player_position) < 300.0f && !unqPtr->unk8){
|
||||
unqPtr->unk8 = 1;
|
||||
func_80311480(0xc7d, 4, 0, 0, 0, 0);
|
||||
gcdialog_showText(0xc7d, 4, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -143,7 +143,7 @@ void func_80387FD4(Actor *this){
|
||||
func_8025A6EC(COMUSIC_2B_DING_B, 28000); //TODO ISSUE HERE
|
||||
if (this->unkF4_8 == 1) {
|
||||
func_8028F94C(2, this->position);
|
||||
func_80311480(0xC86, 0xE, this->position, this->marker, func_80387E68, NULL);
|
||||
gcdialog_showText(ASSET_C86_TEXT_UNKNOWN, 0xE, this->position, this->marker, func_80387E68, NULL);
|
||||
subaddie_set_state_with_direction(this, 6, 0.79f, 1);
|
||||
} else {
|
||||
timed_playSfx(0.4f, SFX_C9_PAUSEMENU_ENTER, 1.0f, 32000); //0.4f
|
||||
|
@@ -56,10 +56,10 @@ void chFrogMinigame_setState(Actor * arg0, u32 next_state){
|
||||
mapSpecificFlags_set(0x10, 1);
|
||||
if(!fileProgressFlag_get(FILEPROG_1B_MET_YELLOW_FLIBBITS)){
|
||||
fileProgressFlag_set(FILEPROG_1B_MET_YELLOW_FLIBBITS, 1);
|
||||
func_80311480(text_flibbits_meet, 0xf, arg0->position, arg0->marker, __chFrogMinigame_textCallback, 0);
|
||||
gcdialog_showText(text_flibbits_meet, 0xf, arg0->position, arg0->marker, __chFrogMinigame_textCallback, 0);
|
||||
}else{
|
||||
if(!arg0->bgs_6730.unk8){
|
||||
func_80311480(text_flibbits_return, 0x4, arg0->position, arg0->marker, __chFrogMinigame_textCallback, 0);
|
||||
gcdialog_showText(text_flibbits_return, 0x4, arg0->position, arg0->marker, __chFrogMinigame_textCallback, 0);
|
||||
}
|
||||
else{
|
||||
__chFrogMinigame_textCallback(arg0->marker, text_flibbits_return, 0);
|
||||
@@ -92,9 +92,10 @@ void chFrogMinigame_setState(Actor * arg0, u32 next_state){
|
||||
}
|
||||
}
|
||||
|
||||
if(next_state == 4){
|
||||
func_80311480(text_flibbits_defeat, 0xf, arg0->position, arg0->marker, __chFrogMinigame_textCallback, 0);
|
||||
if (next_state == 4) {
|
||||
gcdialog_showText(text_flibbits_defeat, 0xf, arg0->position, arg0->marker, __chFrogMinigame_textCallback, 0);
|
||||
}
|
||||
|
||||
if(next_state == 5){
|
||||
func_80324E38(0.0f, 3);
|
||||
timed_setStaticCameraToNode(0.0f, 0x27);
|
||||
|
@@ -111,7 +111,7 @@ void func_8038F6A4(Actor *this)
|
||||
{
|
||||
nodeprop_getPosition(temp_v0, local->unk18);
|
||||
}
|
||||
this->is_first_encounter = FALSE;
|
||||
this->has_met_before = FALSE;
|
||||
this->initialized = TRUE;
|
||||
}
|
||||
if (!this->volatile_initialized)
|
||||
@@ -138,12 +138,12 @@ void func_8038F6A4(Actor *this)
|
||||
case 1:
|
||||
func_8038F610(this);
|
||||
player_getPosition(sp48);
|
||||
if (!this->is_first_encounter)
|
||||
if (!this->has_met_before)
|
||||
{
|
||||
if ((((ml_distance_vec3f(local->unk18, sp48) < 250.0f) && (ml_distance_vec3f(local->unk18, sp48) > 80.0f)) && (!func_8028ECAC())) && (player_getTransformation() == TRANSFORM_1_BANJO))
|
||||
{
|
||||
func_80311480(0xC7E, 0, 0, 0, 0, 0);
|
||||
this->is_first_encounter = TRUE;
|
||||
gcdialog_showText(0xC7E, 0, 0, 0, 0, 0);
|
||||
this->has_met_before = TRUE;
|
||||
}
|
||||
}
|
||||
if (local->unk10)
|
||||
@@ -163,7 +163,7 @@ void func_8038F6A4(Actor *this)
|
||||
|
||||
if ((!this->unk138_23) && (!local->unk14))
|
||||
{
|
||||
if (func_80311480(0xC80, 0, 0, 0, 0, 0))
|
||||
if (gcdialog_showText(0xC80, 0, 0, 0, 0, 0))
|
||||
{
|
||||
this->unk138_23 = 1;
|
||||
}
|
||||
@@ -214,7 +214,7 @@ void func_8038F6A4(Actor *this)
|
||||
func_8028F918(0);
|
||||
if (jiggyscore_isCollected(JIGGY_26_BGS_TANKTUP) == 0)
|
||||
{
|
||||
func_80311480(0xC7F, 0xF, this->position, this->marker, func_8038F5E4, 0);
|
||||
gcdialog_showText(0xC7F, 0xF, this->position, this->marker, func_8038F5E4, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -41,13 +41,16 @@ bool func_8038B160(Actor *this){
|
||||
|
||||
local = (ActorLocal_Yumblie *)&this->local;
|
||||
temp_v0 = func_8038A9E0(local->game_marker);
|
||||
if ((temp_v0 == 1) || (temp_v0 == 4))
|
||||
return FALSE;
|
||||
|
||||
if ((temp_v0 == 2) || (temp_v0 == 5))
|
||||
return (0.7 <= randf ()) ? TRUE : FALSE;
|
||||
|
||||
return (randf () >= 0.5)? TRUE : FALSE;
|
||||
if ((temp_v0 == 1) || (temp_v0 == 4)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ((temp_v0 == 2) || (temp_v0 == 5)) {
|
||||
return BOOL(0.7 <= randf());
|
||||
}
|
||||
|
||||
return BOOL(randf() >= 0.5);
|
||||
}
|
||||
|
||||
void chyumblie_set_state(Actor* this, enum chyumblie_state_e next_state){
|
||||
|
Reference in New Issue
Block a user