share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
changeset 13740 2bb7141496a9
parent 13643 690cc84e9fd6
child 13743 d7b72ea8d136
equal deleted inserted replaced
13739:b3b55b03d499 13740:2bb7141496a9
    51 --Will end the turn + give escape time
    51 --Will end the turn + give escape time
    52 function EndTurnCS(seconds)
    52 function EndTurnCS(seconds)
    53 	-- Set attacked state to prevent “Boring” sound to be played
    53 	-- Set attacked state to prevent “Boring” sound to be played
    54 	SetState(CurrentHedgehog, bor(GetState(CurrentHedgehog), gstAttacked))
    54 	SetState(CurrentHedgehog, bor(GetState(CurrentHedgehog), gstAttacked))
    55 	--set escape time
    55 	--set escape time
    56 	TurnTimeLeft = GetAwayTime*10*seconds
    56 	SetTurnTimeLeft(GetAwayTime*10*seconds)
    57 	if TurnTimeLeft > 0 then
    57 	if TurnTimeLeft > 0 then
    58 		Retreat(TurnTimeLeft, false)
    58 		Retreat(TurnTimeLeft, false)
    59 	end
    59 	end
    60  end
    60  end
    61 
    61 
  1210 			then
  1210 			then
  1211 				CS.START_TIME=TurnTimeLeft
  1211 				CS.START_TIME=TurnTimeLeft
  1212 				CS.HOG_HEALTH=GetHealth(CurrentHedgehog)
  1212 				CS.HOG_HEALTH=GetHealth(CurrentHedgehog)
  1213 			end
  1213 			end
  1214 
  1214 
  1215 			TurnTimeLeft=100000
  1215 			SetTurnTimeLeft(100000)
  1216 
  1216 
  1217 			AddCaption(string.format(CS.SELECT_WEP_INFORMATION_SHORT, GetHogTeamName(CurrentHedgehog)), capcolDefault, capgrpGameState)
  1217 			AddCaption(string.format(CS.SELECT_WEP_INFORMATION_SHORT, GetHogTeamName(CurrentHedgehog)), capcolDefault, capgrpGameState)
  1218 			AddCaption(loc("No continent selected"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpAmmoinfo)
  1218 			AddCaption(loc("No continent selected"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpAmmoinfo)
  1219 			CS.SELECT_CONTINENT_CHECK=true
  1219 			CS.SELECT_CONTINENT_CHECK=true
  1220 			ShowMission(loc("Continental supplies"),loc("Let a continent provide your weapons!"),GeneralInformation(), 0, 0)
  1220 			ShowMission(loc("Continental supplies"),loc("Let a continent provide your weapons!"),GeneralInformation(), 0, 0)