equal
deleted
inserted
replaced
872 end |
872 end |
873 |
873 |
874 function onGearWaterSkip(gear) |
874 function onGearWaterSkip(gear) |
875 if gear == CurrentHedgehog then |
875 if gear == CurrentHedgehog then |
876 hasSurfed = true |
876 hasSurfed = true |
877 AddCaption(loc("Surfer!"), 0xFFFFFFFF, capgrpMessage2) |
877 AddCaption(loc("Surfer!"), capcolDefault, capgrpMessage2) |
878 end |
878 end |
879 end |
879 end |
880 |
880 |
881 |
881 |
882 function WallHit(id, zXMin,zYMin, zWidth, zHeight) |
882 function WallHit(id, zXMin,zYMin, zWidth, zHeight) |
888 |
888 |
889 if wallsLeft == 0 then |
889 if wallsLeft == 0 then |
890 AddCaption(loc("All walls touched!")) |
890 AddCaption(loc("All walls touched!")) |
891 allWallsHit = true |
891 allWallsHit = true |
892 if (requireSurfer == true) and (hasSurfed == false) then |
892 if (requireSurfer == true) and (hasSurfed == false) then |
893 AddCaption(loc("Go surf!"), 0xFFFFFFFF, capgrpMessage2) |
893 AddCaption(loc("Go surf!"), capcolDefault, capgrpMessage2) |
894 end |
894 end |
895 else |
895 else |
896 AddCaption(string.format(loc("Walls left: %d"), wallsLeft)) |
896 AddCaption(string.format(loc("Walls left: %d"), wallsLeft)) |
897 end |
897 end |
898 |
898 |
972 capgrpMessage2 |
972 capgrpMessage2 |
973 ) |
973 ) |
974 roundN = 2 |
974 roundN = 2 |
975 else |
975 else |
976 TurnTimeLeft = TurnTime |
976 TurnTimeLeft = TurnTime |
977 AddCaption(string.format(loc("Let's go, %s!"), GetHogTeamName(CurrentHedgehog)), 0xFFFFFFFF, capgrpMessage2) |
977 AddCaption(string.format(loc("Let's go, %s!"), GetHogTeamName(CurrentHedgehog)), capcolDefault, capgrpMessage2) |
978 roundN = 100 |
978 roundN = 100 |
979 wallsLeft = #wTouched |
979 wallsLeft = #wTouched |
980 allowCrate = true |
980 allowCrate = true |
981 end |
981 end |
982 PlaySound(sndYesSir, CurrentHedgehog) |
982 PlaySound(sndYesSir, CurrentHedgehog) |