share/hedgewars/Data/Missions/Scenario/Big_Armory.lua
branchhedgeroid
changeset 15515 7030706266df
parent 14654 e7b2542c4d28
child 15500 5326b7e90a69
equal deleted inserted replaced
7861:bc7b6aa5d67a 15515:7030706266df
       
     1 HedgewarsScriptLoad("/Scripts/SimpleMission.lua")
       
     2 HedgewarsScriptLoad("/Scripts/Locale.lua")
       
     3 
       
     4 local heroAmmo = {}
       
     5 for a=0, amCreeper do
       
     6 	if a == amExtraTime then
       
     7 		heroAmmo[a] = 2
       
     8 	elseif a ~= amNothing and a ~= amCreeper then
       
     9 		heroAmmo[a] = 100
       
    10 	end
       
    11 end
       
    12 
       
    13 SimpleMission({
       
    14 	missionTitle = loc("Big Armory"),
       
    15 	missionIcon = -amBazooka,
       
    16 	wind = 15,
       
    17 	initVars = {
       
    18 		TurnTime = 45000,
       
    19 		GameFlags = gfDisableWind + gfDisableLandObjects,
       
    20 		Theme = "EarthRise",
       
    21 		Map = "BigArmory", -- from sidecar HWP
       
    22 		--[[ Map has been generated in Hedgewars 0.9.24 and
       
    23                      then exported as PNG with these settings:
       
    24 		* Seed = "{7e34a56b-ee7b-4fe1-8f30-352a998f3f6a}"
       
    25 		* MapGen = mgRandom
       
    26 		* MapFeatureSize = 12
       
    27 		* Theme = "EarthRise"
       
    28 		* relevant GameFlag: gfDisableLandObjects ]]
       
    29 	},
       
    30 	teams = {
       
    31 		{ isMissionTeam = true,
       
    32 		clanID = 0,
       
    33 		hogs = {
       
    34 			{
       
    35 			health = 100,
       
    36 			x = 543, y = 1198,
       
    37 			ammo = heroAmmo,
       
    38 			}
       
    39 		}, },
       
    40 
       
    41 		{ name = loc("Galaxy Guardians"),
       
    42 		clanID = 8,
       
    43 		flag = "cm_galaxy",
       
    44 		grave = "Earth",
       
    45 		hogs = {
       
    46 			{name=loc("Rocket"), x=796, y=1208, faceLeft=true},
       
    47 			{name=loc("Star"), x=733, y=1546, faceLeft=true},
       
    48 			{name=loc("Asteroid"), x=738, y=1887, faceLeft=true},
       
    49 			{name=loc("Comet"), x=937, y=1344, faceLeft=true},
       
    50 			{name=loc("Sunflame"), x=3424, y=1555},
       
    51 			{name=loc("Eclipse"), x=3417, y=1119},
       
    52 			{name=loc("Jetpack"), x=2256, y=1280},
       
    53 			{name=loc("Void"), x=1587, y=1265, faceLeft=true},
       
    54 		}, },
       
    55 	},
       
    56 	customNonGoals = {
       
    57 		{ type = "turns", turns = 1, failText = loc("You failed to kill all enemies in a single turn.") }
       
    58 	},
       
    59 	customGoalCheck = "turnEnd",
       
    60 	goalText = loc("Kill all enemy hedgehogs in a single turn."),
       
    61 })