mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#2672 - Use ACE_gameTime for triage card
This commit is contained in:
parent
ea01db4030
commit
b0b755720c
@ -29,7 +29,7 @@ _amount = 1;
|
|||||||
private "_info";
|
private "_info";
|
||||||
_info = _log select _foreachIndex;
|
_info = _log select _foreachIndex;
|
||||||
_info set [1,(_info select 1) + 1];
|
_info set [1,(_info select 1) + 1];
|
||||||
_info set [2, ACE_time];
|
_info set [2, ACE_gameTime];
|
||||||
_log set [_foreachIndex, _info];
|
_log set [_foreachIndex, _info];
|
||||||
|
|
||||||
_amount = (_info select 1);
|
_amount = (_info select 1);
|
||||||
@ -38,7 +38,7 @@ _amount = 1;
|
|||||||
} foreach _log;
|
} foreach _log;
|
||||||
|
|
||||||
if (!_inList) then {
|
if (!_inList) then {
|
||||||
_log pushback [_newItem, 1, ACE_time];
|
_log pushback [_newItem, 1, ACE_gameTime];
|
||||||
};
|
};
|
||||||
_unit setvariable [QGVAR(triageCard), _log, true];
|
_unit setvariable [QGVAR(triageCard), _log, true];
|
||||||
["Medical_onItemAddedToTriageCard", [_unit, _newItem, _amount]] call EFUNC(common,localEvent);
|
["Medical_onItemAddedToTriageCard", [_unit, _newItem, _amount]] call EFUNC(common,localEvent);
|
||||||
|
@ -75,7 +75,7 @@ if (_name isEqualTo "triage") exitwith {
|
|||||||
_message = localize _message;
|
_message = localize _message;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
_triageCardTexts pushback format["%1x - %2 (%3m)", _amount, _message, round((ACE_time - _time) / 60)];
|
_triageCardTexts pushback format["%1x - %2 (%3m)", _amount, _message, round((ACE_gameTime - _time) / 60)];
|
||||||
nil;
|
nil;
|
||||||
} count _log;
|
} count _log;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user