Skip to content

Commit 3d1ee33

Browse files
authored
Document Actor "OfferTalk" (#1567)
* OfferTalk * rm comment * exch to offer in comment * reword again * Partial PR Review * Actor_AcknowledgeTalking * Actor_TalkOfferAccepted * PR Review * rm part of comment * rm comment
1 parent c11ce9c commit 3d1ee33

File tree

74 files changed

+297
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+297
-266
lines changed

include/functions.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,11 @@ PosRot* Actor_GetFocus(PosRot* dest, Actor* actor);
395395
PosRot* Actor_GetWorld(PosRot* dest, Actor* actor);
396396
PosRot* Actor_GetWorldPosShapeRot(PosRot* arg0, Actor* actor);
397397
s32 func_8002F0C8(Actor* actor, Player* player, s32 flag);
398-
u32 Actor_ProcessTalkRequest(Actor* actor, PlayState* play);
399-
s32 func_8002F1C4(Actor* actor, PlayState* play, f32 arg2, f32 arg3, u32 exchangeItemId);
400-
s32 func_8002F298(Actor* actor, PlayState* play, f32 arg2, u32 exchangeItemId);
401-
s32 func_8002F2CC(Actor* actor, PlayState* play, f32 arg2);
402-
s32 func_8002F2F4(Actor* actor, PlayState* play);
398+
s32 Actor_TalkOfferAccepted(Actor* actor, PlayState* play);
399+
s32 Actor_OfferTalkExchange(Actor* actor, PlayState* play, f32 xzRange, f32 yRange, u32 exchangeItemId);
400+
s32 Actor_OfferTalkExchangeEquiCylinder(Actor* actor, PlayState* play, f32 radius, u32 exchangeItemId);
401+
s32 Actor_OfferTalk(Actor* actor, PlayState* play, f32 radius);
402+
s32 Actor_OfferTalkNearColChkInfoCylinder(Actor* actor, PlayState* play);
403403
u32 Actor_TextboxIsClosing(Actor* actor, PlayState* play);
404404
s8 func_8002F368(PlayState* play);
405405
void Actor_GetScreenPos(PlayState* play, Actor* actor, s16* x, s16* y);

include/z64actor.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ typedef struct {
147147
#define ACTOR_FLAG_5 (1 << 5)
148148
#define ACTOR_FLAG_6 (1 << 6)
149149
#define ACTOR_FLAG_7 (1 << 7)
150-
#define ACTOR_FLAG_8 (1 << 8)
150+
// Signals that player has accepted an offer to talk to an actor
151+
// Player will retain this flag until the player is finished talking
152+
// Actor will retain this flag until `Actor_TalkOfferAccepted` is called or manually turned off by the actor
153+
#define ACTOR_FLAG_TALK (1 << 8)
151154
#define ACTOR_FLAG_9 (1 << 9)
152155
#define ACTOR_FLAG_10 (1 << 10)
153156
#define ACTOR_FLAG_ENKUSA_CUT (1 << 11)

src/code/z_actor.c

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,22 +1549,39 @@ s32 func_8002F0C8(Actor* actor, Player* player, s32 flag) {
15491549
return false;
15501550
}
15511551

1552-
u32 Actor_ProcessTalkRequest(Actor* actor, PlayState* play) {
1553-
if (actor->flags & ACTOR_FLAG_8) {
1554-
actor->flags &= ~ACTOR_FLAG_8;
1552+
/**
1553+
* When a given talk offer is accepted, Player will set `ACTOR_FLAG_TALK` for that actor.
1554+
* This function serves to acknowledge that the offer was accepted by Player, and notifies the actor
1555+
* that it should proceed with its own internal processes for handling dialogue.
1556+
*
1557+
* @return true if the talk offer was accepted, false otherwise
1558+
*/
1559+
s32 Actor_TalkOfferAccepted(Actor* actor, PlayState* play) {
1560+
if (actor->flags & ACTOR_FLAG_TALK) {
1561+
actor->flags &= ~ACTOR_FLAG_TALK;
15551562
return true;
15561563
}
15571564

15581565
return false;
15591566
}
15601567

1561-
s32 func_8002F1C4(Actor* actor, PlayState* play, f32 arg2, f32 arg3, u32 exchangeItemId) {
1568+
/**
1569+
* This function covers offering the ability to talk with the player.
1570+
* Passing an exchangeItemId (see `ExchangeItemID`) allows the player to also use the item to initiate the
1571+
* conversation.
1572+
*
1573+
* This function carries a talk exchange offer to the player actor if context allows it (e.g. the player is in range
1574+
* and not busy with certain things).
1575+
*
1576+
* @return true If the player actor is capable of accepting the offer.
1577+
*/
1578+
s32 Actor_OfferTalkExchange(Actor* actor, PlayState* play, f32 xzRange, f32 yRange, u32 exchangeItemId) {
15621579
Player* player = GET_PLAYER(play);
15631580

1564-
if ((player->actor.flags & ACTOR_FLAG_8) || ((exchangeItemId != EXCH_ITEM_NONE) && Player_InCsMode(play)) ||
1581+
if ((player->actor.flags & ACTOR_FLAG_TALK) || ((exchangeItemId != EXCH_ITEM_NONE) && Player_InCsMode(play)) ||
15651582
(!actor->isTargeted &&
1566-
((arg3 < fabsf(actor->yDistToPlayer)) || (player->targetActorDistance < actor->xzDistToPlayer) ||
1567-
(arg2 < actor->xzDistToPlayer)))) {
1583+
((yRange < fabsf(actor->yDistToPlayer)) || (player->targetActorDistance < actor->xzDistToPlayer) ||
1584+
(xzRange < actor->xzDistToPlayer)))) {
15681585
return false;
15691586
}
15701587

@@ -1575,18 +1592,28 @@ s32 func_8002F1C4(Actor* actor, PlayState* play, f32 arg2, f32 arg3, u32 exchang
15751592
return true;
15761593
}
15771594

1578-
s32 func_8002F298(Actor* actor, PlayState* play, f32 arg2, u32 exchangeItemId) {
1579-
return func_8002F1C4(actor, play, arg2, arg2, exchangeItemId);
1595+
/**
1596+
* Offers a talk exchange request within an equilateral cylinder with the radius specified.
1597+
*/
1598+
s32 Actor_OfferTalkExchangeEquiCylinder(Actor* actor, PlayState* play, f32 radius, u32 exchangeItemId) {
1599+
return Actor_OfferTalkExchange(actor, play, radius, radius, exchangeItemId);
15801600
}
15811601

1582-
s32 func_8002F2CC(Actor* actor, PlayState* play, f32 arg2) {
1583-
return func_8002F298(actor, play, arg2, EXCH_ITEM_NONE);
1602+
/**
1603+
* Offers a talk request within an equilateral cylinder with the radius specified.
1604+
*/
1605+
s32 Actor_OfferTalk(Actor* actor, PlayState* play, f32 radius) {
1606+
return Actor_OfferTalkExchangeEquiCylinder(actor, play, radius, EXCH_ITEM_NONE);
15841607
}
15851608

1586-
s32 func_8002F2F4(Actor* actor, PlayState* play) {
1587-
f32 var1 = 50.0f + actor->colChkInfo.cylRadius;
1609+
/**
1610+
* Offers a talk request within an equilateral cylinder whose radius is determined by the actor's collision check
1611+
* cylinder's radius.
1612+
*/
1613+
s32 Actor_OfferTalkNearColChkInfoCylinder(Actor* actor, PlayState* play) {
1614+
f32 cylRadius = 50.0f + actor->colChkInfo.cylRadius;
15881615

1589-
return func_8002F2CC(actor, play, var1);
1616+
return Actor_OfferTalk(actor, play, cylRadius);
15901617
}
15911618

15921619
u32 Actor_TextboxIsClosing(Actor* actor, PlayState* play) {
@@ -3776,7 +3803,7 @@ s32 Npc_UpdateTalking(PlayState* play, Actor* actor, s16* talkState, f32 interac
37763803
s16 x;
37773804
s16 y;
37783805

3779-
if (Actor_ProcessTalkRequest(actor, play)) {
3806+
if (Actor_TalkOfferAccepted(actor, play)) {
37803807
*talkState = NPC_TALK_STATE_TALKING;
37813808
return true;
37823809
}
@@ -3792,7 +3819,7 @@ s32 Npc_UpdateTalking(PlayState* play, Actor* actor, s16* talkState, f32 interac
37923819
return false;
37933820
}
37943821

3795-
if (!func_8002F2CC(actor, play, interactRange)) {
3822+
if (!Actor_OfferTalk(actor, play, interactRange)) {
37963823
return false;
37973824
}
37983825

@@ -5674,7 +5701,7 @@ s32 func_80037D98(PlayState* play, Actor* actor, s16 arg2, s32* arg3) {
56745701
s16 sp2A;
56755702
s16 abs_var;
56765703

5677-
if (Actor_ProcessTalkRequest(actor, play)) {
5704+
if (Actor_TalkOfferAccepted(actor, play)) {
56785705
*arg3 = 1;
56795706
return true;
56805707
}
@@ -5704,11 +5731,11 @@ s32 func_80037D98(PlayState* play, Actor* actor, s16 arg2, s32* arg3) {
57045731
}
57055732

57065733
if (actor->xyzDistToPlayerSq <= SQ(80.0f)) {
5707-
if (func_8002F2CC(actor, play, 80.0f)) {
5734+
if (Actor_OfferTalk(actor, play, 80.0f)) {
57085735
actor->textId = func_80037C30(play, arg2);
57095736
}
57105737
} else {
5711-
if (func_8002F2F4(actor, play)) {
5738+
if (Actor_OfferTalkNearColChkInfoCylinder(actor, play)) {
57125739
actor->textId = func_80037C30(play, arg2);
57135740
}
57145741
}

src/code/z_en_a_keep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ void EnAObj_WaitTalk(EnAObj* this, PlayState* play) {
204204
relYawTowardsPlayer = this->dyna.actor.yawTowardsPlayer - this->dyna.actor.shape.rot.y;
205205
if (ABS(relYawTowardsPlayer) < 0x2800 ||
206206
(this->dyna.actor.params == A_OBJ_SIGNPOST_ARROW && ABS(relYawTowardsPlayer) > 0x5800)) {
207-
if (Actor_ProcessTalkRequest(&this->dyna.actor, play)) {
207+
if (Actor_TalkOfferAccepted(&this->dyna.actor, play)) {
208208
EnAObj_SetupAction(this, EnAObj_WaitFinishedTalking);
209209
} else {
210-
func_8002F2F4(&this->dyna.actor, play);
210+
Actor_OfferTalkNearColChkInfoCylinder(&this->dyna.actor, play);
211211
}
212212
}
213213
}

src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ s32 ArmsHook_CheckForCancel(ArmsHook* this) {
120120
Player* player = (Player*)this->actor.parent;
121121

122122
if (Player_HoldsHookshot(player)) {
123-
if ((player->itemAction != player->heldItemAction) || (player->actor.flags & ACTOR_FLAG_8) ||
123+
if ((player->itemAction != player->heldItemAction) || (player->actor.flags & ACTOR_FLAG_TALK) ||
124124
((player->stateFlags1 & (PLAYER_STATE1_7 | PLAYER_STATE1_26)))) {
125125
this->timer = 0;
126126
ArmsHook_DetachHookFromActor(this);

src/overlays/actors/ovl_Demo_Im/z_demo_im.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,9 +853,9 @@ s32 func_80986A5C(DemoIm* this, PlayState* play) {
853853

854854
s32 func_80986AD0(DemoIm* this, PlayState* play) {
855855
this->actor.flags |= ACTOR_FLAG_0 | ACTOR_FLAG_3;
856-
if (!Actor_ProcessTalkRequest(&this->actor, play)) {
856+
if (!Actor_TalkOfferAccepted(&this->actor, play)) {
857857
this->actor.textId = 0x708E;
858-
func_8002F2F4(&this->actor, play);
858+
Actor_OfferTalkNearColChkInfoCylinder(&this->actor, play);
859859
} else {
860860
return true;
861861
}

src/overlays/actors/ovl_Elf_Msg/z_elf_msg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void ElfMsg_Update(Actor* thisx, PlayState* play) {
149149
ElfMsg* this = (ElfMsg*)thisx;
150150

151151
if (!ElfMsg_KillCheck(this, play)) {
152-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
152+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
153153
if (((this->actor.params >> 8) & 0x3F) != 0x3F) {
154154
Flags_SetSwitch(play, (this->actor.params >> 8) & 0x3F);
155155
}

src/overlays/actors/ovl_Elf_Msg2/z_elf_msg2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void ElfMsg2_WaitForTextClose(ElfMsg2* this, PlayState* play) {
120120
* Runs while Navi text is not up.
121121
*/
122122
void ElfMsg2_WaitForTextRead(ElfMsg2* this, PlayState* play) {
123-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
123+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
124124
ElfMsg2_SetupAction(this, ElfMsg2_WaitForTextClose);
125125
}
126126
}

src/overlays/actors/ovl_En_Ani/z_en_ani.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void EnAni_Destroy(Actor* thisx, PlayState* play) {
9999
s32 EnAni_SetText(EnAni* this, PlayState* play, u16 textId) {
100100
this->actor.textId = textId;
101101
this->unk_2A8 |= 1;
102-
func_8002F2CC(&this->actor, play, 100.0f);
102+
Actor_OfferTalk(&this->actor, play, 100.0f);
103103
return 0;
104104
}
105105

@@ -151,7 +151,7 @@ void func_809B064C(EnAni* this, PlayState* play) {
151151
}
152152

153153
yawDiff = this->actor.yawTowardsPlayer - this->actor.shape.rot.y;
154-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
154+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
155155
if (this->actor.textId == 0x5056) {
156156
EnAni_SetupAction(this, func_809B04F0);
157157
} else if (this->actor.textId == 0x5055) {
@@ -177,7 +177,7 @@ void func_809B07F8(EnAni* this, PlayState* play) {
177177
u16 textId;
178178

179179
yawDiff = this->actor.yawTowardsPlayer - this->actor.shape.rot.y;
180-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
180+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
181181
if (this->actor.textId == 0x5056) {
182182
EnAni_SetupAction(this, func_809B0524);
183183
} else if (this->actor.textId == 0x5055) {

src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ void EnBomBowlMan_WaitAsleep(EnBomBowlMan* this, PlayState* play) {
9898

9999
SkelAnime_Update(&this->skelAnime);
100100

101-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
101+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
102102
this->actionFunc = EnBomBowlMan_TalkAsleep;
103103
} else {
104104
yawDiff = ABS((s16)(this->actor.yawTowardsPlayer - this->actor.shape.rot.y));
105105

106106
if (!(this->actor.xzDistToPlayer > 120.0f) && (yawDiff < 0x4300)) {
107-
func_8002F2CC(&this->actor, play, 120.0f);
107+
Actor_OfferTalk(&this->actor, play, 120.0f);
108108
}
109109
}
110110
}
@@ -177,10 +177,10 @@ void EnBomBowlMan_CheckBeatenDC(EnBomBowlMan* this, PlayState* play) {
177177
void EnBomBowlMan_WaitNotBeatenDC(EnBomBowlMan* this, PlayState* play) {
178178
SkelAnime_Update(&this->skelAnime);
179179

180-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
180+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
181181
this->actionFunc = EnBomBowlMan_TalkNotBeatenDC;
182182
} else {
183-
func_8002F2CC(&this->actor, play, 120.0f);
183+
Actor_OfferTalk(&this->actor, play, 120.0f);
184184
}
185185
}
186186

@@ -265,7 +265,7 @@ void EnBomBowlMan_RunGame(EnBomBowlMan* this, PlayState* play) {
265265
}
266266
this->actionFunc = EnBomBowlMan_HandlePlayChoice;
267267
} else {
268-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
268+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
269269
if (this->minigamePlayStatus == 0) {
270270
this->actionFunc = EnBomBowlMan_HandlePlayChoice;
271271
} else {
@@ -275,7 +275,7 @@ void EnBomBowlMan_RunGame(EnBomBowlMan* this, PlayState* play) {
275275
yawDiff = ABS((s16)(this->actor.yawTowardsPlayer - this->actor.shape.rot.y));
276276

277277
if (!(this->actor.xzDistToPlayer > 120.0f) && (yawDiff < 0x4300)) {
278-
func_8002F2CC(&this->actor, play, 120.0f);
278+
Actor_OfferTalk(&this->actor, play, 120.0f);
279279
}
280280
}
281281
}

src/overlays/actors/ovl_En_Cow/z_en_cow.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,11 @@ void EnCow_CheckForEmptyBottle(EnCow* this, PlayState* play) {
261261
}
262262

263263
void EnCow_Talk(EnCow* this, PlayState* play) {
264-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
264+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
265265
this->actionFunc = EnCow_CheckForEmptyBottle;
266266
} else {
267267
this->actor.flags |= ACTOR_FLAG_16;
268-
func_8002F2CC(&this->actor, play, 170.0f);
268+
Actor_OfferTalk(&this->actor, play, 170.0f);
269269
this->actor.textId = 0x2006;
270270
}
271271

@@ -291,7 +291,7 @@ void EnCow_Idle(EnCow* this, PlayState* play) {
291291
R_EPONAS_SONG_PLAYED = false;
292292
this->actionFunc = EnCow_Talk;
293293
this->actor.flags |= ACTOR_FLAG_16;
294-
func_8002F2CC(&this->actor, play, 170.0f);
294+
Actor_OfferTalk(&this->actor, play, 170.0f);
295295
this->actor.textId = 0x2006;
296296
} else {
297297
this->cowFlags |= COW_FLAG_FAILED_TO_GIVE_MILK;

src/overlays/actors/ovl_En_Cs/z_en_cs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void EnCs_HandleTalking(EnCs* this, PlayState* play) {
235235
this->talkState = 1;
236236
} else if (this->talkState == 1) {
237237
this->talkState = EnCs_GetTalkState(this, play);
238-
} else if (Actor_ProcessTalkRequest(&this->actor, play)) {
238+
} else if (Actor_TalkOfferAccepted(&this->actor, play)) {
239239
if ((this->actor.textId == 0x2022) || ((this->actor.textId != 0x2022) && (this->actor.textId != 0x2028))) {
240240
EnCs_ChangeAnim(this, ENCS_ANIM_3, &this->currentAnimIndex);
241241
}
@@ -253,7 +253,7 @@ void EnCs_HandleTalking(EnCs* this, PlayState* play) {
253253
Actor_GetScreenPos(play, &this->actor, &sp2A, &sp28);
254254

255255
if ((sp2A >= 0) && (sp2A <= 320) && (sp28 >= 0) && (sp28 <= 240) &&
256-
(func_8002F2CC(&this->actor, play, 100.0f))) {
256+
(Actor_OfferTalk(&this->actor, play, 100.0f))) {
257257
this->actor.textId = EnCs_GetTextID(this, play);
258258
}
259259
}

src/overlays/actors/ovl_En_Daiku/z_en_daiku.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,12 @@ void EnDaiku_UpdateText(EnDaiku* this, PlayState* play) {
260260

261261
if (this->talkState == ENDAIKU_STATE_TALKING) {
262262
this->talkState = EnDaiku_UpdateTalking(this, play);
263-
} else if (Actor_ProcessTalkRequest(&this->actor, play)) {
263+
} else if (Actor_TalkOfferAccepted(&this->actor, play)) {
264264
this->talkState = ENDAIKU_STATE_TALKING;
265265
} else {
266266
Actor_GetScreenPos(play, &this->actor, &sp2E, &sp2C);
267267
if (sp2E >= 0 && sp2E <= 320 && sp2C >= 0 && sp2C <= 240 && this->talkState == ENDAIKU_STATE_CAN_TALK &&
268-
func_8002F2CC(&this->actor, play, 100.0f) == 1) {
268+
Actor_OfferTalk(&this->actor, play, 100.0f) == 1) {
269269
if (play->sceneId == SCENE_THIEVES_HIDEOUT) {
270270
if (this->stateFlags & ENDAIKU_STATEFLAG_GERUDODEFEATED) {
271271
freedCount = 0;

src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ void EnDaikuKakariko_HandleTalking(EnDaikuKakariko* this, PlayState* play) {
232232

233233
if (this->talkState == 2) {
234234
this->talkState = EnDaikuKakariko_GetTalkState(this, play);
235-
} else if (Actor_ProcessTalkRequest(&this->actor, play)) {
235+
} else if (Actor_TalkOfferAccepted(&this->actor, play)) {
236236
this->talkState = 2;
237237
} else {
238238
Actor_GetScreenPos(play, &this->actor, &sp26, &sp24);
239239

240240
if ((sp26 >= 0) && (sp26 <= 320) && (sp24 >= 0) && (sp24 <= 240) && (this->talkState == 0) &&
241-
(func_8002F2CC(&this->actor, play, 100.0f) == 1)) {
241+
(Actor_OfferTalk(&this->actor, play, 100.0f) == 1)) {
242242
this->actor.textId = Text_GetFaceReaction(play, maskReactionSets[this->actor.params & 3]);
243243

244244
if (this->actor.textId == 0) {

src/overlays/actors/ovl_En_Diving_Game/z_en_diving_game.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ void func_809EDCB0(EnDivingGame* this, PlayState* play) {
183183
void EnDivingGame_Talk(EnDivingGame* this, PlayState* play) {
184184
SkelAnime_Update(&this->skelAnime);
185185
if (this->state != ENDIVINGGAME_STATE_PLAYING || !EnDivingGame_HasMinigameFinished(this, play)) {
186-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
186+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
187187
if (this->unk_292 != TEXT_STATE_DONE) {
188188
switch (this->state) {
189189
case ENDIVINGGAME_STATE_NOTPLAYING:
@@ -224,7 +224,7 @@ void EnDivingGame_Talk(EnDivingGame* this, PlayState* play) {
224224
break;
225225
}
226226
}
227-
func_8002F2CC(&this->actor, play, 80.0f);
227+
Actor_OfferTalk(&this->actor, play, 80.0f);
228228
}
229229
}
230230
}

src/overlays/actors/ovl_En_Dns/z_en_dns.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ void EnDns_Idle(EnDns* this, PlayState* play) {
341341
Math_SmoothStepToS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 3, 2000, 0);
342342
this->actor.world.rot.y = this->actor.shape.rot.y;
343343

344-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
344+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
345345
this->actionFunc = EnDns_Talk;
346346
} else {
347347
if ((this->collider.base.ocFlags1 & OC1_HIT) || this->actor.isTargeted) {
@@ -350,7 +350,7 @@ void EnDns_Idle(EnDns* this, PlayState* play) {
350350
this->actor.flags &= ~ACTOR_FLAG_16;
351351
}
352352
if (this->actor.xzDistToPlayer < 130.0f) {
353-
func_8002F2F4(&this->actor, play);
353+
Actor_OfferTalkNearColChkInfoCylinder(&this->actor, play);
354354
}
355355
}
356356
}

src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ void EnDntJiji_Cower(EnDntJiji* this, PlayState* play) {
233233
SkelAnime_Update(&this->skelAnime);
234234
Math_SmoothStepToS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 3, 0x1388, 0);
235235
if (frame >= this->endFrame) {
236-
if (Actor_ProcessTalkRequest(&this->actor, play)) {
236+
if (Actor_TalkOfferAccepted(&this->actor, play)) {
237237
this->actionFunc = EnDntJiji_SetupTalk;
238238
} else {
239-
func_8002F2CC(&this->actor, play, 100.0f);
239+
Actor_OfferTalk(&this->actor, play, 100.0f);
240240
}
241241
}
242242
}

0 commit comments

Comments
 (0)