share/hedgewars/Data/Maps/Basketball/map.lua
changeset 12077 ce3860c82c8b
parent 11198 cc308446f90d
child 12079 8f222872d432
equal deleted inserted replaced
12076:543bc82e1e28 12077:ce3860c82c8b
    16 	SuddenDeathTurns = 99999 -- "disable" sudden death
    16 	SuddenDeathTurns = 99999 -- "disable" sudden death
    17     Map = 'BasketballField'
    17     Map = 'BasketballField'
    18 end
    18 end
    19 
    19 
    20 function onGameStart()
    20 function onGameStart()
    21 	ShowMission(loc("Hedgewars-Basketball"), loc("Not So Friendly Match"), loc("Bat your opponents through the|baskets and out of the map!"), -amBaseballBat, 0)
    21 	ShowMission(loc("Basketball"), loc("Not So Friendly Match"), loc("Bat your opponents through the|baskets and out of the map!"), -amBaseballBat, 0)
    22 	started = true
    22 	started = true
    23 end
    23 end
    24 
    24 
    25 function onGameTick()
    25 function onGameTick()
    26 end
    26 end
    48 				score[clan] = score[clan] - 1
    48 				score[clan] = score[clan] - 1
    49 				s = string.format(loc("%s is out and Team %d|scored a penalty!| |Score:"), GetHogName(gear), clan + 1)
    49 				s = string.format(loc("%s is out and Team %d|scored a penalty!| |Score:"), GetHogName(gear), clan + 1)
    50 			end
    50 			end
    51 			s = s .. " " .. score[0]
    51 			s = s .. " " .. score[0]
    52 			for i = 1, ClansCount - 1 do s = s .. " - " .. score[i] end
    52 			for i = 1, ClansCount - 1 do s = s .. " - " .. score[i] end
    53 			ShowMission(loc("Hedgewars-Basketball"), loc("Not So Friendly Match"), s, -amBaseballBat, 0)
    53 			ShowMission(loc("Basketball"), loc("Not So Friendly Match"), s, -amBaseballBat, 0)
    54 		end
    54 		end
    55 	end
    55 	end
    56 end
    56 end
    57 
    57 
    58 function onNewTurn()
    58 function onNewTurn()