Decompile aiIfChrHealthLessThan

This commit is contained in:
Ryan Dwyer
2020-02-16 12:30:54 +10:00
parent 5997ee67cb
commit d66b050f34
5 changed files with 35 additions and 100 deletions
+4 -4
View File
@@ -1127,18 +1127,18 @@
label,
/**
* Checks if the chr's health is less than the given value.
* Checks if the chr's health is greater than the given value.
*/
#define if_chr_health_lt(chr, health, label) \
#define if_chr_health_gt(chr, health, label) \
mkshort(0x0081), \
chr, \
health, \
label,
/**
* Checks if the chr's health is greater than the given value.
* Checks if the chr's health is less than the given value.
*/
#define if_chr_health_gt(chr, health, label) \
#define if_chr_health_lt(chr, health, label) \
mkshort(0x0082), \
chr, \
health, \
+2 -2
View File
@@ -131,8 +131,8 @@
/*0x007e*/ bool aiIfNumArghsGreaterThan(void);
/*0x007f*/ bool aiIfNumCloseArghsLessThan(void);
/*0x0080*/ bool aiIfNumCloseArghsGreaterThan(void);
/*0x0081*/ bool aiIfChrHealthLessThan(void);
/*0x0082*/ bool aiIfChrHealthGreaterThan(void);
/*0x0081*/ bool aiIfChrHealthGreaterThan(void);
/*0x0082*/ bool aiIfChrHealthLessThan(void);
/*0x0083*/ bool aiIfInjured(void);
/*0x0084*/ bool aiSetMorale(void);
/*0x0085*/ bool aiAddMorale(void);
+1 -1
View File
@@ -1023,7 +1023,7 @@ struct player {
/*0x00d0*/ u32 unk00d0;
/*0x00d4*/ u32 unk00d4;
/*0x00d8*/ bool isdead;
/*0x00dc*/ u32 unk00dc;
/*0x00dc*/ f32 bondhealth;
/*0x00e0*/ u32 unk00e0;
/*0x00e4*/ u32 unk00e4;
/*0x00e8*/ u32 unk00e8;