@jtff/miztemplate-lib 3.4.20 → 3.4.21

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.
@@ -22,6 +22,18 @@ for i, v in ipairs(log_modes) do
22
22
  end
23
23
  JTFF_LOGLEVEL = 'info'
24
24
 
25
+ jtff_log = {}
26
+ for index, mode in ipairs(log_modes) do
27
+ local nameupper = mode.name:upper()
28
+ jtff_log[mode.name] = function(message, category)
29
+ -- Return early if we're below the log level
30
+ if index < log_levels[JTFF_LOGLEVEL] then
31
+ return
32
+ end
33
+ env.info(string.format("[JTFF-%s]--%s-- %s", mode.name, category, message))
34
+ end
35
+ end
36
+
25
37
  use_jtff_sound_mod = false
26
38
 
27
39
  if (not(FunkmanConfig)) then
@@ -57,18 +69,6 @@ AAMAxRange = {
57
69
  RANDOM_RANGE = 4,
58
70
  }
59
71
 
60
- jtff_log = {}
61
- for index, mode in ipairs(log_modes) do
62
- local nameupper = mode.name:upper()
63
- jtff_log[mode.name] = function(message, category)
64
- -- Return early if we're below the log level
65
- if index < log_levels[JTFF_LOGLEVEL] then
66
- return
67
- end
68
- env.info(string.format("[JTFF-%s]--%s-- %s", mode.name, category, message))
69
- end
70
- end
71
-
72
72
  function switchGroupImmortalStatus(group)
73
73
  status = not BASE:GetState(group, "isImmortal")
74
74
  jtff_log.info(string.format("switch group %s to immortal status %s", group:GetName(), tostring(status)), "GENERAL")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.4.20",
3
+ "version": "3.4.21",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [