added release notes
This commit is contained in:
@@ -80,3 +80,20 @@ jobs:
|
||||
asset_path: ./output/spearhead.lua
|
||||
asset_name: spearhead.lua
|
||||
asset_content_type: application/octet-stream
|
||||
|
||||
- name: Generate Release Notes
|
||||
id: generate_release_notes
|
||||
run: |
|
||||
git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:'- %s' > release_notes.txt
|
||||
cat release_notes.txt
|
||||
shell: bash
|
||||
|
||||
# - name: Upload Release Notes
|
||||
# uses: actions/upload-release-asset@v1
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
# asset_path: ./release_notes.txt
|
||||
# asset_name: release_notes.txt
|
||||
# asset_content_type: text/plain
|
||||
|
||||
Vendored
+3
-16
@@ -1,23 +1,10 @@
|
||||
{
|
||||
"Lua.diagnostics.globals": [
|
||||
"missionCommands",
|
||||
"env",
|
||||
"Airbase",
|
||||
"world",
|
||||
"trigger",
|
||||
"StaticObject",
|
||||
"Group",
|
||||
"Unit",
|
||||
"Object",
|
||||
"coalition",
|
||||
"timer",
|
||||
"AI",
|
||||
"net",
|
||||
"lfs"
|
||||
],
|
||||
"cSpell.words": [
|
||||
"farp",
|
||||
"Sams",
|
||||
"SEAD"
|
||||
],
|
||||
"Lua.diagnostics.globals": [
|
||||
"lfs"
|
||||
]
|
||||
}
|
||||
+1
-1
@@ -55,7 +55,7 @@ do -- timer
|
||||
---@field getTime fun() : number returns the time in the mission (in seconds. 3 decimals)
|
||||
---@field getAbsTime fun() : number returns the real time in seconds. 0 for midnight, 43200 for noon
|
||||
---@field getTime0 fun() : number returns the mission start time in seconds
|
||||
---@field scheduleFunction fun(functionToCall: function, arguments: table|nil, modelTime: number) : number schedule the function to be run at 'modelTime' and returns the functionID
|
||||
---@field scheduleFunction fun(functionToCall: function, arguments: any|nil, modelTime: number) : number schedule the function to be run at 'modelTime' and returns the functionID
|
||||
---@field removeFunction fun(functionID:number) removes a scheduled function from the scheduler
|
||||
---@field setFunctionTime fun(functionID:number, modelTime:number) reschedules an scheduled function
|
||||
timer = timer
|
||||
|
||||
@@ -616,10 +616,10 @@ function Database:getRandomMissionsForStage(stagename)
|
||||
return stageZone.RandomMissionZones
|
||||
end
|
||||
|
||||
---@return Array<string>?
|
||||
---@return Array<string>
|
||||
function Database:getGroupsForMissionZone(missionZoneName)
|
||||
local missionZoneData = self._tables.MissionZoneData[missionZoneName]
|
||||
if not missionZoneData then return nil end
|
||||
if not missionZoneData then return {} end
|
||||
return missionZoneData.Groups
|
||||
end
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
---@field private _zoneName string
|
||||
---@field private _database Database
|
||||
---@field private _logger Logger
|
||||
---@field private _missionBriefing string
|
||||
---@field private _missionBriefing string?
|
||||
---@field private _missionGroups MissionGroups
|
||||
---@field private _completeListeners Array<MissionCompleteListener>
|
||||
local Mission = {}
|
||||
@@ -258,8 +258,7 @@ function Mission:UpdateState(checkHealth, messageIfDone)
|
||||
else
|
||||
local unit = Unit.getByName(unitName)
|
||||
|
||||
local alive = unit ~= nil and unit:isExist() == true
|
||||
if alive == true then
|
||||
if unit and unit:isExist() then
|
||||
if unit:getLife() / unit:getLife0() < 0.2 then
|
||||
self._logger:debug("exploding unit")
|
||||
trigger.action.explosion(unit:getPoint(), 100)
|
||||
|
||||
@@ -14,7 +14,7 @@ Spearhead.Events.Init("DEBUG")
|
||||
|
||||
local dbLogger = Spearhead.LoggerTemplate:new("database", "INFO")
|
||||
local standardLogger = Spearhead.LoggerTemplate:new("", "INFO")
|
||||
local databaseManager = Spearhead.DB:new(dbLogger, debug)
|
||||
local databaseManager = Spearhead.DB.New(dbLogger, debug)
|
||||
|
||||
local capConfig = Spearhead.internal.configuration.CapConfig:new();
|
||||
local stageConfig = Spearhead.internal.configuration.StageConfig:new();
|
||||
|
||||
Reference in New Issue
Block a user