# HG changeset patch # User Wuzzy # Date 1534878121 -7200 # Node ID 5662360f6a4a9253f46be63548192b7464d13ae6 # Parent a2f0cb003d7dc9ae6699e6322427c3412d2a9e19 Remove unused shockwave code in Space Invasion diff -r a2f0cb003d7d -r 5662360f6a4a 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