From b7798305ea22c7a82c11f7163dab1b87bdd92081 Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Sat, 4 Nov 2023 11:38:55 -0500 Subject: [PATCH] Refine starting designs for Beta/Gamma 1 --- data/base/script/campaign/cam2-a.js | 8 ++++---- data/base/script/campaign/cam3-a.js | 21 +++++++++++++++------ 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/data/base/script/campaign/cam2-a.js b/data/base/script/campaign/cam2-a.js index 51fbafb0d81..3dbe400232e 100644 --- a/data/base/script/campaign/cam2-a.js +++ b/data/base/script/campaign/cam2-a.js @@ -111,16 +111,16 @@ function sendPlayerTransporter() } const droids = []; - const bodyList = ["Body11ABT", "Body11ABT", "Body12SUP"]; - const propulsionList = ["tracked01", "tracked01", "tracked01", "hover01", "HalfTrack"]; + const bodyList = ["Body12SUP", "Body11ABT"]; + const propulsionList = ["tracked01", "tracked01", "hover01"]; const weaponList = ["Cannon375mmMk1", "Cannon375mmMk1", "Cannon375mmMk1", "Rocket-LtA-T", "Rocket-LtA-T", "Mortar2Mk1", "Rocket-MRL"]; const specialList = ["SensorTurret1Mk1", "CommandBrain01"]; + const BODY = bodyList[camRand(bodyList.length)]; + const PROP = propulsionList[camRand(propulsionList.length)]; for (let i = 0; i < 10; ++i) { - const BODY = bodyList[camRand(bodyList.length)]; const WEAP = (!transporterIndex && (i < specialList.length)) ? specialList[i] : weaponList[camRand(weaponList.length)]; - const PROP = propulsionList[camRand(propulsionList.length - ((WEAP === "Cannon375mmMk1") ? 1 : 0))]; //Ignore halftracks for Heavy Cannon. droids.push({ body: BODY, prop: PROP, weap: WEAP }); } diff --git a/data/base/script/campaign/cam3-a.js b/data/base/script/campaign/cam3-a.js index e62c53cdb99..dddc31c54f0 100644 --- a/data/base/script/campaign/cam3-a.js +++ b/data/base/script/campaign/cam3-a.js @@ -137,21 +137,30 @@ function sendPlayerTransporter() } const droids = []; - const bodyList = ["Body9REC", "Body9REC", "Body9REC", "Body11ABT", "Body12SUP"]; - const propulsionList = ["tracked01", "tracked01", "hover01"]; + const bodyList = ["Body9REC", "Body9REC", "Body11ABT", "Body12SUP"]; + const propulsionList = ["hover01", "hover01", "tracked01"]; const weaponList = ["Cannon5VulcanMk1", "Cannon5VulcanMk1", "Flame2", "Flame2", "MG4ROTARYMk1", "MG4ROTARYMk1", "Cannon4AUTOMk1", "Rocket-HvyA-T"]; const specialList = ["Spade1Mk1", "Spade1Mk1", "CommandBrain01", "CommandBrain01"]; + const BODY = bodyList[camRand(bodyList.length)]; + const PROP = propulsionList[camRand(propulsionList.length)]; for (let i = 0; i < 10; ++i) { - const BODY = bodyList[camRand(bodyList.length)]; + let prop = PROP; let weap = (!transporterIndex && (i < specialList.length)) ? specialList[i] : weaponList[camRand(weaponList.length)]; if (transporterIndex === 1 && i < 4) { - weap = "QuadRotAAGun"; + weap = "QuadRotAAGun"; //Bring 4 Whirlwinds on the 2nd transport. } - const PROP = propulsionList[camRand(propulsionList.length)]; - droids.push({ body: BODY, prop: PROP, weap: weap }); + if (BODY === "Body12SUP") + { + prop = "tracked01"; //Force Mantis to use Tracks. + } + if (weap === "Spade1Mk1") + { + prop = "hover01"; //Force trucks to use Hover. + } + droids.push({ body: BODY, prop: prop, weap: weap }); } camSendReinforcement(CAM_HUMAN_PLAYER, camMakePos("landingZone"), droids,