551 loc("Build a track and race.") .. "|" .. |
552 loc("Build a track and race.") .. "|" .. |
552 string.format(loc("Round limit: %d"), roundLimit) .. "|" .. |
553 string.format(loc("Round limit: %d"), roundLimit) .. "|" .. |
553 |
554 |
554 "", 4, 4000 |
555 "", 4, 4000 |
555 ) |
556 ) |
|
557 |
|
558 SetAmmoTexts(amAirAttack, loc("Place waypoint"), loc("Racer tool"), |
|
559 loc("Build an awesome race track by placing|waypoints which the hedgehogs have to|touch in any order to finish a round.") .. "|" .. |
|
560 loc("Hedgehogs will start in the first waypoint.") .. "|" .. |
|
561 loc("Cursor: Place waypoint")) |
|
562 |
|
563 SetAmmoTexts(amSkip, loc("Finish waypoint placement"), loc("Racer tool"), |
|
564 loc("Happy with your race track?|Then stop building and start racing!") .. "|" .. |
|
565 loc("Or let the next player place waypoints|if less than 2 waypoints have been placed.") .. "|" .. |
|
566 loc("Attack: Activate")) |
556 |
567 |
557 TryRepositionHogs() |
568 TryRepositionHogs() |
558 |
569 |
559 end |
570 end |
560 |
571 |
618 roundNumber = 0 |
629 roundNumber = 0 |
619 firstClan = GetHogClan(CurrentHedgehog) |
630 firstClan = GetHogClan(CurrentHedgehog) |
620 ShowMission(loc("Racer"), |
631 ShowMission(loc("Racer"), |
621 loc("A Hedgewars mini-game"), |
632 loc("A Hedgewars mini-game"), |
622 loc("Touch all waypoints as fast as you can!"), 2, 4000) |
633 loc("Touch all waypoints as fast as you can!"), 2, 4000) |
|
634 |
|
635 SetAmmoTexts(amSkip, nil, nil, nil) |
623 else |
636 else |
624 ShowMission(loc("Racer"), |
637 ShowMission(loc("Racer"), |
625 loc("Waypoint placement phase"), |
638 loc("Waypoint placement phase"), |
626 loc("Place 2-8 waypoints using the Air Attack weapon.") .. "|" .. |
639 loc("Place 2-8 waypoints using the available tools."), 2, 4000) |
627 loc("Skip your turn when you are finished placing waypoints."), 2, 4000) |
|
628 AddAmmo(CurrentHedgehog, amAirAttack, 4000) |
640 AddAmmo(CurrentHedgehog, amAirAttack, 4000) |
629 SetWeapon(amAirAttack) |
641 SetWeapon(amAirAttack) |
630 end |
642 end |
631 end |
643 end |
632 |
644 |