equal
deleted
inserted
replaced
151 minion3.gear = AddHog(minion3.name, 1, 50, "Gasmask") |
151 minion3.gear = AddHog(minion3.name, 1, 50, "Gasmask") |
152 AnimSetGearPosition(minion3.gear, minion3.x, minion3.y) |
152 AnimSetGearPosition(minion3.gear, minion3.x, minion3.y) |
153 HogTurnLeft(minion3.gear, true) |
153 HogTurnLeft(minion3.gear, true) |
154 |
154 |
155 -- get the check point |
155 -- get the check point |
156 if tonumber(GetCampaignVar("Moon01CheckPoint")) then |
156 checkPointReached = initCheckpoint("moon01") |
157 checkPointReached = tonumber(GetCampaignVar("Moon01CheckPoint")) |
|
158 end |
|
159 |
|
160 if checkPointReached == 1 then |
157 if checkPointReached == 1 then |
161 -- Start of the game |
158 -- Start of the game |
162 elseif checkPointReached == 2 then |
159 elseif checkPointReached == 2 then |
163 AnimSetGearPosition(hero.gear, parachuteX, weaponsY) |
160 AnimSetGearPosition(hero.gear, parachuteX, weaponsY) |
164 end |
161 end |
317 return false |
314 return false |
318 end |
315 end |
319 |
316 |
320 -------------- OUTCOMES ------------------ |
317 -------------- OUTCOMES ------------------ |
321 |
318 |
322 function weaponsPlatform(gear) |
319 function weaponsPlatform(gear) |
323 SaveCampaignVar("Moon01CheckPoint", "2") |
320 saveCheckpoint("2") |
324 SaveCampaignVar("HeroHealth",GetHealth(hero.gear)) |
321 SaveCampaignVar("HeroHealth",GetHealth(hero.gear)) |
325 TurnTimeLeft = 0 |
322 TurnTimeLeft = 0 |
326 weaponsAqcuired = true |
323 weaponsAqcuired = true |
327 SetWind(60) |
324 SetWind(60) |
328 GameFlags = bor(GameFlags,gfDisableWind) |
325 GameFlags = bor(GameFlags,gfDisableWind) |