Issue #443 - change in syntax for effects
authornemo
Sat, 27 Oct 2012 11:33:38 -0400
changeset 7838 5c2337f8dbb2
parent 7837 3e031b3b33e6
child 7839 e45a7a159981
issue #443 - change in syntax for effects
share/hedgewars/Data/Maps/CTF_Blizzard/map.lua
share/hedgewars/Data/Maps/Control/map.lua
share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua
share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua
share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
--- a/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua	Sat Oct 27 14:50:38 2012 +0200
+++ b/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua	Sat Oct 27 11:33:38 2012 -0400
@@ -238,7 +238,7 @@
 	if fCaptures[teamID] == 3 then
 		for i = 0, (numhhs-1) do
 			if GetHogClan(hhs[i]) == alt then
-				SetEffect(hhs[i], heResurrectable, false)
+				SetEffect(hhs[i], heResurrectable, 0)
 				SetHealth(hhs[i],0)
 			end
 		end
@@ -784,7 +784,7 @@
 
 		hhs[numhhs] = gear
 		numhhs = numhhs + 1
-		SetEffect(gear, heResurrectable, true)
+		SetEffect(gear, heResurrectable, 1)
 
 	end
 
--- a/share/hedgewars/Data/Maps/Control/map.lua	Sat Oct 27 14:50:38 2012 +0200
+++ b/share/hedgewars/Data/Maps/Control/map.lua	Sat Oct 27 11:33:38 2012 -0400
@@ -400,7 +400,7 @@
 			for i = 0, (numhhs-1) do
 				if hhs[i] ~= nil then				
 					if GetHogClan(hhs[i]) ~= winnerClan then
-						SetEffect(hhs[i], heResurrectable, false)
+						SetEffect(hhs[i], heResurrectable, 0)
 						SetHealth(hhs[i],0)
 					end
 				end			
@@ -501,7 +501,7 @@
 	if GetGearType(gear) == gtHedgehog then
 		hhs[numhhs] = gear
 		numhhs = numhhs + 1
-		SetEffect(gear, heResurrectable, true)
+		SetEffect(gear, heResurrectable, 1)
 	end
 
 end
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua	Sat Oct 27 14:50:38 2012 +0200
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua	Sat Oct 27 11:33:38 2012 -0400
@@ -112,7 +112,7 @@
 	Player = AddHog( loc( "Hunter" ), 0, 1, "StrawHat" ) -- Add a hog for it, and name it "Hunter"
 	SetGearPosition( Player, 420, 1750 ) -- Set player position
 
-	SetEffect( Player, heResurrectable, true ) -- By Suggestion :)
+	SetEffect( Player, heResurrectable, 1 ) -- By Suggestion :)
 end
 
 function onGameStart() -- Called when the game starts
@@ -134,7 +134,7 @@
 		Info(loc("Aiming Practice"), loc("You did not make it in time, try again!"), -amSkip )
 		SetHealth( Player, 0 ) -- Kill the player so he can't keep moving!
 
-		SetEffect( Player, heResurrectable, false )
+		SetEffect( Player, heResurrectable, 0 )
 
 	end
 
@@ -146,7 +146,7 @@
 			ParseCommand("teamgone " .. loc( "Rope Team" ))
 
 			--SetHealth( Player, 0 ) -- Kill the player so he can't keep moving!
-			--SetEffect( Player, heResurrectable, false )
+			--SetEffect( Player, heResurrectable, 0 )
 			TurnTimeLeft = 1
 
 			WaitTime = -1
--- a/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Sat Oct 27 14:50:38 2012 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua	Sat Oct 27 11:33:38 2012 -0400
@@ -144,7 +144,7 @@
 		for i = 0, (numhhs-1) do
 			if hhs[i] ~= nil then
 				if GetHogClan(hhs[i]) == alt then
-					SetEffect(hhs[i], heResurrectable, false)
+					SetEffect(hhs[i], heResurrectable, 0)
 					SetHealth(hhs[i],0)
 				end
 			end
@@ -607,7 +607,7 @@
 	if GetGearType(gear) == gtHedgehog then
 		hhs[numhhs] = gear
 		numhhs = numhhs + 1
-		SetEffect(gear, heResurrectable, true)
+		SetEffect(gear, heResurrectable, 1)
 
 	elseif GetGearType(gear) == gtPiano then
 
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sat Oct 27 14:50:38 2012 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sat Oct 27 11:33:38 2012 -0400
@@ -351,7 +351,7 @@
 	if roundNumber == roundLimit then
 		for i = 0, (numhhs-1) do
 			if GetHogClan(hhs[i]) ~= bestClan then
-				SetEffect(hhs[i], heResurrectable, false)
+				SetEffect(hhs[i], heResurrectable, 0)
 				SetHealth(hhs[i],0)
 			end
 		end
@@ -372,7 +372,7 @@
 		if turnN == 2 then
 			for i = 0, (numhhs-1) do
 				if hhs[i] ~= nil then
-					SetEffect(hhs[i], heResurrectable, false)
+					SetEffect(hhs[i], heResurrectable, 0)
 					SetHealth(hhs[i],0)
 				end
 			end
@@ -674,7 +674,7 @@
 	if GetGearType(gear) == gtHedgehog then
 		hhs[numhhs] = gear
 		numhhs = numhhs + 1
-		SetEffect(gear, heResurrectable, true)
+		SetEffect(gear, heResurrectable, 1)
 	end
 
 	if GetGearType(gear) == gtAirAttack then
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Sat Oct 27 14:50:38 2012 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Sat Oct 27 11:33:38 2012 -0400
@@ -619,7 +619,7 @@
 
 		for i = 0, (numhhs-1) do
 			if GetHogClan(hhs[i]) ~= bestClan then
-				SetEffect(hhs[i], heResurrectable, false)
+				SetEffect(hhs[i], heResurrectable, 0)
 				SetHealth(hhs[i],0)
 			end
 		end
@@ -1448,7 +1448,7 @@
 	--end
 
 	if GetGearType(gear) == gtHedgehog then
-		SetEffect(gear, heResurrectable, true)
+		SetEffect(gear, heResurrectable, 1)
 
 		-----------
 		-- control