NEW_SUPPRESSION_CODE:

- use effective experience level when calculating base suppression tolerance, so nearby squad leaders may raise effective level and help fight suppression
- if NEARBY_FRIENDLIES_AFFECT_TOLERANCE option is active, nearby friends can help increase suppression tolerance, up to +-3 points added depending on distance, only for merc bodytypes

CheckStatusNearbyFriendlies: minor code improvements, fixed variable names, use INT16 for calculation

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9182 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-10-15 08:44:57 +00:00
parent 7978ad77f3
commit 6d14282538
4 changed files with 96 additions and 35 deletions
+1
View File
@@ -1871,6 +1871,7 @@ public:
UINT8 ShockLevelPercent(void);
BOOLEAN TakenLargeHit(void);
BOOLEAN IsCowering(void);
BOOLEAN IsUnconscious(void);
BOOLEAN IsGivingAid(void);
// sevenfm: for player mercs