Skip to content

Commit

Permalink
Medical Treatment - Add self PAK setting (#7382)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 authored and kymckay committed Jan 4, 2020
1 parent e00cb53 commit 62fccd6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ class GVAR(actions) {
condition = QUOTE(_patient call EFUNC(medical_status,isInStableCondition));
items[] = {"ACE_personalAidKit"};
treatmentLocations = QGVAR(locationPAK);
allowSelfTreatment = QGVAR(allowSelfPAK);
medicRequired = QGVAR(medicPAK);
treatmentTime = QFUNC(getHealTime);
callbackSuccess = QFUNC(fullHeal);
Expand Down
9 changes: 9 additions & 0 deletions addons/medical_treatment/initSettings.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@
true
] call CBA_settings_fnc_init;

[
QGVAR(allowSelfPAK),
"LIST",
[LSTRING(AllowSelfPAK_DisplayName), LSTRING(AllowSelfPAK_Description)],
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0],
true
] call CBA_settings_fnc_init;

[
QGVAR(timeCoefficientPAK),
"SLIDER",
Expand Down
18 changes: 12 additions & 6 deletions addons/medical_treatment/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
<Chinese>允許使用腎上腺素</Chinese>
</Key>
<Key ID="STR_ACE_Medical_Treatment_MedicEpinephrine_Description">
<English>Training level required to use Epinephrine.</English>
<English>Training level required to use epinephrine.</English>
<Japanese>アドレナリンの使用に訓練レベルを必要とさせます。</Japanese>
<French>Définit quelle qualification médicale est requise pour pouvoir utiliser l'épinéphrine.</French>
<Russian>Уровень подготовки, необходимый для использования Адреналина.</Russian>
Expand All @@ -220,7 +220,7 @@
<Chinese>腎上腺素使用地點</Chinese>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LocationEpinephrine_Description">
<English>Controls where Epinephrine can be used.</English>
<English>Controls where epinephrine can be used.</English>
<Japanese>アドレナリンが使える場所を決定します。</Japanese>
<French>Définit où l'épinéphrine peut être utilisée.</French>
<Russian>Контролирует, где можно использовать Адреналин.</Russian>
Expand Down Expand Up @@ -301,6 +301,12 @@
<Italian>Controlla se un PAK deve essere consumato dopo l'uso.</Italian>
<Czech>Nastavuje zda má být osobní lékárnička (PAK) spotřebována po použití.</Czech>
</Key>
<Key ID="STR_ACE_Medical_Treatment_AllowSelfPAK_DisplayName">
<English>Self PAK Usage</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_AllowSelfPAK_Description">
<English>Enables the use of PAKs to heal oneself.</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_TimeCoefficientPAK_DisplayName">
<English>Time Coefficient PAK</English>
<Japanese>応急処置キットの時間係数</Japanese>
Expand Down Expand Up @@ -332,7 +338,7 @@
<Czech>Povolit sešívací sadu</Czech>
</Key>
<Key ID="STR_ACE_Medical_Treatment_MedicSurgicalKit_Description">
<English>Training level required to use a Surgical Kit.</English>
<English>Training level required to use a surgical kit.</English>
<Japanese>縫合キットの使用に訓練レベルを必要とさせます。</Japanese>
<French>Définit quelle qualification médicale est requise pour pouvoir utiliser une trousse chirurgicale.</French>
<Russian>Уровень медицинской подготовки, необходимый для использования Хирургического набора.</Russian>
Expand All @@ -352,7 +358,7 @@
<Czech>Nastavuje kde může být sešívací sada použita</Czech>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LocationSurgicalKit_Description">
<English>Controls where a Surgical Kit can be used.</English>
<English>Controls where a surgical kit can be used.</English>
<Japanese>縫合キットが使える場所を決定します。</Japanese>
<French>Définit où la trousse chirurgicale peut être utilisée.</French>
<Russian>Контролирует, где можно использовать Хирургический набор</Russian>
Expand All @@ -372,7 +378,7 @@
<Czech>Spotřebuj sešívací sadu</Czech>
</Key>
<Key ID="STR_ACE_Medical_Treatment_ConsumeSurgicalKit_Description">
<English>Controls whether a Surgical Kit should be consumed after use.</English>
<English>Controls whether a surgical kit should be consumed after use.</English>
<Japanese>縫合キットの使用後に消費するかどうかを決定します。</Japanese>
<French>Définit si la trousse chirurgicale doit être à usage unique.</French>
<Russian>Контролирует, следует ли израсходовать Хирургический набор после использования.</Russian>
Expand Down Expand Up @@ -410,7 +416,7 @@
<Czech>Samoaplikace IV transfuze</Czech>
</Key>
<Key ID="STR_ACE_Medical_Treatment_AllowSelfIV_Description">
<English>Enables the use of IV Transfusions on oneself.</English>
<English>Enables the use of IV transfusions on oneself.</English>
<German>Erlaube Bluttransfusionen an sich selbst zu benutzen</German>
<Russian>Позволяет использовать внутривенные переливания на себе</Russian>
<Japanese>自らに対して IV 輸血を可能にします。</Japanese>
Expand Down

0 comments on commit 62fccd6

Please sign in to comment.