Decompile aiIfSafetyLessThan

This commit is contained in:
Ryan Dwyer
2020-02-15 10:56:06 +10:00
parent 3bb1e43050
commit 354da43bd0
4 changed files with 57 additions and 122 deletions
+12 -2
View File
@@ -2530,8 +2530,18 @@
distance / 10, \
label,
// If risk less than?
#define cmd0129(score, label) \
/**
* Calculates a safety score based on several factors and compares it to the
* given value.
*
* The safety score starts at 6.
* Subtract 1 point if current chr has been shot.
* Subtract 2 points if there are no other chrs nearby.
* Subtract 1 point if there are 1 or 2 chrs nearby.
*
* So maximum safety is 6 and minimum safety is 3.
*/
#define if_calculated_safety_lt(score, label) \
mkshort(0x0129), \
score, \
label,
+1 -1
View File
@@ -297,7 +297,7 @@
/*0x0126*/ bool aiIfPlayerUsingCmpOrAr34(void);
/*0x0127*/ bool ai0127(void);
/*0x0128*/ bool ai0128(void);
/*0x0129*/ bool ai0129(void);
/*0x0129*/ bool aiIfSafetyLessThan(void);
/*0x012a*/ bool aiIfTargetMovingSlowly(void);
/*0x012b*/ bool aiIfTargetMovingCloser(void);
/*0x012c*/ bool aiIfTargetMovingAway(void);