equal
deleted
inserted
replaced
398 AddAnim(finalAnim) |
398 AddAnim(finalAnim) |
399 AddFunction({func = WinMission, args = {}}) |
399 AddFunction({func = WinMission, args = {}}) |
400 end |
400 end |
401 |
401 |
402 function WinMission() |
402 function WinMission() |
403 SaveCampaignVar("Progress", "9") |
403 if progress and progress<9 then |
|
404 SaveCampaignVar("Progress", "9") |
|
405 end |
404 ParseCommand("teamgone " .. loc("011101001")) |
406 ParseCommand("teamgone " .. loc("011101001")) |
405 TurnTimeLeft = 0 |
407 TurnTimeLeft = 0 |
406 end |
408 end |
407 -----------------------------Misc-------------------------------------- |
409 -----------------------------Misc-------------------------------------- |
408 function HideHedge(hedge) |
410 function HideHedge(hedge) |
418 hedgeHidden[hedge] = false |
420 hedgeHidden[hedge] = false |
419 end |
421 end |
420 end |
422 end |
421 |
423 |
422 function GetVariables() |
424 function GetVariables() |
|
425 progress = tonumber(GetCampaignVar("Progress")) |
423 m5DeployedNum = tonumber(GetCampaignVar("M5DeployedNum")) |
426 m5DeployedNum = tonumber(GetCampaignVar("M5DeployedNum")) |
424 m2Choice = tonumber(GetCampaignVar("M2Choice")) |
427 m2Choice = tonumber(GetCampaignVar("M2Choice")) |
425 m5Choice = tonumber(GetCampaignVar("M5Choice")) |
428 m5Choice = tonumber(GetCampaignVar("M5Choice")) |
426 m2DenseDead = tonumber(GetCampaignVar("M2DenseDead")) |
429 m2DenseDead = tonumber(GetCampaignVar("M2DenseDead")) |
427 m4DenseDead = tonumber(GetCampaignVar("M4DenseDead")) |
430 m4DenseDead = tonumber(GetCampaignVar("M4DenseDead")) |