HedgeEditor: Allow to set sticky mine timer
authorWuzzy <almikes@aol.com>
Sat, 09 Apr 2016 04:22:39 +0200
changeset 11989 a6f4e4265d2e
parent 11988 46bd207d1b17
child 11990 c3866ee03b82
HedgeEditor: Allow to set sticky mine timer
share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Nov 23 13:08:24 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Sat Apr 09 04:22:39 2016 +0200
@@ -1602,6 +1602,7 @@
 		SetTimer(gear, pMode[pIndex])
 	elseif cat[cIndex] == loc("Sticky Mine Placement Mode") then
 		gear = AddGear(x, y, gtSMine, 0, 0, 0, 0)
+		SetTimer(gear, pMode[pIndex])
 	elseif cat[cIndex] == loc("Air Mine Placement Mode") then
 		gear = AddGear(x, y, gtAirMine, 0, 0, 0, 0)
 		SetTimer(gear, pMode[pIndex])
@@ -1782,7 +1783,7 @@
 		pMode = {1,1000,2000,3000,4000,5000,0}
 		-- 0 is dud right, or is that nil?
 	elseif cat[cIndex] == loc("Sticky Mine Placement Mode") then
-		pMode = {loc("Normal Sticky Mine")}
+		pMode = {500,750,1000,1250,1500,2000,3000,0,250}
 	elseif cat[cIndex] == loc("Air Mine Placement Mode") then
 		pMode = {1,1000,2000,3000,4000,5000,0}
 	elseif cat[cIndex] == loc("Advanced Repositioning Mode") then
@@ -3029,6 +3030,7 @@
 				loc("STiCKY MINE PLACEMENT MODE"),
 				loc("Use this mode to place sticky mines"),
 				loc("Place Object: [Left Click]") .. "|" ..
+				loc("Change Timer (in milliseconds): [Left], [Right]") .. "|" ..
 				" " .. "|" ..
 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
 				loc("Toggle Help: Precise+1") .. "|" ..