@jtff/miztemplate-lib 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/jtff-lib-ci.js +16 -16
- package/package.json +1 -1
- package/scripts/inject-scripts.js +5 -1
package/lib/jtff-lib-ci.js
CHANGED
|
@@ -266,22 +266,22 @@ class MizTemplateCI{
|
|
|
266
266
|
const sub_unit = unit[sub_unit_key];
|
|
267
267
|
if (sub_unit["skill"] != "Client") continue;
|
|
268
268
|
// Aircraft is an A10CII, use A10C mode by creating files in the root with the unit id
|
|
269
|
-
if (radio_descriptor_table["aircraft"] == 'A-10C_2') {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
269
|
+
// if (radio_descriptor_table["aircraft"] == 'A-10C_2') {
|
|
270
|
+
// const unit_id = sub_unit["unitId"];
|
|
271
|
+
// ["UHF_RADIO", "VHF_AM_RADIO", "VHF_FM_RADIO"].forEach(folder => {
|
|
272
|
+
// var zip_folder = zip.folder("Avionics/A-10C_2/" + unit_id + "/" + folder);
|
|
273
|
+
// var file = parse("return " + dcs_radio_presets)[folder];
|
|
274
|
+
// file = format(file, { singleQuote: false });
|
|
275
|
+
// file = file
|
|
276
|
+
// .split('\n')
|
|
277
|
+
// .slice(1, -1)
|
|
278
|
+
// .join('\n')
|
|
279
|
+
// .slice(0, -1)
|
|
280
|
+
// .replace(/\[\"(\d+)\"\] = /g, "[$1] = ");
|
|
281
|
+
// zip_folder.file("SETTINGS.lua", file);
|
|
282
|
+
// });
|
|
283
|
+
// continue;
|
|
284
|
+
// }
|
|
285
285
|
if (sub_unit["type"] != radio_descriptor_table["aircraft"]) continue;
|
|
286
286
|
// GROUP FOUND, SET RADIOS
|
|
287
287
|
sub_unit["Radio"] = parse("return " + dcs_radio_presets)
|
package/package.json
CHANGED
|
@@ -526,6 +526,10 @@ function injectScripts(jtffci, env_mission) {
|
|
|
526
526
|
file: "settings-training_ranges.lua",
|
|
527
527
|
objectName: "TrainingRangeConfig"
|
|
528
528
|
},
|
|
529
|
+
{
|
|
530
|
+
file: "settings-reapers.lua",
|
|
531
|
+
objectName: "OnDemandReapersConfig"
|
|
532
|
+
},
|
|
529
533
|
{
|
|
530
534
|
file: "settings-fac_ranges.lua",
|
|
531
535
|
objectName: "FACRangeConfig"
|
|
@@ -540,7 +544,7 @@ function injectScripts(jtffci, env_mission) {
|
|
|
540
544
|
missionObject['trigrules'],
|
|
541
545
|
mapResourceObject,
|
|
542
546
|
'Air To Ground',
|
|
543
|
-
['190-ranges.lua', '191-sams.lua', '193-training_ranges.lua', '196-fac_ranges.lua', '199-skynet.lua'],
|
|
547
|
+
['190-ranges.lua', '191-sams.lua', '193-training_ranges.lua', '195-reaper-ondemand.lua', '196-fac_ranges.lua', '199-skynet.lua'],
|
|
544
548
|
29,
|
|
545
549
|
'0xff0000ff'
|
|
546
550
|
);
|