Rewrite rectify convert option (#6825)

* Rewrite Rectify - Adding option to convert vanilla medical gear

* Oops
This commit is contained in:
Magnetar 2019-03-17 17:59:49 +01:00 committed by GitHub
parent 54208a1a78
commit 99f5d2ea0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View File

@ -135,4 +135,12 @@ class ACE_Settings {
value = 0;
values[] = {"No", "Yes"};
};
class GVAR(convertItems) {
category = CSTRING(Category_Medical);
displayName = CSTRING(convertItems_DisplayName);
description = CSTRING(convertItems_Description);
typeName = "SCALAR";
value = 0;
values[] = {ECSTRING(common,Enabled), CSTRING(convertItems_remove), ECSTRING(common,Disabled)};
};
};

View File

@ -20,6 +20,8 @@ _unit removeItems "FirstAidKit";
private _countMedikit = [_unit, "Medikit"] call EFUNC(common,getCountOfItem);
_unit removeItems "Medikit";
if (GVAR(convertItems) != 0) exitWith {};
for "_i" from 1 to _countFirstAidKit do {
_unit addItem "ACE_fieldDressing";
_unit addItem "ACE_packingBandage";

View File

@ -3484,5 +3484,14 @@
<Chinesesimp>移除军用止血带中...</Chinesesimp>
<Chinese>移除軍用止血帶中...</Chinese>
</Key>
<Key ID="STR_ACE_Medical_treatment_convertItems_DisplayName">
<English>Convert vanilla items</English>
</Key>
<Key ID="STR_ACE_Medical_treatment_convertItems_Description">
<English>Enables or disables whether vanilla medical items are converted to ACE medical items or just removed</English>
</Key>
<Key ID="STR_ACE_Medical_treatment_convertItems_remove">
<English>Just remove vanilla medical</English>
</Key>
</Package>
</Project>