Always remove mine strike in Construction Mode
authorWuzzy <Wuzzy2@mail.ru>
Sat, 10 Feb 2018 11:46:57 +0100
changeset 12959 50dd4f88daf4
parent 12958 7ea62261c481
child 12960 4fbe2d18df9c
Always remove mine strike in Construction Mode
ChangeLog.txt
share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
--- a/ChangeLog.txt	Sat Feb 10 10:19:28 2018 +0100
+++ b/ChangeLog.txt	Sat Feb 10 11:46:57 2018 +0100
@@ -21,6 +21,7 @@
  + Construction Mode: Remember all selections
  + Construction Mode: Add subtle glow to healing station
  + Construction Mode: Change message colors
+ * Construction Mode: Remove mine strike if added by weapon scheme (it's broken)
 
 A Space Adventure:
  + Precise Shooting: Display collected ammo
--- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Sat Feb 10 10:19:28 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Sat Feb 10 11:46:57 2018 +0100
@@ -154,6 +154,8 @@
 -- WEAPON CRATES
 -- Weapons which shouldn't be aded:
 -- Air attack, napalm, drillstrike: Overwritten weapons for the Construction Mode tools
+-- Mine strike: Is currently broken
+-- Piano strike: Hog is resurrected by respawner
 local atkArray = {
 	{amBazooka,	 2*costFactor},
 	--{amBee,	 4*costFactor},
@@ -1482,16 +1484,23 @@
 
 function initialSetup(gear)
 
-	-- engine already placed hogs in fort mode
+	-- Engine already placed hogs in fort mode
 	if not fortMode then
 		FindPlace(gear, false, clanBoundsSX[GetHogClan(gear)], clanBoundsEX[GetHogClan(gear)],true)
 	end
 
-	-- for now, everyone should have this stuff
+
+	-- Add core ammo
 	AddAmmo(gear, amCMStructurePlacer, 100)
 	AddAmmo(gear, amSwitch, 100)
 	AddAmmo(gear, amSkip, 100)
 
+	-- Remove the other special Construction Mode tools
+	AddAmmo(gear, amCMObjectPlacer, 0)
+	AddAmmo(gear, amCMCratePlacer, 0)
+
+	-- Mine strike is broken
+	AddAmmo(gear, amMineStrike, 0)
 end
 
 function onGameStart()