Discover and decompile aiIfChrTarget

This commit is contained in:
Ryan Dwyer
2019-11-30 16:40:02 +10:00
parent 083b8e3250
commit fdd2812178
5 changed files with 46 additions and 104 deletions
+6 -3
View File
@@ -1083,12 +1083,15 @@
mkshort(0x0107), \
label,
// Used only in globals.s with CHR_SELF, CHR_P1P2, FALSE
#define cmd0108_if_something(chr1, chr2, bool, label) \
/**
* If anytarget is false, check if chr1's target is chr2.
* If anytarget is true, check if chr1 has any target at all.
*/
#define if_chr_target_eq(chr1, chr2, anytarget, label) \
mkshort(0x0108), \
chr1, \
chr2, \
bool, \
anytarget, \
label,
#define set_chr_team(chr, team) \
+1 -1
View File
@@ -264,7 +264,7 @@
/*0x0105*/ bool ai0105(void);
/*0x0106*/ bool aiSetTarget(void);
/*0x0107*/ bool aiIfPresetsTargetIsNotMyTarget(void);
/*0x0108*/ bool ai0108(void);
/*0x0108*/ bool aiIfChrTarget(void);
/*0x0109*/ bool ai0109(void);
/*0x010a*/ bool ai010a(void);
/*0x010b*/ bool aiChrSetTeam(void);