@jtff/miztemplate-lib 3.1.3 → 3.1.5
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.
|
@@ -48,7 +48,7 @@ splash_damage_options = {
|
|
|
48
48
|
["game_messages"] = true, --enable some messages on screen
|
|
49
49
|
["blast_stun"] = false, --not implemented
|
|
50
50
|
["unit_disabled_health"] = 30, --if health is below this value after our explosions, disable its movement
|
|
51
|
-
["unit_cant_fire_health"] =
|
|
51
|
+
["unit_cant_fire_health"] = 40, --if health is below this value after our explosions, set ROE to HOLD to simulate damage weapon systems
|
|
52
52
|
["infantry_cant_fire_health"] = 90, --if health is below this value after our explosions, set ROE to HOLD to simulate severe injury
|
|
53
53
|
["debug"] = false, --enable debugging messages
|
|
54
54
|
["weapon_missing_message"] = false, --false disables messages alerting you to weapons missing from the explTable
|
|
@@ -171,7 +171,7 @@ explTable = {
|
|
|
171
171
|
["AB_500_1_SD_10A"] = 213, --("AB 500-1 - 34 x SD-10A, 500kg CBU with 10kg Frag/HE submunitions")
|
|
172
172
|
["AGM_114K"] = 10,
|
|
173
173
|
["HYDRA_70_M229"] = 8,
|
|
174
|
-
["AGM_65D"] =
|
|
174
|
+
["AGM_65D"] = 60,
|
|
175
175
|
["AGM_65E"] = 300,
|
|
176
176
|
["AGM_65F"] = 300,
|
|
177
177
|
["HOT3"] = 15,
|
package/package.json
CHANGED
|
@@ -250,6 +250,15 @@ async function doInject(ciObject, sourceMizFileName, workspacePath,destinationMi
|
|
|
250
250
|
missionObject['trigrules'] = tuple.trObject;
|
|
251
251
|
mapResourceObject = _.merge(mapResourceObject,tuple.mrObject);
|
|
252
252
|
mizObject = zipObject;
|
|
253
|
+
// réintégration du fichier mission dans l'archive
|
|
254
|
+
await ciObject.mizlib.injectMissionObjectIntoZipObject(
|
|
255
|
+
mizObject,
|
|
256
|
+
{ mission: missionObject }
|
|
257
|
+
);
|
|
258
|
+
await ciObject.mizlib.injectMapResourceObjectIntoZipObject(
|
|
259
|
+
mizObject,
|
|
260
|
+
{ mapResource: mapResourceObject }
|
|
261
|
+
);
|
|
253
262
|
}
|
|
254
263
|
// injection de la gestion des Set_Clients dans la file d'attente
|
|
255
264
|
scriptsArray.push({
|
|
@@ -484,6 +493,15 @@ async function doInject(ciObject, sourceMizFileName, workspacePath,destinationMi
|
|
|
484
493
|
missionObject['trigrules'] = tuple.trObject;
|
|
485
494
|
mapResourceObject = _.merge(mapResourceObject,tuple.mrObject);
|
|
486
495
|
mizObject = zipObject;
|
|
496
|
+
// réintégration du fichier mission dans l'archive
|
|
497
|
+
await ciObject.mizlib.injectMissionObjectIntoZipObject(
|
|
498
|
+
mizObject,
|
|
499
|
+
{ mission: missionObject }
|
|
500
|
+
);
|
|
501
|
+
await ciObject.mizlib.injectMapResourceObjectIntoZipObject(
|
|
502
|
+
mizObject,
|
|
503
|
+
{ mapResource: mapResourceObject }
|
|
504
|
+
);
|
|
487
505
|
}
|
|
488
506
|
// injection des preset radio dans les avions humains
|
|
489
507
|
if ((/^y\b|o\b|yes\b|oui\b/i).test(promptResult.inject_radio_presets)) {
|
|
@@ -511,16 +529,16 @@ async function doInject(ciObject, sourceMizFileName, workspacePath,destinationMi
|
|
|
511
529
|
missionObject['trigrules'] = tuple.trObject;
|
|
512
530
|
mapResourceObject = _.merge(mapResourceObject,tuple.mrObject);
|
|
513
531
|
mizObject = zipObject;
|
|
532
|
+
// réintégration du fichier mission dans l'archive
|
|
533
|
+
await ciObject.mizlib.injectMissionObjectIntoZipObject(
|
|
534
|
+
mizObject,
|
|
535
|
+
{ mission: missionObject }
|
|
536
|
+
);
|
|
537
|
+
await ciObject.mizlib.injectMapResourceObjectIntoZipObject(
|
|
538
|
+
mizObject,
|
|
539
|
+
{ mapResource: mapResourceObject }
|
|
540
|
+
);
|
|
514
541
|
}
|
|
515
|
-
// réintégration du fichier mission dans l'archive
|
|
516
|
-
await ciObject.mizlib.injectMissionObjectIntoZipObject(
|
|
517
|
-
mizObject,
|
|
518
|
-
{ mission: missionObject }
|
|
519
|
-
);
|
|
520
|
-
await ciObject.mizlib.injectMapResourceObjectIntoZipObject(
|
|
521
|
-
mizObject,
|
|
522
|
-
{ mapResource: mapResourceObject }
|
|
523
|
-
);
|
|
524
542
|
// creation du fichier miz dans l'espace de travail
|
|
525
543
|
// await fs.closeSync(fs.openSync(destinationMizFilePath, 'a'));
|
|
526
544
|
// On fait une sauvegarde dans le folder de destination
|