mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-12 05:27:07 -04:00
Purge ExchangeItemID enum (#1026)
* Purge ExchangeItemID enum * Add stff to namefixer * Rename FISHING_ROD
This commit is contained in:
@@ -189,7 +189,7 @@ void* gItemIcons[] = {
|
||||
0x08059000, // ITEM_WALLET_DEFAULT
|
||||
0x0805A000, // ITEM_WALLET_ADULT
|
||||
0x0805B000, // ITEM_WALLET_GIANT
|
||||
0x0805C000, // ITEM_FISHING_POLE
|
||||
0x0805C000, // ITEM_FISHING_ROD
|
||||
0x0805D000, // ITEM_REMAINS_ODOLWA
|
||||
0x0805E000, // ITEM_REMAINS_GOHT
|
||||
0x0805F000, // ITEM_REMAINS_GYORG
|
||||
|
||||
+4
-4
@@ -1850,10 +1850,10 @@ s32 Actor_ProcessTalkRequest(Actor* actor, GameState* gameState) {
|
||||
|
||||
// Actor_PickUpExchange? Seems to be called with exchangeItemId -1 if the same actor used Actor_PickUp
|
||||
// This function is also used to toggle the "Speak" action on the A button
|
||||
s32 func_800B8500(Actor* actor, PlayState* play, f32 xzRange, f32 yRange, s32 exchangeItemId) {
|
||||
s32 func_800B8500(Actor* actor, PlayState* play, f32 xzRange, f32 yRange, PlayerActionParam exchangeItemId) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if ((player->actor.flags & ACTOR_FLAG_100) || ((exchangeItemId > EXCH_ITEM_NONE) && Player_InCsMode(play)) ||
|
||||
if ((player->actor.flags & ACTOR_FLAG_100) || ((exchangeItemId > PLAYER_AP_NONE) && Player_InCsMode(play)) ||
|
||||
(!actor->isTargeted &&
|
||||
((fabsf(actor->playerHeightRel) > fabsf(yRange)) || ((actor->xzDistToPlayer > player->targetActorDistance)) ||
|
||||
(xzRange < actor->xzDistToPlayer)))) {
|
||||
@@ -1868,12 +1868,12 @@ s32 func_800B8500(Actor* actor, PlayState* play, f32 xzRange, f32 yRange, s32 ex
|
||||
return true;
|
||||
}
|
||||
|
||||
s32 func_800B85E0(Actor* actor, PlayState* play, f32 radius, s32 exchangeItemId) {
|
||||
s32 func_800B85E0(Actor* actor, PlayState* play, f32 radius, PlayerActionParam exchangeItemId) {
|
||||
return func_800B8500(actor, play, radius, radius, exchangeItemId);
|
||||
}
|
||||
|
||||
s32 func_800B8614(Actor* actor, PlayState* play, f32 radius) {
|
||||
return func_800B85E0(actor, play, radius, EXCH_ITEM_NONE);
|
||||
return func_800B85E0(actor, play, radius, PLAYER_AP_NONE);
|
||||
}
|
||||
|
||||
s32 func_800B863C(Actor* actor, PlayState* play) {
|
||||
|
||||
@@ -774,11 +774,11 @@ s32 func_801240DC(Player* player) {
|
||||
}
|
||||
|
||||
s32 func_80124110(Player* player, s32 actionParam) {
|
||||
s32 temp_v0 = actionParam - PLAYER_AP_FISHING_POLE;
|
||||
s32 temp_v0 = actionParam - PLAYER_AP_FISHING_ROD;
|
||||
|
||||
if (player->transformation != PLAYER_FORM_GORON) {
|
||||
if (((actionParam - PLAYER_AP_FISHING_POLE) > (PLAYER_AP_FISHING_POLE - PLAYER_AP_FISHING_POLE)) &&
|
||||
((actionParam - PLAYER_AP_FISHING_POLE) < (PLAYER_AP_SWORD_GREAT_FAIRY - PLAYER_AP_FISHING_POLE))) {
|
||||
if (((actionParam - PLAYER_AP_FISHING_ROD) > (PLAYER_AP_FISHING_ROD - PLAYER_AP_FISHING_ROD)) &&
|
||||
((actionParam - PLAYER_AP_FISHING_ROD) < (PLAYER_AP_SWORD_GREAT_FAIRY - PLAYER_AP_FISHING_ROD))) {
|
||||
return temp_v0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user