Added new setting 'advancedDiagnose'

* Which allows to choose between the old basic- and advanced diagnose actions
This commit is contained in:
ulteq 2016-12-15 14:00:09 +01:00
parent 0de405fe2a
commit 91cbc0e4d4
3 changed files with 15 additions and 1 deletions

View File

@ -52,6 +52,13 @@ class ACE_Settings {
typeName = "BOOL";
value = 1;
};
class GVAR(advancedDiagnose) {
category = CSTRING(Category_Medical);
displayName = CSTRING(AdvancedMedicalSettings_advancedDiagnose_DisplayName);
description = CSTRING(AdvancedMedicalSettings_advancedDiagnose_Description);
typeName = "BOOL";
value = 1;
};
class GVAR(woundReopening) {
category = CSTRING(Category_Medical);
displayName = CSTRING(AdvancedMedicalSettings_enableAdvancedWounds_DisplayName);

View File

@ -2904,6 +2904,12 @@
<Key ID="STR_ACE_Medical_MedicalSettings_advancedMedication_Description">
<English>Enable advanced medication</English>
</Key>
<Key ID="STR_ACE_Medical_MedicalSettings_advancedDiagnose_DisplayName">
<English>Advanced Diagnose</English>
</Key>
<Key ID="STR_ACE_Medical_MedicalSettings_advancedDiagnose_Description">
<English>Enable advanced diagnose</English>
</Key>
<Key ID="STR_ACE_Medical_MedicalSettings_Module_Description">
<English>Provides a medical system for both players and AI.</English>
<Russian>Включает медицинскую систему как для игроков, так и для ботов.</Russian>

View File

@ -187,7 +187,7 @@ class GVAR(Actions) {
requiredMedic = 0;
treatmentTime = 2.5;
items[] = {};
condition = "";
condition = QUOTE(!EGVAR(medical,advancedDiagnose));
callbackSuccess = QFUNC(actionDiagnose);
callbackFailure = "";
callbackProgress = "";
@ -200,6 +200,7 @@ class GVAR(Actions) {
displayName = ECSTRING(medical,Actions_CheckPulse);
displayNameProgress = ECSTRING(medical,Check_Pulse_Content);
allowedSelections[] = {"All"};
condition = QEGVAR(medical,advancedDiagnose);
callbackSuccess = QFUNC(actionCheckPulse);
animationCallerProne = "";
animationCallerSelfProne = "";