@jtff/miztemplate-lib 3.8.3 → 3.8.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.
@@ -77,20 +77,20 @@ end
77
77
 
78
78
  function getCaseTypeFromWeather(CVNCoordinates, recovery_start, recovery_stop)
79
79
  if (CVNCoordinates) then
80
- if ((timer.getAbsTime() >= (CVNCoordinates:GetSunset(true) - 30*60)) or (timer.getAbsTime() <= (CVNCoordinates:GetSunrise(true) + 30*60))) then
80
+ if ((timer.getAbsTime() >= (tonumber(CVNCoordinates:GetSunset(true)) - 30*60)) or (timer.getAbsTime() <= (tonumber(CVNCoordinates:GetSunrise(true)) + 30*60))) then
81
81
  --Navy Night conditions
82
82
  jtff_log.info("CASE III weather : Navy Night", "AIRBOSS")
83
83
  return 3
84
84
  end
85
85
  if (recovery_stop) then
86
- if (recovery_stop > (CVNCoordinates:GetSunset(true) - 30*60)) then
86
+ if (recovery_stop > (tonumber(CVNCoordinates:GetSunset(true)) - 30*60)) then
87
87
  --recovery_stop after Navy SunSet
88
88
  jtff_log.info("CASE III weather : Recovery ending after Navy SunSet", "AIRBOSS")
89
89
  return 3
90
90
  end
91
91
  end
92
92
  if (recovery_start) then
93
- if (recovery_start < (CVNCoordinates:GetSunrise(true) + 30*60)) then
93
+ if (recovery_start < (tonumber(CVNCoordinates:GetSunrise(true)) + 30*60)) then
94
94
  --recover_start before Navy SunRise
95
95
  jtff_log.info("CASE III weather : Recovery starting before Navy SunRise","AIRBOSS")
96
96
  return 3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.8.3",
3
+ "version": "3.8.5",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [