Medical Treatment - Settings to limit IVs to certain locations (#8116)

* Settings to limit IVs to certain locations

* Changed to one setting

* Reworded settings for consistency
This commit is contained in:
pterolatypus 2021-02-27 17:06:37 +00:00 committed by GitHub
parent 75f7ed7532
commit b2da1792e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -150,6 +150,7 @@ class GVAR(actions) {
medicRequired = QGVAR(medicIV);
treatmentTime = QGVAR(treatmentTimeIV);
items[] = {"ACE_bloodIV"};
treatmentLocations = QGVAR(locationIV);
condition = "";
callbackSuccess = QFUNC(ivBag);
animationMedic = "AinvPknlMstpSnonWnonDnon_medic1";

View File

@ -224,6 +224,15 @@
true
] call CBA_fnc_addSetting;
[
QGVAR(locationIV),
"LIST",
[LSTRING(LocationIV_DisplayName), LSTRING(LocationIV_Description)],
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 0],
1
] call CBA_fnc_addSetting;
[
QGVAR(allowSelfIV),
"LIST",

View File

@ -671,6 +671,12 @@
<Czech>Úroveň výcviku nutná pro IV transfuzi.</Czech>
<Russian>Уровень навыка требуемый для переливания крови IV группы.</Russian>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LocationIV_DisplayName">
<English>Locations IV Transfusion</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LocationIV_Description">
<English>Controls where IV transfusions can be performed.</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_ConvertItems_DisplayName">
<English>Convert Vanilla Items</English>
<German>Standard Arma-Equipment in ACE-Items umwandeln</German>