share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
changeset 10696 173069dd7b17
parent 10673 2f19ff0ded73
child 10897 8ea636ce120a
equal deleted inserted replaced
10694:d2ffce60769a 10696:173069dd7b17
  1343 
  1343 
  1344 		clanPower[GetHogClan(CurrentHedgehog)] = clanPower[GetHogClan(CurrentHedgehog)] - placedExpense
  1344 		clanPower[GetHogClan(CurrentHedgehog)] = clanPower[GetHogClan(CurrentHedgehog)] - placedExpense
  1345 		placedCount = placedCount + 1
  1345 		placedCount = placedCount + 1
  1346 
  1346 
  1347 	else
  1347 	else
  1348 		AddCaption("Invalid Placement",0xffba00ff,capgrpVolume)
  1348 	    if (clanPower[GetHogClan(CurrentHedgehog)] >= placedExpense) then
       
  1349             AddCaption(loc("Invalid Placement"),0xffba00ff,capgrpVolume)
       
  1350         else
       
  1351             AddCaption(loc("Insufficient Power"),0xffba00ff,capgrpVolume)
       
  1352         end
  1349 		PlaySound(sndDenied)
  1353 		PlaySound(sndDenied)
  1350 	end
  1354 	end
  1351 
  1355 
  1352 
  1356 
  1353 end
  1357 end