1101 placedY[placedCount] = y |
1101 placedY[placedCount] = y |
1102 placedType[placedCount] = cat[cIndex] |
1102 placedType[placedCount] = cat[cIndex] |
1103 placedSpec[placedCount] = pMode[pIndex] |
1103 placedSpec[placedCount] = pMode[pIndex] |
1104 |
1104 |
1105 if (clanUsedExtraTime[GetHogClan(CurrentHedgehog)] == true) and (cat[cIndex] == "Utility Crate Placement Mode") and (utilArray[pIndex][1] == amExtraTime) then |
1105 if (clanUsedExtraTime[GetHogClan(CurrentHedgehog)] == true) and (cat[cIndex] == "Utility Crate Placement Mode") and (utilArray[pIndex][1] == amExtraTime) then |
1106 AddCaption(loc("You may only buy 1 Extra Time per turn."),0xffba00ff,capgrpVolume) |
1106 AddCaption(loc("You may only spawn 1 Extra Time per turn."),0xffba00ff,capgrpVolume) |
1107 PlaySound(sndDenied) |
1107 PlaySound(sndDenied) |
1108 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 |
1108 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 |
1109 AddCaption(loc("You may only spawn 5 crates per turn."),0xffba00ff,capgrpVolume) |
1109 AddCaption(loc("You may only spawn 5 crates per turn."),0xffba00ff,capgrpVolume) |
1110 PlaySound(sndDenied) |
1110 PlaySound(sndDenied) |
1111 elseif (XYisInRect(x,y, clanBoundsSX[GetHogClan(CurrentHedgehog)],clanBoundsSY[GetHogClan(CurrentHedgehog)],clanBoundsEX[GetHogClan(CurrentHedgehog)],clanBoundsEY[GetHogClan(CurrentHedgehog)]) == true) |
1111 elseif (XYisInRect(x,y, clanBoundsSX[GetHogClan(CurrentHedgehog)],clanBoundsSY[GetHogClan(CurrentHedgehog)],clanBoundsEX[GetHogClan(CurrentHedgehog)],clanBoundsEY[GetHogClan(CurrentHedgehog)]) == true) |