Resolve Lua language server diagnosed problems.
This commit is contained in:
committed by
abcdefg30
parent
3d0efa1cbe
commit
378f66a1ff
@@ -32,7 +32,7 @@ WorldLoaded = function()
|
||||
InitObjectives(Nod)
|
||||
|
||||
GDIObjective = AddPrimaryObjective(GDI, "")
|
||||
BuildBase = AddPrimaryObjective(Nod, "build-base")
|
||||
BuildBaseObjective = AddPrimaryObjective(Nod, "build-base")
|
||||
DestroyGDI = AddPrimaryObjective(Nod, "destroy-gdi-units")
|
||||
|
||||
Utils.Do({ Refinery, Yard }, function(actor)
|
||||
@@ -97,7 +97,7 @@ Tick = function()
|
||||
Nod.MarkCompletedObjective(DestroyGDI)
|
||||
end
|
||||
|
||||
if DateTime.GameTime % DateTime.Seconds(1) == 0 and not Nod.IsObjectiveCompleted(BuildBase) and CheckForBase(Nod, NodBaseBuildings) then
|
||||
Nod.MarkCompletedObjective(BuildBase)
|
||||
if DateTime.GameTime % DateTime.Seconds(1) == 0 and not Nod.IsObjectiveCompleted(BuildBaseObjective) and CheckForBase(Nod, NodBaseBuildings) then
|
||||
Nod.MarkCompletedObjective(BuildBaseObjective)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user