mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Rewrite rectify convert option (#6825)
* Rewrite Rectify - Adding option to convert vanilla medical gear * Oops
This commit is contained in:
parent
54208a1a78
commit
99f5d2ea0a
@ -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)};
|
||||
};
|
||||
};
|
||||
|
@ -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";
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user