mirror of
https://github.com/SeekyCt/spm-decomp.git
synced 2024-11-23 13:29:42 +00:00
Correct danCheckEnemyInMapBbox
This commit is contained in:
parent
5664aff0b4
commit
6a170403f6
@ -5595,7 +5595,7 @@ global:
|
||||
0x80c834e8: danCountdownDone
|
||||
0x80c834f8: evt_dan_start_countdown
|
||||
0x80c83528: danCheckKeyInMapBbox
|
||||
0x80c83618: danCheckKeyEnemyInMapBbox
|
||||
0x80c83618: danCheckEnemyInMapBbox
|
||||
0x80c83744: evt_dan_handle_key_failsafe
|
||||
0x80c8387c: evt_dan_handle_chest_room_dokans_and_doors
|
||||
0x80c83928: evt_dan_get_chest_room_item
|
||||
|
@ -662,7 +662,7 @@ bool danCheckKeyInMapBbox()
|
||||
return false;
|
||||
}
|
||||
|
||||
bool danCheckKeyEnemyInMapBbox()
|
||||
bool danCheckEnemyInMapBbox()
|
||||
{
|
||||
// Get the enemy list
|
||||
NPCWork * npcWp = npcGetWorkPtr();
|
||||
@ -680,7 +680,7 @@ bool danCheckKeyEnemyInMapBbox()
|
||||
min.y += 5.0f;
|
||||
min.z += 5.0f;
|
||||
|
||||
// Check whether any NPC is an enemy with the key within valid coordinates
|
||||
// Check whether any NPC is within valid coordinates
|
||||
s32 npcCount = npcWp->num;
|
||||
s32 i;
|
||||
for (i = 0; i < npcCount; i++, npc++)
|
||||
@ -710,7 +710,7 @@ s32 evt_dan_handle_key_failsafe(EvtEntry * entry, bool isFirstCall)
|
||||
|
||||
// Check whether the key exists anywhere
|
||||
if (
|
||||
!danCheckKeyEnemyInMapBbox() && !danCheckKeyInMapBbox() &&
|
||||
!danCheckEnemyInMapBbox() && !danCheckKeyInMapBbox() &&
|
||||
!pouchCheckHaveItem(ITEM_ID_KEY_DAN_KEY) && !pouchCheckHaveItem(ITEM_ID_KEY_URA_DAN_KEY) &&
|
||||
!itemCheckForId(ITEM_ID_KEY_DAN_KEY) && !itemCheckForId(ITEM_ID_KEY_URA_DAN_KEY)
|
||||
)
|
||||
|
@ -206,9 +206,9 @@ EVT_DECLARE_USER_FUNC(evt_dan_start_countdown, 0)
|
||||
bool danCheckKeyInMapBbox();
|
||||
|
||||
/*
|
||||
Returns whether an enemy holding the key exists within the map boundaries
|
||||
Returns whether any enemy exists within the map boundaries
|
||||
*/
|
||||
bool danCheckKeyEnemyInMapBbox();
|
||||
bool danCheckEnemyInMapBbox();
|
||||
|
||||
/*
|
||||
user_func that runs endlessly in a parallel script to spawn the key at the door
|
||||
|
@ -696,7 +696,7 @@
|
||||
1,1,3dbec:danCountdownDone
|
||||
1,1,3dbfc:evt_dan_start_countdown
|
||||
1,1,3dc2c:danCheckKeyInMapBbox
|
||||
1,1,3dd1c:danCheckKeyEnemyInMapBbox
|
||||
1,1,3dd1c:danCheckEnemyInMapBbox
|
||||
1,1,3de48:evt_dan_handle_key_failsafe
|
||||
1,1,3df80:evt_dan_handle_chest_room_dokans_and_doors
|
||||
1,1,3e02c:evt_dan_get_chest_room_item
|
||||
|
@ -400,7 +400,7 @@
|
||||
1,1,3d438:danCountdownDone
|
||||
1,1,3d448:evt_dan_start_countdown
|
||||
1,1,3d478:danCheckKeyInMapBbox
|
||||
1,1,3d568:danCheckKeyEnemyInMapBbox
|
||||
1,1,3d568:danCheckEnemyInMapBbox
|
||||
1,1,3d694:evt_dan_handle_key_failsafe
|
||||
1,1,3d7cc:evt_dan_handle_chest_room_dokans_and_doors
|
||||
1,1,3d878:evt_dan_get_chest_room_item
|
||||
|
@ -400,7 +400,7 @@
|
||||
1,1,3d438:danCountdownDone
|
||||
1,1,3d448:evt_dan_start_countdown
|
||||
1,1,3d478:danCheckKeyInMapBbox
|
||||
1,1,3d568:danCheckKeyEnemyInMapBbox
|
||||
1,1,3d568:danCheckEnemyInMapBbox
|
||||
1,1,3d694:evt_dan_handle_key_failsafe
|
||||
1,1,3d7cc:evt_dan_handle_chest_room_dokans_and_doors
|
||||
1,1,3d878:evt_dan_get_chest_room_item
|
||||
|
@ -390,7 +390,7 @@
|
||||
1,1,3dd0c:danCountdownDone
|
||||
1,1,3dd1c:evt_dan_start_countdown
|
||||
1,1,3dd4c:danCheckKeyInMapBbox
|
||||
1,1,3de3c:danCheckKeyEnemyInMapBbox
|
||||
1,1,3de3c:danCheckEnemyInMapBbox
|
||||
1,1,3df68:evt_dan_handle_key_failsafe
|
||||
1,1,3e0a0:evt_dan_handle_chest_room_dokans_and_doors
|
||||
1,1,3e14c:evt_dan_get_chest_room_item
|
||||
|
@ -400,7 +400,7 @@
|
||||
1,1,3d438:danCountdownDone
|
||||
1,1,3d448:evt_dan_start_countdown
|
||||
1,1,3d478:danCheckKeyInMapBbox
|
||||
1,1,3d568:danCheckKeyEnemyInMapBbox
|
||||
1,1,3d568:danCheckEnemyInMapBbox
|
||||
1,1,3d694:evt_dan_handle_key_failsafe
|
||||
1,1,3d7cc:evt_dan_handle_chest_room_dokans_and_doors
|
||||
1,1,3d878:evt_dan_get_chest_room_item
|
||||
|
@ -400,7 +400,7 @@
|
||||
1,1,3d438:danCountdownDone
|
||||
1,1,3d448:evt_dan_start_countdown
|
||||
1,1,3d478:danCheckKeyInMapBbox
|
||||
1,1,3d568:danCheckKeyEnemyInMapBbox
|
||||
1,1,3d568:danCheckEnemyInMapBbox
|
||||
1,1,3d694:evt_dan_handle_key_failsafe
|
||||
1,1,3d7cc:evt_dan_handle_chest_room_dokans_and_doors
|
||||
1,1,3d878:evt_dan_get_chest_room_item
|
||||
|
@ -400,7 +400,7 @@
|
||||
1,1,3d494:danCountdownDone
|
||||
1,1,3d4a4:evt_dan_start_countdown
|
||||
1,1,3d4d4:danCheckKeyInMapBbox
|
||||
1,1,3d5c4:danCheckKeyEnemyInMapBbox
|
||||
1,1,3d5c4:danCheckEnemyInMapBbox
|
||||
1,1,3d6f0:evt_dan_handle_key_failsafe
|
||||
1,1,3d828:evt_dan_handle_chest_room_dokans_and_doors
|
||||
1,1,3d8d4:evt_dan_get_chest_room_item
|
||||
|
Loading…
Reference in New Issue
Block a user