# HG changeset patch # User nemo # Date 1351352018 14400 # Node ID 5c2337f8dbb24b7535f91aa75c517181d7b3a350 # Parent 3e031b3b33e67850c0f8ed4d7939b1ee353e6af6 Issue #443 - change in syntax for effects diff -r 3e031b3b33e6 -r 5c2337f8dbb2 share/hedgewars/Data/Maps/CTF_Blizzard/map.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 diff -r 3e031b3b33e6 -r 5c2337f8dbb2 share/hedgewars/Data/Maps/Control/map.lua --- 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 diff -r 3e031b3b33e6 -r 5c2337f8dbb2 share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua --- 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 diff -r 3e031b3b33e6 -r 5c2337f8dbb2 share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua --- 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 diff -r 3e031b3b33e6 -r 5c2337f8dbb2 share/hedgewars/Data/Scripts/Multiplayer/Racer.lua --- 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 diff -r 3e031b3b33e6 -r 5c2337f8dbb2 share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua --- 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