description and image spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Fri, 23 Aug 2013 03:43:53 +0300
branchspacecampaign
changeset 9568 58cdc9332a54
parent 9566 5c50949cfd07
child 9570 d4b4ddcd85bb
description and image
QTfrontend/hedgewars.qrc
QTfrontend/res/campaign/A_Space_Adventure/death01.png
share/hedgewars/Data/Locale/campaigns_en.txt
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua
--- a/QTfrontend/hedgewars.qrc	Thu Aug 22 23:46:34 2013 +0300
+++ b/QTfrontend/hedgewars.qrc	Fri Aug 23 03:43:53 2013 +0300
@@ -46,6 +46,7 @@
         <file>res/campaign/A_Space_Adventure/desert02.png</file>
         <file>res/campaign/A_Space_Adventure/fruit01.png</file>
         <file>res/campaign/A_Space_Adventure/fruit02.png</file>
+        <file>res/campaign/A_Space_Adventure/death01.png</file>
         <file>res/bonus.png</file>
         <file>res/Hedgehog.png</file>
         <file>res/net.png</file>
Binary file QTfrontend/res/campaign/A_Space_Adventure/death01.png has changed
--- a/share/hedgewars/Data/Locale/campaigns_en.txt	Thu Aug 22 23:46:34 2013 +0300
+++ b/share/hedgewars/Data/Locale/campaigns_en.txt	Fri Aug 23 03:43:53 2013 +0300
@@ -26,3 +26,4 @@
 A_Space_Adventure-desert02.desc="Hog Solo was searching for the part in this tunnel when it unexpectedly start getting flooded! Get to the surface as soon as possible and be careful not to trigger a mine."
 A_Space_Adventure-fruit01.desc="In the fruit planet things aren't going so well. Hogs aren't collecting fruits but they are preparing for battle. You'll have to choose if you'll fight or if you'll flee."
 A_Space_Adventure-fruit02.desc="Hog Solo gets closer to the lost part in the Fruit Planet. Will Captain Lime help him acquire the part or not?"
+A_Space_Adventure-death01.desc="In the Death Planet, the most infertile planet around, Hog Solo is very close to get the last part of the device! However an upleasant surprise awaits him..."
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua	Thu Aug 22 23:46:34 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua	Fri Aug 23 03:43:53 2013 +0300
@@ -21,6 +21,8 @@
 -- crates
 local portalCrate = {x = 1520, y = 1950}
 local cakeCrate = {x = 325, y = 1500}
+local ropeCrate = {x = 1860, y = 500}
+local pickHammerCrate = {x = 1860, y = 400}
 -- hogs
 local hero = {}
 local paoth1 = {}
@@ -46,7 +48,7 @@
 paoth1.name = "H"
 paoth1.x = 3730
 paoth1.y = 1480
-paoth2.name = "Dr. Cornelius"
+paoth2.name = "Dr.Cornelius"
 paoth2.x = 3800
 paoth2.y = 1480
 professor.name = "Prof. Hogevil"
@@ -78,7 +80,7 @@
 teamA.name = loc("Hog Solo")
 teamA.color = tonumber("38D61C",16) -- green
 teamB.name = loc("PAotH")
-teamB.color = tonumber("FF0000",16) -- red
+teamB.color = tonumber("0033FF",16) -- blue because otherwise enemies attack them
 teamC.name = loc("Professor")
 teamC.color = tonumber("0033FF",16) -- blue
 
@@ -103,19 +105,19 @@
 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
 	-- PAotH
 	AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy")
-	paoth1.gear = AddHog(paoth1.name, 0, 100, "war_desertgrenadier1")
+	paoth1.gear = AddHog(paoth1.name, 0, 100, "hair_yellow")
 	AnimSetGearPosition(paoth1.gear, paoth1.x, paoth1.y)
 	HogTurnLeft(paoth1.gear, true)
-	paoth2.gear = AddHog(paoth2.name, 0, 100, "war_desertgrenadier1")
+	paoth2.gear = AddHog(paoth2.name, 0, 100, "Glasses")
 	AnimSetGearPosition(paoth2.gear, paoth2.x, paoth2.y)
 	HogTurnLeft(paoth2.gear, true)
 	-- Professor and Thugs	
 	AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_birdy")
-	professor.human = AddHog(professor.name, 0, 300, "war_desertgrenadier1")
+	professor.human = AddHog(professor.name, 0, 300, "tophats")
 	AnimSetGearPosition(professor.human, hero.x + 70, hero.y)
 	HogTurnLeft(professor.human, true)
 	AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_birdy")
-	professor.bot = AddHog(professor.name, 1, 300, "war_desertgrenadier1")
+	professor.bot = AddHog(professor.name, 1, 300, "tophats")
 	AnimSetGearPosition(professor.bot, paoth1.x - 100, paoth1.y)
 	HogTurnLeft(professor.bot, true)
 	professor.gear = professor.bot
@@ -139,7 +141,10 @@
 	-- add crates
 	SpawnAmmoCrate(portalCrate.x, portalCrate.y, amPortalGun)
 	SpawnAmmoCrate(cakeCrate.x, cakeCrate.y, amCake)
+	SpawnAmmoCrate(ropeCrate.x, ropeCrate.y, amRope)
+	SpawnAmmoCrate(pickHammerCrate.x, pickHammerCrate.y, amPickHammer)
 	SpawnHealthCrate(cakeCrate.x + 40, cakeCrate.y)
+	SpawnHealthCrate(portalCrate.x + 40, portalCrate.y)
 	-- add explosives
 	AddGear(1900, 850, gtExplosives, 0, 0, 0, 0)
 	AddGear(1900, 800, gtExplosives, 0, 0, 0, 0)
@@ -170,8 +175,6 @@
 	AddAmmo(professor.gear, amDEagle, 8)
 	
 	HideHog(professor.bot)
-	--DeleteGear(professor.human)
-	--RestoreHog(professor.bot)
 	AddAnim(dialog01)
 	
 	SendHealthStatsOff()
@@ -179,6 +182,7 @@
 
 function onNewTurn()
 	if CurrentHedgehog == paoth1.gear or CurrentHedgehog == paoth2.gear then
+		AnimSwitchHog(hero.gear)
 		TurnTimeLeft = 0
 	end
 end
@@ -195,6 +199,8 @@
 function onAmmoStoreInit()
 	SetAmmo(amCake, 0, 0, 0, 1)
 	SetAmmo(amPortalGun, 0, 0, 0, 1)
+	SetAmmo(amRope, 0, 0, 0, 2)
+	SetAmmo(amPickHammer, 0, 0, 0, 1)
 end
 
 function onGearDelete(gear)