Continental supplies: No more hacky switch hog for North America
authorWuzzy <Wuzzy2@mail.ru>
Fri, 04 May 2018 14:46:39 +0200
changeset 13384 4dd503978c0a
parent 13383 c53530142442
child 13385 cd55c7f25e04
Continental supplies: No more hacky switch hog for North America
share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Fri May 04 14:38:01 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Fri May 04 14:46:39 2018 +0200
@@ -1286,10 +1286,8 @@
 
 				if(CS.TEMP_VALUE>1)
 				then
-					AddAmmo(CurrentHedgehog,amSwitch,GetAmmoCount(CurrentHedgehog, amSwitch)+1)
-
-					SetWeapon(amSwitch)
-					CS.TEMP_VALUE=87
+					-- Enable switch hog on turn start (North America)
+					EnableSwitchHog()
 				end
 			end
 
@@ -1824,13 +1822,6 @@
 		SetGravity(100)
 	end
 
-	--enable switch (north america)
-	if(GetCurAmmoType() == amSwitch and CS.TEMP_VALUE==87)
-	then
-		SetGearMessage(CurrentHedgehog,gmAttack)
-		CS.TEMP_VALUE=0
-	end
-
 	if(CS.SPEECH_TIMER > 0) then
 		CS.SPEECH_TIMER = CS.SPEECH_TIMER - 20
 	end