share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
changeset 14339 efd2e8e217c9
parent 14301 8fc6ac47f00a
child 14348 ffebbcc40c9b
equal deleted inserted replaced
14338:ce2e67c5af14 14339:efd2e8e217c9
  1187 		local updated = false
  1187 		local updated = false
  1188 		local team = GetHogTeamName(CurrentHedgehog)
  1188 		local team = GetHogTeamName(CurrentHedgehog)
  1189 		if (curWep == amGirder) then
  1189 		if (curWep == amGirder) then
  1190 			cIndex = 1
  1190 			cIndex = 1
  1191 			RedefineSubset()
  1191 			RedefineSubset()
       
  1192 			updateCost()
  1192 			updated = true
  1193 			updated = true
  1193 		elseif (curWep == amRubber) then
  1194 		elseif (curWep == amRubber) then
  1194 			cIndex = 2
  1195 			cIndex = 2
  1195 			RedefineSubset()
  1196 			RedefineSubset()
       
  1197 			updateCost()
  1196 			updated = true
  1198 			updated = true
  1197 		elseif (curWep == amCMStructurePlacer) then
  1199 		elseif (curWep == amCMStructurePlacer) then
  1198 			cIndex = 9
  1200 			cIndex = 9
  1199 			RedefineSubset()
  1201 			RedefineSubset()
  1200 			updateCost()
  1202 			updateCost()
  1535 		end
  1537 		end
  1536 	end
  1538 	end
  1537 
  1539 
  1538 	if foundMatch == true then
  1540 	if foundMatch == true then
  1539 		RedefineSubset()
  1541 		RedefineSubset()
  1540 		--updateCost()
       
  1541 		HandleConstructionModeTools()
  1542 		HandleConstructionModeTools()
  1542 	end
  1543 	end
  1543 end
  1544 end
  1544 
  1545 
  1545 ---------------------
  1546 ---------------------