smaller moon map and check if hero health is set spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Wed, 17 Jul 2013 04:05:54 +0300
branchspacecampaign
changeset 9336 5f2224dce442
parent 9334 4bf3edc24444
child 9338 2f00ea2ea8df
smaller moon map and check if hero health is set
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.hwp
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
Binary file share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.hwp has changed
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Fri Jul 12 12:00:30 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Wed Jul 17 04:05:54 2013 +0300
@@ -77,8 +77,8 @@
 paoth4.x = 3860
 paoth4.y = 1800
 professor.name = "Pr.Hogevil"
-professor.x = 3710
-professor.y = 1650
+professor.x = 3800
+professor.y = 1600
 professor.dead = false
 professor.health = 100
 minion1.name = "Minion"
@@ -114,7 +114,7 @@
 	Theme = "Cheese" -- Because ofc moon is made of cheese :)
 	-- Hog Solo
 	AddTeam(teamD.name, teamD.color, "Bone", "Island", "HillBilly", "cm_birdy")
-	if GetCampaignVar("HeroHealth") then
+	if GetCampaignVar("HeroHealth") and string.len(GetCampaignVar("HeroHealth")) > 0 then
 		hero.gear = AddHog(hero.name, 0, tonumber(GetCampaignVar("HeroHealth")), "war_desertgrenadier1")
 	else
 		hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
@@ -236,6 +236,7 @@
 
 function onNewTurn()		
 	-- rounds start if hero got his weapons or got near the enemies
+	WriteLnToConsole(GetX(professor.gear))
 	if not weaponsAcquired and not battleZoneReached and CurrentHedgehog ~= hero.gear then
 		TurnTimeLeft = 0
 	elseif weaponsAcquired and not battleZoneReached and CurrentHedgehog ~= hero.gear then