@jtff/miztemplate-lib 2.1.4 → 2.1.7
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 +1 -1
- package/package.json +1 -1
- package/scripts/inject-scripts.js +14 -1
package/lib/jtff-lib-ci.js
CHANGED
|
@@ -307,7 +307,7 @@ class MizTemplateCI{
|
|
|
307
307
|
const folderArray = fs.readdirSync('resources/sounds');
|
|
308
308
|
for (const folder of folderArray) {
|
|
309
309
|
// if(zip.folder(new RegExp(folder)).length > 0 ) {
|
|
310
|
-
if (fs.lstatSync(folder).isDirectory()) {
|
|
310
|
+
if (fs.existsSync('resources/sounds/' + folder) && fs.lstatSync('resources/sounds/' + folder).isDirectory()) {
|
|
311
311
|
await this.mizUpdateSingleSoundFolder(zip, folder);
|
|
312
312
|
}
|
|
313
313
|
// }
|
package/package.json
CHANGED
|
@@ -167,8 +167,21 @@ function injectScripts(jtffci, env_mission) {
|
|
|
167
167
|
mapResourceObject = {};
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
// injection
|
|
170
|
+
// injection SplashDamage
|
|
171
171
|
let tuple = jtffci.injectScripts(
|
|
172
|
+
missionObject['trig'],
|
|
173
|
+
missionObject['trigrules'],
|
|
174
|
+
mapResourceObject,
|
|
175
|
+
'SplashDamage load',
|
|
176
|
+
['Splash_Damage_2_0.lua'],
|
|
177
|
+
9,
|
|
178
|
+
'0x008000ff'
|
|
179
|
+
);
|
|
180
|
+
missionObject['trig'] = tuple.tObject;
|
|
181
|
+
missionObject['trigrules'] = tuple.trObject;
|
|
182
|
+
mapResourceObject = tuple.mrObject;
|
|
183
|
+
// injection Moose
|
|
184
|
+
tuple = jtffci.injectScripts(
|
|
172
185
|
missionObject['trig'],
|
|
173
186
|
missionObject['trigrules'],
|
|
174
187
|
mapResourceObject,
|