@jtff/miztemplate-lib 3.6.0 → 3.6.1

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.
@@ -257,6 +257,18 @@ function QRATrigger(params)
257
257
  QRAFinex,
258
258
  QRAIndex
259
259
  )
260
+ if (type(dcsbot) ~= 'nil') then
261
+ local title = string.format('QRA triggered !')
262
+ local description = string.format("[%s] triggered a QRA scenario : All QRA pilots, startup and scramble following the procedure",triggerPlayerName)
263
+ local img = 'https://www.defense.gouv.fr/sites/default/files/styles/16_9_sm/public/air/22_09_2023_13.jpeg?itok=n_MPmvZc'
264
+ local fields = {
265
+ ['Trigger'] = triggerPlayerName,
266
+ ['Type'] = QRAArray[QRAIndex].customconfig.type,
267
+ ['Coalition'] = UTILS.GetCoalitionName(QRAArray[QRAIndex].customconfig.benefit_coalition),
268
+ }
269
+ local footer = 'Scramble scramble scramble...'
270
+ dcsbot.sendEmbed(title, description, img, fields, footer)
271
+ end
260
272
  end
261
273
 
262
274
  function QRAFinex(objQRAIndex)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [