mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix bad var names
This commit is contained in:
parent
1aebae32c5
commit
9e1a9b9af9
@ -45,7 +45,7 @@ if (!(_adjustment isEqualTo [])) then {
|
||||
|
||||
// Handle continuous pain reduction
|
||||
private _pain = _unit getVariable [QGVAR(pain), 0];
|
||||
_unit setVariable [QGVAR(pain), 0 max (_pain - _deltaT / PAIN_FADE_TIME), _syncValues];
|
||||
_unit setVariable [QGVAR(pain), 0 max (_pain - _deltaT / PAIN_FADE_TIME), _syncValue];
|
||||
|
||||
// Handles simple medication
|
||||
if (!GVAR(advancedMedication)) then {
|
||||
|
@ -17,7 +17,7 @@
|
||||
params ["_litterClass", "_position", "_direction"];
|
||||
TRACE_3("params",_litterClass,_position,_direction);
|
||||
|
||||
//IGNORE_PRIVATE_WARNING(_values);
|
||||
//IGNORE_PRIVATE_WARNING ["_values"];
|
||||
|
||||
if (isNil QGVAR(allCreatedLitter)) then {
|
||||
GVAR(allCreatedLitter) = [];
|
||||
|
@ -62,7 +62,7 @@ private _allUsedMedication = _target getVariable [QEGVAR(medical,allUsedMedicati
|
||||
_target setVariable [_x select 0, nil];
|
||||
} forEach _allUsedMedication;
|
||||
|
||||
[_unit, false] call EFUNC(medical_engine,setLimping);
|
||||
[_target, false] call EFUNC(medical_engine,setLimping);
|
||||
|
||||
// Resetting damage
|
||||
_target setDamage 0;
|
||||
|
@ -76,7 +76,7 @@ if (alive _target) then {
|
||||
private _heartRate = _target getVariable [QEGVAR(medical,heartRate), 80];
|
||||
private _hrIncrease = [_hrIncreaseLow, _hrIncreaseNorm, _hrIncreaseHigh] select (floor ((0 max _heartRate min 110) / 55));
|
||||
_hrIncrease params ["_minIncrease", "_maxIncrease"];
|
||||
_heartRateChange = _minIncrease + random (_maxIncrease - _minIncrease);
|
||||
private _heartRateChange = _minIncrease + random (_maxIncrease - _minIncrease);
|
||||
|
||||
// Adjust the heart rate based upon config entry
|
||||
if (_heartRateChange != 0) then {
|
||||
|
@ -31,7 +31,7 @@ _bodyPartDamage = _bodyPartDamage apply {
|
||||
_target setVariable [QEGVAR(medical,bodyPartDamage), _bodyPartDamage, true];
|
||||
|
||||
if ((_bodyPartDamage select 4) < 0.3 && {(_bodyPartDamage select 5) < 0.3}) then {
|
||||
[_unit, false] call EFUNC(medical_engine,setLimping);
|
||||
[_target, false] call EFUNC(medical_engine,setLimping);
|
||||
};
|
||||
|
||||
// Resetting damage
|
||||
|
Loading…
Reference in New Issue
Block a user