share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/journey.lua
changeset 7512 cc3f036121fe
parent 7510 a7601ce08b5d
child 7514 8699d501a01e
equal deleted inserted replaced
7510:a7601ce08b5d 7512:cc3f036121fe
   908 
   908 
   909 --////////////////////////////Main Functions/////////////////////////
   909 --////////////////////////////Main Functions/////////////////////////
   910 
   910 
   911 function onGameInit()
   911 function onGameInit()
   912 	Seed = 0
   912 	Seed = 0
   913   TemplateFilter = 3
       
   914 	GameFlags = gfSolidLand + gfDisableWind
   913 	GameFlags = gfSolidLand + gfDisableWind
   915 	TurnTime = 40000 
   914 	TurnTime = 40000 
   916 	CaseFreq = 0
   915 	CaseFreq = 0
   917 	MinesNum = 0
   916 	MinesNum = 0
   918 	MinesTime = 3000
   917 	MinesTime = 3000
   919 	Explosives = 0
   918 	Explosives = 0
   920 	Delay = 5
   919 	Delay = 5
   921 	MapGen = 0
   920 	MapGen = 0
       
   921   TemplateFilter = 6
       
   922   TemplateNumber = 27
   922 	Theme = "Nature"
   923 	Theme = "Nature"
   923   SuddenDeathTurns = 3000
   924   SuddenDeathTurns = 3000
   924 
   925 
   925 	AddTeam(loc("Natives"), 29439, "Bone", "Island", "HillBilly", "cm_birdy")
   926 	AddTeam(loc("Natives"), 29439, "Bone", "Island", "HillBilly", "cm_birdy")
   926 	leaks = AddHog(loc("Leaks A Lot"), 0, 100, "Rambo")
   927 	leaks = AddHog(loc("Leaks A Lot"), 0, 100, "Rambo")
   997       end
   998       end
   998     end
   999     end
   999   end
  1000   end
  1000 end
  1001 end
  1001 
  1002 
  1002 function onGearAdd(gear)
       
  1003 end
       
  1004 
       
  1005 function onAmmoStoreInit()
  1003 function onAmmoStoreInit()
  1006   SetAmmo(amBlowTorch, 0, 0, 0, 1)
  1004   SetAmmo(amBlowTorch, 0, 0, 0, 1)
  1007   SetAmmo(amParachute, 0, 0, 0, 1)
  1005   SetAmmo(amParachute, 0, 0, 0, 1)
  1008   SetAmmo(amGirder, 0, 0, 0, 3)
  1006   SetAmmo(amGirder, 0, 0, 0, 3)
  1009   SetAmmo(amLowGravity, 0, 0, 0, 1)
  1007   SetAmmo(amLowGravity, 0, 0, 0, 1)
  1041     SetInputMask(0xFFFFFFFF)
  1039     SetInputMask(0xFFFFFFFF)
  1042     TurnsLeft = TurnsLeft - 1
  1040     TurnsLeft = TurnsLeft - 1
  1043   end
  1041   end
  1044 end
  1042 end
  1045 
  1043 
  1046 function onGearDamage(gear, damage)
       
  1047 end
       
  1048 
       
  1049 function onPrecise()
  1044 function onPrecise()
  1050   if GameTime > 2500 and AnimInProgress() then
  1045   if GameTime > 2500 and AnimInProgress() then
  1051     SetAnimSkip(true)
  1046     SetAnimSkip(true)
  1052     return
  1047     return
  1053   end
  1048   end