Remove cheat in Construction Mode
authorWuzzy <almikes@aol.com>
Tue, 12 Apr 2016 23:10:53 +0200
changeset 11715 f74010cb6219
parent 11714 cea5418c1af6
child 11716 bfbf6dc83176
Remove cheat in Construction Mode
share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Tue Apr 12 23:06:49 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Tue Apr 12 23:10:53 2016 +0200
@@ -145,7 +145,6 @@
 clanBoundsEY = {}
 
 clanPower = {}
-clanBoon = {}
 clanID = {}
 clanLStrucIndex = {}
 
@@ -165,8 +164,6 @@
 wCol = {}
 margin = 20
 
-tauntString = ""
-
 vTag = {}
 lastWep = nil
 
@@ -1586,19 +1583,6 @@
 
 end
 
---------------------------------------------------
--- EVENT HANDLERS
---------------------------------------------------
-
-function onTaunt(t)
-	tauntString = tauntString .. t
-	if (tauntString == "101") and (clanPower[GetHogClan(CurrentHedgehog)] < 300) and (clanBoon[GetHogClan(CurrentHedgehog)] == false) then
-		clanBoon[GetHogClan(CurrentHedgehog)] = true
-		clanPower[GetHogClan(CurrentHedgehog)] = 1000
-		AddCaption(loc("The Great Hog in the sky sees your sadness and grants you a boon."))
-	end
-end
-
 ---------------------------------------------------------------
 -- Cycle through selection subsets (by changing pIndex, pMode)
 -- i.e 	health of barrels, medikits,
@@ -1805,7 +1789,6 @@
 
 	for i = 0, ClansCount-1 do
 		clanPower[i] = 500
-		clanBoon[i] = false
 		clanLWepIndex[i] = 1 -- for ease of use let's track this stuff
 		clanLUtilIndex[i] = 1
 		clanLGearIndex[i] = 1
@@ -1843,7 +1826,6 @@
 
 function onNewTurn()
 
-	tauntString = ""
 	clanPower[GetHogClan(CurrentHedgehog)] = clanPower[GetHogClan(CurrentHedgehog)] + 50
 	clanUsedExtraTime[GetHogClan(CurrentHedgehog)] = false
 	clanCratesSpawned[GetHogClan(CurrentHedgehog)] = 0