Fix bad var names

This commit is contained in:
PabstMirror 2017-05-14 15:14:22 -05:00
parent 1aebae32c5
commit 9e1a9b9af9
5 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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) = [];

View File

@ -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;

View File

@ -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 {

View File

@ -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