Skip to content

Commit

Permalink
Corrected issue with checking array equality.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibso29 committed Sep 8, 2020
1 parent df896e7 commit ed27980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/medical_status/functions/fnc_isInStableCondition.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ if (EGVAR(medical_treatment,allowPainPAK) == 0 && { IS_IN_PAIN(_unit) }) exitWit
if (EGVAR(medical_treatment,allowFracturesPAK) == 0 && { !(GET_FRACTURES(_unit) isEqualTo []) }) exitWith {false};

// Require at least bandaged wounds.
if (EGVAR(medical_treatment,requiredWoundStatePAK) >= 1 && { !(GET_OPEN_WOUNDS(_unit) isEqualTo []) }) exitWith {false};
if (EGVAR(medical_treatment,requiredWoundStatePAK) == 1 && { !(count GET_OPEN_WOUNDS(_unit) == (count GET_BANDAGED_WOUNDS(_unit) + count GET_STITCHED_WOUNDS(_unit))) }) exitWith {false};

// Require stitched wounds.
if (EGVAR(medical_treatment,requiredWoundStatePAK) == 2 && { !(GET_BANDAGED_WOUNDS(_unit) isEqualTo []) }) exitWith {false};
if (EGVAR(medical_treatment,requiredWoundStatePAK) == 2 && { !(count GET_OPEN_WOUNDS(_unit) == count GET_STITCHED_WOUNDS(_unit)) }) exitWith {false};

true

0 comments on commit ed27980

Please sign in to comment.