Decompile roomIsActive and discover if_room_onscreen AI command

This commit is contained in:
Ryan Dwyer
2020-02-11 18:40:19 +10:00
parent 48ee8a2f13
commit 05d51b7883
13 changed files with 42 additions and 55 deletions
+8 -3
View File
@@ -609,10 +609,15 @@
u1, \
label,
// Used by CIA guards in chicago
#define cmd0049(pad, label) \
/**
* Checks if a room is visible.
*
* If the room argument is 10,000 or more than it will subtract 10,000, treat
* it as a pad number, and use the room that the pad is in.
*/
#define if_room_onscreen(room, label) \
mkshort(0x0049), \
mkshort(pad), \
mkshort(room), \
label,
#define if_chr_in_view(label) \
+3 -2
View File
@@ -1544,8 +1544,9 @@
#define RACE_EYESPY 3
#define RACE_ROBOT 4
#define ROOMFLAG_00004000 0x00004000
#define ROOMFLAG_00008000 0x00008000
#define ROOMFLAG_ACTIVE 0x0004
#define ROOMFLAG_4000 0x4000
#define ROOMFLAG_8000 0x8000
#define SAVEFILEFLAG_USED_TRANSFERPAK 0x23
#define SAVEFILEFLAG_CI_TOUR_DONE 0x24
+1 -1
View File
@@ -76,7 +76,7 @@
/*0x0046*/ bool aiIfNeverBeenOnScreen(void);
/*0x0047*/ bool ai0047(void);
/*0x0048*/ bool ai0048(void);
/*0x0049*/ bool ai0049(void);
/*0x0049*/ bool aiIfRoomActive(void);
/*0x004a*/ bool ai004a(void);
/*0x004b*/ bool aiIfNearMiss(void);
/*0x004c*/ bool aiIfSeesSuspiciousItem(void);
+1 -1
View File
@@ -44,7 +44,7 @@ u32 func0f15d4a8(void);
u32 func0f15d570(void);
u32 func0f15d63c(void);
u32 func0f15d6c4(void);
u32 func0f15d6e8(u32 arg0);
bool roomIsActive(s32 room_id);
u32 func0f15d744(void);
u32 func0f15d7a0(void);
u32 func0f15d808(void);
+1 -1
View File
@@ -764,7 +764,7 @@ extern u32 var800a491c;
extern u32 var800a4920;
extern u32 var800a4924;
extern struct room *g_RoomPtrs;
extern u32 var800a492c;
extern u8 *g_MpRoomVisibility;
extern u32 var800a4930;
extern u32 var800a4bec;
extern u32 var800a4bf0;