Remove unused shockwave code in Space Invasion
authorWuzzy <Wuzzy2@mail.ru>
Tue, 21 Aug 2018 21:02:01 +0200
changeset 13686 5662360f6a4a
parent 13685 a2f0cb003d7d
child 13689 739fd039daaa
Remove unused shockwave code in Space Invasion
share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Tue Aug 21 21:00:01 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Tue Aug 21 21:02:01 2018 +0200
@@ -256,10 +256,6 @@
 local pShield
 local shieldHealth
 
-local shockwave
-local shockwaveHealth = 0
-local shockwaveRad = 300
-
 local timer100 = 0
 
 local vTag = {}
@@ -329,7 +325,6 @@
 local colorMsgBonus = 0xFFBA00FF
 local colorTimer = 0xFFEE00FF
 local colorScore = 0xFFFFFFFF
-local colorShockwave = 0xFF3300FF
 
 -------------------------------------------
 -- some lazy copypasta/modified methods
@@ -1096,7 +1091,6 @@
 	boosterOn = false
 	beam = false
 	shieldHealth = startShield + 80 -- 50 = 5 secs, roughly
-	shockwaveHealth = 0
 
 	RK = 0
 	GK = 0
@@ -1617,8 +1611,6 @@
 
 	pShield = AddVisualGear(0,0,vgtCircle,0,true)
 
-	shockwave = AddVisualGear(0,0,vgtCircle,0,true)
-
 end
 
 function IGotMeASafeXYValue(i)
@@ -2198,13 +2190,6 @@
 
 		end
 
-
-		-- derp
-		if shockwaveHealth > 0 then
-			shockwaveHealth = shockwaveHealth - 1
-			shockwaveRad = shockwaveRad + 80
-		end
-
 	end
 
 	for i = 0,(vCCount-1) do
@@ -2227,12 +2212,6 @@
 			SetVisualGearValues(pShield, GetX(CurrentHedgehog), GetY(CurrentHedgehog), nil, nil, nil, nil, nil, 0)
 		end
 
-		if shockwaveHealth > 0 then
-			SetVisualGearValues(shockwave, GetX(CurrentHedgehog), GetY(CurrentHedgehog), nil, nil, nil, nil, nil, shockwaveRad, nil, colorShockwave-0x000000FF - -shockwaveHealth )
-		else
-			SetVisualGearValues(shockwave, GetX(CurrentHedgehog), GetY(CurrentHedgehog), nil, nil, nil, nil, nil, 0)
-		end
-
 	end