mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Now takes selections into account
This commit is contained in:
parent
bdaec01112
commit
9dc33c659d
@ -39,15 +39,19 @@ _allPossibleInjuries = [];
|
||||
_pain = _x select 3;*/
|
||||
_minDamage = _x select 4;
|
||||
if (_damage >= _minDamage) then {
|
||||
if (_minDamage > _highestPossibleDamage) then {
|
||||
_highestPossibleSpot = _foreachIndex;
|
||||
_highestPossibleDamage = _minDamage;
|
||||
if ("All" in _selections || _selectionName in _selections) then {
|
||||
if (_minDamage > _highestPossibleDamage) then {
|
||||
_highestPossibleSpot = _foreachIndex;
|
||||
_highestPossibleDamage = _minDamage;
|
||||
};
|
||||
_allPossibleInjuries pushback _x;
|
||||
};
|
||||
_allPossibleInjuries pushback _x;
|
||||
};
|
||||
}foreach _allInjuriesForDamageType;
|
||||
|
||||
// No possible wounds available for this damage type or damage amount.
|
||||
if (_highestPossibleSpot < 0) exitwith {
|
||||
|
||||
// It appears we are dealing with an unknown type of damage.
|
||||
if (count _allInjuriesForDamageType == 0) then {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user