ready for dedi -- improvements to resupply, triageIcons too
This commit is contained in:
@@ -15,9 +15,16 @@ private _existingRecord = _subjectRecords getOrDefault [_recordTitle, diaryRecor
|
||||
|
||||
if (!isNull _existingRecord) then {
|
||||
player setDiaryRecordText [[_subjectID, _existingRecord], [_recordTitle, _recordText, _recordIcon]];
|
||||
if (DEBUG_ENABLED) then {
|
||||
systemChat format ["Updated diary record: %1", _recordTitle];
|
||||
};
|
||||
|
||||
[
|
||||
LEVEL_DEBUG,
|
||||
QUOTE(COMPONENT),
|
||||
format ["Updated diary record: %1", _recordTitle],
|
||||
[
|
||||
["subjectID", _subjectID],
|
||||
["recordTitle", _recordTitle]
|
||||
]
|
||||
] call EFUNC(common,log);
|
||||
} else {
|
||||
private _new = player createDiaryRecord [
|
||||
_subjectID,
|
||||
@@ -29,4 +36,14 @@ if (!isNull _existingRecord) then {
|
||||
];
|
||||
_subjectRecords set [_recordTitle, _new];
|
||||
GVAR(diaryRecords) set [_subjectID, _subjectRecords];
|
||||
|
||||
[
|
||||
LEVEL_DEBUG,
|
||||
QUOTE(COMPONENT),
|
||||
format ["Created diary record: %1", _recordTitle],
|
||||
[
|
||||
["subjectID", _subjectID],
|
||||
["recordTitle", _recordTitle]
|
||||
]
|
||||
] call EFUNC(common,log);
|
||||
};
|
||||
@@ -71,7 +71,8 @@ if (_shouldProcessChildCfgs) then {
|
||||
[
|
||||
LEVEL_TRACE,
|
||||
QUOTE(COMPONENT),
|
||||
"Processing child elements for battalion element %1"
|
||||
"Processing child elements for battalion element %1",
|
||||
[]
|
||||
] call EFUNC(common,log);
|
||||
|
||||
[_battalionElement, {
|
||||
|
||||
Reference in New Issue
Block a user