share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
changeset 11711 bfbf6dc83176
parent 11710 f74010cb6219
child 11712 0a33c3172e6d
equal deleted inserted replaced
11710:f74010cb6219 11711:bfbf6dc83176
  1197 	placedY[placedCount] = y
  1197 	placedY[placedCount] = y
  1198 	placedType[placedCount] = cat[cIndex]
  1198 	placedType[placedCount] = cat[cIndex]
  1199 	placedSpec[placedCount] = pMode[pIndex]
  1199 	placedSpec[placedCount] = pMode[pIndex]
  1200 
  1200 
  1201 	if (clanUsedExtraTime[GetHogClan(CurrentHedgehog)] == true) and (cat[cIndex] == "Utility Crate Placement Mode") and (utilArray[pIndex][1] == amExtraTime) then
  1201 	if (clanUsedExtraTime[GetHogClan(CurrentHedgehog)] == true) and (cat[cIndex] == "Utility Crate Placement Mode") and (utilArray[pIndex][1] == amExtraTime) then
  1202 		AddCaption(loc("You may only use 1 Extra Time per turn."),0xffba00ff,capgrpVolume)
  1202 		AddCaption(loc("You may only buy 1 Extra Time per turn."),0xffba00ff,capgrpVolume)
  1203 		PlaySound(sndDenied)
  1203 		PlaySound(sndDenied)
  1204 	elseif (clanCratesSpawned[GetHogClan(CurrentHedgehog)] > 4) and ( (cat[cIndex] == "Health Crate Placement Mode") or (cat[cIndex] == "Utility Crate Placement Mode") or (cat[cIndex] == "Weapon Crate Placement Mode")  )  then
  1204 	elseif (clanCratesSpawned[GetHogClan(CurrentHedgehog)] > 4) and ( (cat[cIndex] == "Health Crate Placement Mode") or (cat[cIndex] == "Utility Crate Placement Mode") or (cat[cIndex] == "Weapon Crate Placement Mode")  )  then
  1205 		AddCaption(loc("You may only spawn 5 crates per turn."),0xffba00ff,capgrpVolume)
  1205 		AddCaption(loc("You may only spawn 5 crates per turn."),0xffba00ff,capgrpVolume)
  1206 		PlaySound(sndDenied)
  1206 		PlaySound(sndDenied)
  1207 	elseif (XYisInRect(x,y, clanBoundsSX[GetHogClan(CurrentHedgehog)],clanBoundsSY[GetHogClan(CurrentHedgehog)],clanBoundsEX[GetHogClan(CurrentHedgehog)],clanBoundsEY[GetHogClan(CurrentHedgehog)]) == true)
  1207 	elseif (XYisInRect(x,y, clanBoundsSX[GetHogClan(CurrentHedgehog)],clanBoundsSY[GetHogClan(CurrentHedgehog)],clanBoundsEX[GetHogClan(CurrentHedgehog)],clanBoundsEY[GetHogClan(CurrentHedgehog)]) == true)