Add self stitching setting (#7134)

This commit is contained in:
Josuan Albin 2019-08-12 21:05:59 +02:00 committed by SilentSpike
parent 187bd6f698
commit df8814e344
3 changed files with 18 additions and 1 deletions

View File

@ -287,7 +287,7 @@ class GVAR(actions) {
category = "advanced";
items[] = {"ACE_surgicalKit"};
treatmentLocations = QGVAR(locationSurgicalKit);
allowSelfTreatment = 0;
allowSelfTreatment = QGVAR(allowSelfStitch);
medicRequired = QGVAR(medicSurgicalKit);
treatmentTime = QFUNC(getStitchTime);
condition = QFUNC(canStitch);

View File

@ -156,6 +156,15 @@
true
] call CBA_settings_fnc_init;
[
QGVAR(allowSelfStitch),
"LIST",
[LSTRING(AllowSelfStitch_DisplayName), LSTRING(AllowSelfStitch_Description)],
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0],
true
] call CBA_settings_fnc_init;
[
QGVAR(cprSuccessChance),
"SLIDER",

View File

@ -215,6 +215,14 @@
<English>Controls whether a Surgical Kit should be consumed after use.</English>
<Japanese>縫合キットの使用後に消費するかどうかを決定します。</Japanese>
</Key>
<Key ID="STR_ACE_Medical_Treatment_AllowSelfStitch_DisplayName">
<English>Self Stitching</English>
<French>Suturer soi-même</French>
</Key>
<Key ID="STR_ACE_Medical_Treatment_AllowSelfStitch_Description">
<English>Enables the use of surgical kits to stitch oneself.</English>
<French>Autorise l'utilisation de la trousse chirugical sur soi-même</French>
</Key>
<Key ID="STR_ACE_Medical_Treatment_ConvertItems_DisplayName">
<English>Convert Vanilla Items</English>
<German>Standard Arma-Equipment in ACE-Items umwandeln</German>