Skip to content

Commit

Permalink
Fix LZ selection for cam1-ca mission.
Browse files Browse the repository at this point in the history
It was possible to obstruct each LZ with droids. Doing so would
prevent the New Paradigm transporter from arriving.
  • Loading branch information
KJeff01 committed Nov 23, 2017
1 parent 6c19b8d commit bd752be
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions data/base/script/campaign/cam1ca.js
Expand Up @@ -61,13 +61,17 @@ function sendTransport()
var lz = landingZoneList[i];
if (enumArea(lz, CAM_HUMAN_PLAYER, false).length === 0)
{
list[list.length] = { idx: i, label: lz };
list.push({ idx: i, label: lz });
}
}
//If all are compromised then choose the LZ randomly
if (list.length === 0)
{
queue('sendTransport', 10000);
return;
for (var i = 0; i < 2; ++i)
{
var rnd = camRand(landingZoneList.length);
list.push({ idx: rnd, label: landingZoneList[rnd] });
}
}
var picked = list[camRand(list.length)];
lastLZ = picked.idx;
Expand Down

0 comments on commit bd752be

Please sign in to comment.