# HG changeset patch # User Wuzzy # Date 1460495453 -7200 # Node ID f74010cb62195588dbcfe91715ed16a6ea074ce6 # Parent cea5418c1af605fe3119620ed030edb5fb99220e Remove cheat in Construction Mode diff -r cea5418c1af6 -r f74010cb6219 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