From 93491792138c78ca309131467da2eeab26f1c2c7 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Wed, 25 Jul 2018 18:42:53 +0100 Subject: [PATCH] Fix and use hemorrhage stringtable descriptions (#6472) * Fix hemorrhage stringtable descriptions * Use hemorrhage descriptions always --- .../fnc_displayPatientInformation.sqf | 28 ++++++++----------- .../functions/fnc_updateUIInfo.sqf | 28 ++++++++----------- addons/medical_gui/stringtable.xml | 14 +++++----- 3 files changed, 31 insertions(+), 39 deletions(-) diff --git a/addons/medical_gui/functions/fnc_displayPatientInformation.sqf b/addons/medical_gui/functions/fnc_displayPatientInformation.sqf index 643f6c0a94..0bc555abe2 100644 --- a/addons/medical_gui/functions/fnc_displayPatientInformation.sqf +++ b/addons/medical_gui/functions/fnc_displayPatientInformation.sqf @@ -56,24 +56,20 @@ if (_show == 1) then { _genericMessages pushback [localize LSTRING(Status_Bleeding), [1, 0.1, 0.1, 1]]; }; - // Show more information if advancedDiagnose is enabled - if (EGVAR(medical,advancedDiagnose)) then { - switch (GET_HEMORRHAGE(_target)) do { - case 1; - case 2: { - _genericMessages pushBack [LLSTRING(Lost_Blood2), [1, 0.1, 0.1, 1]]; - }; - case 3: { - _genericMessages pushBack [LLSTRING(Lost_Blood3), [1, 0.1, 0.1, 1]]; - }; - case 4: { - _genericMessages pushBack [LLSTRING(Lost_Blood4), [1, 0.1, 0.1, 1]]; - }; - }; - } else { - if (GET_HEMORRHAGE(_target) > 0) then { + // Give a qualitative description of the blood volume lost + switch (GET_HEMORRHAGE(_target)) do { + case 1: { _genericMessages pushBack [LLSTRING(Lost_Blood1), [1, 0.1, 0.1, 1]]; }; + case 2: { + _genericMessages pushBack [LLSTRING(Lost_Blood2), [1, 0.1, 0.1, 1]]; + }; + case 3: { + _genericMessages pushBack [LLSTRING(Lost_Blood3), [1, 0.1, 0.1, 1]]; + }; + case 4: { + _genericMessages pushBack [LLSTRING(Lost_Blood4), [1, 0.1, 0.1, 1]]; + }; }; if (((_target getVariable [QEGVAR(medical,tourniquets), [0,0,0,0,0,0]]) select _selectionN) > 0) then { diff --git a/addons/medical_gui/functions/fnc_updateUIInfo.sqf b/addons/medical_gui/functions/fnc_updateUIInfo.sqf index 3b88abf5b9..dc887e5baf 100644 --- a/addons/medical_gui/functions/fnc_updateUIInfo.sqf +++ b/addons/medical_gui/functions/fnc_updateUIInfo.sqf @@ -31,24 +31,20 @@ if IS_BLEEDING(_target) then { _genericMessages pushBack [localize ELSTRING(medical,Status_Bleeding), [1, 0.1, 0.1, 1]]; }; -// Show more information if advancedDiagnose is enabled -if (EGVAR(medical,advancedDiagnose)) then { - switch (GET_HEMORRHAGE(_target)) do { - case 1; - case 2: { - _genericMessages pushBack [LLSTRING(Lost_Blood2), [1, 0.1, 0.1, 1]]; - }; - case 3: { - _genericMessages pushBack [LLSTRING(Lost_Blood3), [1, 0.1, 0.1, 1]]; - }; - case 4: { - _genericMessages pushBack [LLSTRING(Lost_Blood4), [1, 0.1, 0.1, 1]]; - }; - }; -} else { - if (GET_HEMORRHAGE(_target) > 0) then { +// Give a qualitative description of the blood volume lost +switch (GET_HEMORRHAGE(_target)) do { + case 1: { _genericMessages pushBack [LLSTRING(Lost_Blood1), [1, 0.1, 0.1, 1]]; }; + case 2: { + _genericMessages pushBack [LLSTRING(Lost_Blood2), [1, 0.1, 0.1, 1]]; + }; + case 3: { + _genericMessages pushBack [LLSTRING(Lost_Blood3), [1, 0.1, 0.1, 1]]; + }; + case 4: { + _genericMessages pushBack [LLSTRING(Lost_Blood4), [1, 0.1, 0.1, 1]]; + }; }; if (((_target getVariable [QEGVAR(medical,tourniquets), [0, 0, 0, 0, 0, 0]]) select _selectionN) > 0) then { diff --git a/addons/medical_gui/stringtable.xml b/addons/medical_gui/stringtable.xml index 9ec190173e..7768beed01 100644 --- a/addons/medical_gui/stringtable.xml +++ b/addons/medical_gui/stringtable.xml @@ -845,10 +845,13 @@ 大量失血 - Lost a lot of Blood + Lost some blood + + + Lost a lot of blood Hat eine große Menge Blut verloren Большая кровопотеря Mucha sangre perdida @@ -863,14 +866,11 @@ 大量失血中 大量失血中 - - Lost some blood - - Lost a lot of blood + Lost a large amount of blood - Lost a large amount of blood + Lost a fatal amount of blood Tourniquet [CAT]