mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Removed unused variables
This commit is contained in:
parent
082ab5155e
commit
51906e341d
@ -52,10 +52,10 @@ _allPossibleInjuries = [];
|
||||
|
||||
// Check if the damage is higher as the min damage for the specific injury
|
||||
if (_damage >= _minDamage && {_damage <= _maxDamage || _maxDamage < 0}) then {
|
||||
_classType = _x select 0;
|
||||
//_classType = _x select 0;
|
||||
_selections = _x select 1;
|
||||
_bloodLoss = _x select 2;
|
||||
_pain = _x select 3;
|
||||
//_bloodLoss = _x select 2;
|
||||
//_pain = _x select 3;
|
||||
|
||||
// Check if the injury can be applied to the given selection name
|
||||
if ("All" in _selections || _selectionName in _selections) then {
|
||||
@ -73,9 +73,7 @@ _allPossibleInjuries = [];
|
||||
}foreach _allInjuriesForDamageType;
|
||||
|
||||
// No possible wounds available for this damage type or damage amount.
|
||||
if (_highestPossibleSpot < 0) exitwith {
|
||||
|
||||
};
|
||||
if (_highestPossibleSpot < 0) exitwith {};
|
||||
|
||||
// Administration for open wounds and ids
|
||||
_openWounds = _unit getvariable[QGVAR(openWounds), []];
|
||||
@ -125,7 +123,7 @@ _woundsCreated = [];
|
||||
_painToAdd = _painToAdd + (_toAddInjury select 3);
|
||||
};
|
||||
};
|
||||
}foreach (_injuryTypeInfo select 0);
|
||||
}foreach (_injuryTypeInfo select 0); // foreach damage thresholds
|
||||
|
||||
_unit setvariable [QGVAR(openWounds), _openWounds, !USE_WOUND_EVENT_SYNC];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user