share/hedgewars/Data/Scripts/Multiplayer/WxW.lua
changeset 13750 110d6c1e817f
parent 13740 2bb7141496a9
child 13982 681a53c8b18c
equal deleted inserted replaced
13749:0e8db74ec585 13750:110d6c1e817f
  1278 
  1278 
  1279 	if GetGameFlag(gfPlaceHog) then
  1279 	if GetGameFlag(gfPlaceHog) then
  1280 		if roundN < 2 then
  1280 		if roundN < 2 then
  1281 			SetWeapon(amSkip)
  1281 			SetWeapon(amSkip)
  1282 			AddAmmo(CurrentHedgehog, amTeleport, 0)
  1282 			AddAmmo(CurrentHedgehog, amTeleport, 0)
  1283 			SetTurnTimeLeft(cMaxTurnTime)
  1283 			SetTurnTimeLeft(MAX_TURN_TIME)
  1284 			SetInputMask(0)
  1284 			SetInputMask(0)
  1285 		end
  1285 		end
  1286 		if roundN == 2 then
  1286 		if roundN == 2 then
  1287 			if turnsCount > hogCount then
  1287 			if turnsCount > hogCount then
  1288 				roundN = 100
  1288 				roundN = 100
  1335 	else
  1335 	else
  1336 		allowCrate = false
  1336 		allowCrate = false
  1337 	end
  1337 	end
  1338 
  1338 
  1339 	if roundN == 1 then
  1339 	if roundN == 1 then
  1340 		SetTurnTimeLeft(cMaxTurnTime)
  1340 		SetTurnTimeLeft(MAX_TURN_TIME)
  1341 		SetInputMask(0)
  1341 		SetInputMask(0)
  1342 		allowCrate = false
  1342 		allowCrate = false
  1343 		UpdateMenu()
  1343 		UpdateMenu()
  1344 		AddCaption(string.format(loc("%s may choose the rules."), GetHogTeamName(CurrentHedgehog)), msgColorTech, capgrpGameState)
  1344 		AddCaption(string.format(loc("%s may choose the rules."), GetHogTeamName(CurrentHedgehog)), msgColorTech, capgrpGameState)
  1345 		HandleStartingStage()
  1345 		HandleStartingStage()