# HG changeset patch # User Periklis Ntanasis # Date 1374023154 -10800 # Node ID 5f2224dce4425b8267de3ae97ec75c3898fe13dc # Parent 4bf3edc244442b4149a38924fb76b9db449c4c33 smaller moon map and check if hero health is set diff -r 4bf3edc24444 -r 5f2224dce442 share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.hwp Binary file share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.hwp has changed diff -r 4bf3edc24444 -r 5f2224dce442 share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua --- 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