share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 14612 bd15c8551318
parent 14592 32cf7472da06
child 14620 5c52013fd0aa
equal deleted inserted replaced
14611:3cf7799e04b5 14612:bd15c8551318
   967   AddAmmo(natives[girlNum], amSwitch, 0)
   967   AddAmmo(natives[girlNum], amSwitch, 0)
   968 end
   968 end
   969 
   969 
   970 function AddHogs()
   970 function AddHogs()
   971   tribeTeamName = AddTeam(loc("Tribe"), -2, "Bone", "Island", "HillBilly", "cm_birdy")
   971   tribeTeamName = AddTeam(loc("Tribe"), -2, "Bone", "Island", "HillBilly", "cm_birdy")
       
   972   SetTeamPassive(tribeTeamName, true)
   972   for i = 8, 9 do
   973   for i = 8, 9 do
   973     natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i])
   974     natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i])
   974   end
   975   end
   975 
   976 
   976   nativesTeamName = AddMissionTeam(-2)
   977   nativesTeamName = AddMissionTeam(-2)
  1018 
  1019 
  1019 -----------------------------Main Functions----------------------------
  1020 -----------------------------Main Functions----------------------------
  1020 
  1021 
  1021 function onGameInit()
  1022 function onGameInit()
  1022 	Seed = 2
  1023 	Seed = 2
  1023 	-- gfTagTeam makes it easier to skip the Tribe team
  1024 	GameFlags = gfSolidLand
  1024 	GameFlags = gfSolidLand + gfTagTeam
       
  1025 	TurnTime = 60000 
  1025 	TurnTime = 60000 
  1026 	CaseFreq = 0
  1026 	CaseFreq = 0
  1027 	MinesNum = 0
  1027 	MinesNum = 0
  1028 	MinesTime = 3000
  1028 	MinesTime = 3000
  1029 	Explosives = 0
  1029 	Explosives = 0
  1118   if AnimInProgress() then
  1118   if AnimInProgress() then
  1119     SetTurnTimeLeft(MAX_TURN_TIME)
  1119     SetTurnTimeLeft(MAX_TURN_TIME)
  1120     return
  1120     return
  1121   end
  1121   end
  1122 
  1122 
  1123   if GetHogTeamName(CurrentHedgehog) == loc("Tribe") then
       
  1124     EndTurn(true)
       
  1125     return
       
  1126   end
       
  1127   TurnsLeft = TurnsLeft - 1
  1123   TurnsLeft = TurnsLeft - 1
  1128   
  1124   
  1129   if stage == platformStage then
  1125   if stage == platformStage then
  1130     AddCaption(string.format(loc("Turns until arrival: %d"), TurnsLeft))
  1126     AddCaption(string.format(loc("Turns until arrival: %d"), TurnsLeft))
  1131   end
  1127   end