Repair - Add Locations Boost Training Setting (#8349)

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
GhostIsSpooky 2021-10-12 17:53:45 -03:00 committed by GitHub
parent 0c58d8b20b
commit e4be783f80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 18 deletions

View File

@ -1503,5 +1503,21 @@
<Key ID="STR_ACE_Common_TimeLeft">
<English>Time left: %1s</English>
</Key>
<Key ID="STR_ACE_Common_LocationsBoostTraining_DisplayName">
<English>Locations Boost Training</English>
<Czech>Zdravotnická místa zvyšují zdravotnickou úrovně</Czech>
<Italian>Sedi per potenziare la formazione</Italian>
<German>Örtliche Trainingssteigerung</German>
<Spanish>Ubicación mejora entrenamiento.</Spanish>
<Polish>Miejsca zwiększają wyszkolenie</Polish>
<Portuguese>Localização melhora treinamento</Portuguese>
<French>Le lieu améliore l'efficacité</French>
<Russian>Места ускоренного обучения</Russian>
<Japanese>衛生能力の上昇位置</Japanese>
<Korean>교육 증가 지역</Korean>
<Chinesesimp>受所在位置影响提升医疗能力</Chinesesimp>
<Chinese>受所在位置影響提升醫療能力</Chinese>
<Turkish>Konumlar Tedaviyi Hızlandırır</Turkish>
</Key>
</Package>
</Project>

View File

@ -47,7 +47,7 @@
[
QGVAR(locationsBoostTraining),
"CHECKBOX",
[LSTRING(LocationsBoostTraining_DisplayName), LSTRING(LocationsBoostTraining_Description)],
[ELSTRING(common,LocationsBoostTraining_DisplayName), LSTRING(LocationsBoostTraining_Description)],
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
false,
true

View File

@ -162,22 +162,6 @@
<Key ID="STR_ACE_Medical_Treatment_ClearTrauma_AfterStitch">
<English>After Stitch</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LocationsBoostTraining_DisplayName">
<English>Locations Boost Training</English>
<Czech>Zdravotnická místa zvyšují zdravotnickou úrovně</Czech>
<Italian>Sedi per potenziare la formazione</Italian>
<German>Örtliche Trainingssteigerung</German>
<Spanish>Ubicación mejora entrenamiento.</Spanish>
<Polish>Miejsca zwiększają wyszkolenie</Polish>
<Portuguese>Localização melhora treinamento</Portuguese>
<French>Le lieu améliore l'efficacité</French>
<Russian>Места ускоренного обучения</Russian>
<Japanese>衛生能力の上昇位置</Japanese>
<Korean>교육 증가 지역</Korean>
<Chinesesimp>受所在位置影响提升医疗能力</Chinesesimp>
<Chinese>受所在位置影響提升醫療能力</Chinese>
<Turkish>Konumlar Tedaviyi Hızlandırır</Turkish>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LocationsBoostTraining_Description">
<English>Boost medical training when in medical vehicles or facilities. Untrained becomes medic, medic becomes doctor.</English>
<Japanese>衛生車両か施設では衛生能力を上昇します。未訓練では衛生兵に、衛生兵では医師になります。</Japanese>

View File

@ -25,4 +25,11 @@ private _class = _unit getVariable ["ACE_IsEngineer", _unit getUnitTrait "engine
if (_class isEqualType false) then {_class = [0, 1] select _class};
TRACE_3("isEngineer",_unit,_engineerN,_class);
_class >= _engineerN;
if (_class >= _engineerN) exitWith {true};
if (!GVAR(locationsBoostTraining)) exitWith {false};
if ([_unit] call FUNC(isInRepairFacility) || {[_unit] call FUNC(isNearRepairVehicle)}) then {
_class = _class + 1; // Boost engineer training by one: untrained becomes engineer, engineer becomes advanced engineer
};
_class >= _engineerN

View File

@ -52,6 +52,15 @@
{[QGVAR(consumeItem_toolKit), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_fnc_addSetting;
[
QGVAR(locationsBoostTraining),
"CHECKBOX",
[ELSTRING(common,LocationsBoostTraining_DisplayName), LSTRING(LocationsBoostTraining_Description)],
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
false,
true
] call CBA_fnc_addSetting;
[
QGVAR(fullRepairLocation), "LIST",
[LSTRING(fullRepairLocation), LSTRING(fullRepairLocation_description)],

View File

@ -261,6 +261,9 @@
<Chinese>維修載具中...</Chinese>
<Turkish>Tamir Ediliyor...</Turkish>
</Key>
<Key ID="STR_ACE_Repair_LocationsBoostTraining_Description">
<English>Boost engineer training when in repair vehicles or facilities. Untrained becomes engineer, engineer becomes advanced engineer.</English>
</Key>
<Key ID="STR_ACE_Repair_fullRepairLocation">
<English>Full Repair Locations</English>
<German>Möglichkeit zur vollständigen Reperatur</German>