# HG changeset patch # User Periklis Ntanasis # Date 1376163891 -10800 # Node ID d46172a4921596755d34f7aa49d840ff8e2e99b5 # Parent b72e99bcc423ad617840ac4900d086f1d845a593 bug finaly fixed diff -r b72e99bcc423 -r d46172a49215 share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua --- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua Sat Aug 10 21:08:39 2013 +0300 +++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua Sat Aug 10 22:44:51 2013 +0300 @@ -98,7 +98,7 @@ HogTurnLeft(hero.gear, true) -- Green Bananas AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy") - green1.gear = AddHog(green1.name, 0, 100, "war_desertgrenadier1") + green1.gear = AddHog(green1.name, 1, 100, "war_desertgrenadier1") AnimSetGearPosition(green1.gear, green1.x, green1.y) green2.gear = AddHog(green2.name, 0, 100, "war_desertgrenadier1") AnimSetGearPosition(green2.gear, green2.x, green2.y) @@ -165,13 +165,16 @@ SpawnHealthCrate(health1X, health1Y) SpawnAmmoCrate(crateWMX, crateWMY, amWatermelon) + SetHogLevel(green1.gear,0) AddAnim(dialog01) SendHealthStatsOff() end function onNewTurn() + WriteLnToConsole("NEW TURN "..TotalRounds.." hog "..CurrentHedgehog) if chooseToBattle then if CurrentHedgehog == green1.gear then + WriteLnToConsole("IT'S GREEN HOG ") TotalRounds = TotalRounds - 2 SwitchHog(previousHog) TurnTimeLeft = 0 @@ -380,9 +383,7 @@ ------------- OTHER FUNCTIONS --------------- function startBattle() - if not chooseBattle then - SetHogLevel(green1.gear, 1) - end + SetHogLevel(green1.gear, 1) AnimSwitchHog(yellow1.gear) TurnTimeLeft = 0 end