share/hedgewars/Data/Maps/ClimbHome/map.lua
changeset 14464 ead8928a59f8
parent 13750 110d6c1e817f
child 14475 2113296b7a29
equal deleted inserted replaced
14463:bd1db668b7c0 14464:ead8928a59f8
   426                 makeSinglePlayerLoserStats()
   426                 makeSinglePlayerLoserStats()
   427                 YouLost = true
   427                 YouLost = true
   428             end
   428             end
   429             -- FIXME: Hog is also in winning box if it just walks into the chair from the left, touching it. Intentional?
   429             -- FIXME: Hog is also in winning box if it just walks into the chair from the left, touching it. Intentional?
   430             if not YouWon and not YouLost and gearIsInBox(CurrentHedgehog, 1920, 252, 50, 50) then
   430             if not YouWon and not YouLost and gearIsInBox(CurrentHedgehog, 1920, 252, 50, 50) then
       
   431                 SaveMissionVar("Won", "true")
   431                 AddCaption(loc("Victory!"), capcolDefault, capgrpGameState)
   432                 AddCaption(loc("Victory!"), capcolDefault, capgrpGameState)
   432                 ShowMission(loc("Climb Home"),
   433                 ShowMission(loc("Climb Home"),
   433                             loc("Made it!"),
   434                             loc("Made it!"),
   434                             string.format(loc("Ahhh, home, sweet home. Made it in %d seconds."), roundedFinishTime),
   435                             string.format(loc("Ahhh, home, sweet home. Made it in %d seconds."), roundedFinishTime),
   435                             -amRope, 0)
   436                             -amRope, 0)