From 99b74a8dd4e95019c756d15e4e9b8d0eaa635a07 Mon Sep 17 00:00:00 2001 From: Aquanim Date: Sat, 24 Mar 2018 15:07:28 +1100 Subject: [PATCH 1/2] Added some friendly units to mission 55 (nuke) along with a few minor changes. --- campaign/sample/planets/planet55.lua | 73 +++++++++++++++++++++++++--- 1 file changed, 67 insertions(+), 6 deletions(-) diff --git a/campaign/sample/planets/planet55.lua b/campaign/sample/planets/planet55.lua index d38ad544d..1e648137e 100644 --- a/campaign/sample/planets/planet55.lua +++ b/campaign/sample/planets/planet55.lua @@ -550,7 +550,30 @@ local function GetPlanet(planetUtilities, planetID) "spideraa", }, commander = false, + midgameUnits = { + { + name = "striderdante", + x = 200, + z = 7000, + facing = 2, + spawnRadius = 50, + delay = 8*30*60, + orbitalDrop = true, + }, + }, startUnits = { + { + name = "pw_metal", + x = 700, + z = 8000, + facing = 2, + }, + { + name = "striderdante", + x = 200, + z = 7000, + facing = 2, + }, { name = "staticmex", x = 2456, @@ -1301,7 +1324,51 @@ local function GetPlanet(planetUtilities, planetID) "gunshipkrow", }, commander = false, + midgameUnits = { + { + name = "gunshipkrow", + x = 6300, + z = 8000, + facing = 2, + spawnRadius = 50, + delay = 2*30*60, + orbitalDrop = true, + }, + { + name = "striderdante", + x = 8000, + z = 7000, + facing = 2, + spawnRadius = 50, + delay = 8*30*60, + orbitalDrop = true, + }, + }, startUnits = { + { + name = "pw_metal", + x = 7300, + z = 8000, + facing = 2, + }, + { + name = "striderdante", + x = 8000, + z = 7000, + facing = 2, + }, + { + name = "energypylon", + x = 7650, + z = 6100, + facing = 2, + }, + { + name = "turretheavy", + x = 7620, + z = 5730, + facing = 2, + }, { name = "turretaaflak", x = 6440, @@ -2057,12 +2124,6 @@ local function GetPlanet(planetUtilities, planetID) z = 700, facing = 0, }, - { - name = "striderfunnelweb", - x = 5400, - z = 700, - facing = 0, - }, { name = "striderfunnelweb", x = 5400, From e2387521045727bb6cb871730215f2b86e0a40a1 Mon Sep 17 00:00:00 2001 From: Aquanim Date: Sat, 24 Mar 2018 15:56:31 +1100 Subject: [PATCH 2/2] Changes to mission 62 (Scorpion): Enemy cannot build Merlin or Paladin but gets some free Paladins. Start with one extra Scorpion. Other minor changes. --- campaign/sample/planets/planet62.lua | 115 +++++++++++++++++++-------- 1 file changed, 84 insertions(+), 31 deletions(-) diff --git a/campaign/sample/planets/planet62.lua b/campaign/sample/planets/planet62.lua index cd925b741..7bdc78dca 100644 --- a/campaign/sample/planets/planet62.lua +++ b/campaign/sample/planets/planet62.lua @@ -38,7 +38,7 @@ local function GetPlanet(planetUtilities, planetID) }, { image = "unitpics/staticnuke.png", - text = [[Your ally is building a Trinity nuclear silo but the enemy is well protected by Antinukes. Destroy the Antinukes to give your team the upper hand.]] + text = [[Your ally has constructed a Trinity nuclear silo but the enemy is well protected by Antinukes. Destroy the Antinukes to give your team the upper hand.]] }, }, gameConfig = { @@ -57,6 +57,36 @@ local function GetPlanet(planetUtilities, planetID) }, startUnits = { + { + name = "striderscorpion", + x = 1300, + z = 3800, + facing = 1, + }, + { + name = "striderscorpion", + x = 1300, + z = 4000, + facing = 1, + }, + { + name = "striderscorpion", + x = 1500, + z = 3900, + facing = 1, + }, + { + name = "energyfusion", + x = 630, + z = 4260, + facing = 0, + }, + { + name = "energyfusion", + x = 800, + z = 4420, + facing = 0, + }, { name = "staticmex", x = 920, @@ -172,18 +202,6 @@ local function GetPlanet(planetUtilities, planetID) {cmdID = planetUtilities.COMMAND.PATROL, pos = {1209, 3879}, options = {"shift"}}, }, }, - { - name = "striderscorpion", - x = 1300, - z = 3800, - facing = 1, - }, - { - name = "striderscorpion", - x = 1300, - z = 4000, - facing = 1, - }, { name = "staticstorage", x = 1048, @@ -298,7 +316,6 @@ local function GetPlanet(planetUtilities, planetID) x = 496, z = 1776, facing = 1, - buildProgress = 0.5, }, { name = "staticstorage", @@ -1561,7 +1578,7 @@ local function GetPlanet(planetUtilities, planetID) "energygeo", "energypylon", "staticstorage", - "turretmissile", + --"turretmissile", "staticradar", "staticcon", "staticrearm", @@ -1589,9 +1606,12 @@ local function GetPlanet(planetUtilities, planetID) "planefighter", "planeheavyfighter", "bomberprec", - "bomberheavy", + --"bomberheavy", "bomberdisarm", }, + difficultyDependantUnlocks = { + [4] = {"bomberheavy"}, + }, commander = false, startUnits = { { @@ -2828,7 +2848,7 @@ local function GetPlanet(planetUtilities, planetID) } }, { - humanName = "Enemy #2", + humanName = "Chevalier", aiLib = "Circuit_difficulty_autofill", bitDependant = true, --aiLib = "Null AI", @@ -2841,8 +2861,38 @@ local function GetPlanet(planetUtilities, planetID) z = 1500, facing = 2, spawnRadius = 50, - delay = 7.5*30*60, + delay = 6*30*60, orbitalDrop = true, + difficultyAtLeast = 3, + }, + { + name = "striderbantha", + x = 8700, + z = 1500, + facing = 2, + spawnRadius = 50, + delay = 13*30*60, + orbitalDrop = true, + difficultyAtLeast = 2, + }, + { + name = "striderbantha", + x = 8700, + z = 1500, + facing = 2, + spawnRadius = 50, + delay = 19*30*60, + orbitalDrop = true, + }, + { + name = "striderbantha", + x = 8700, + z = 1500, + facing = 2, + spawnRadius = 50, + delay = 19*30*60, + orbitalDrop = true, + difficultyAtLeast = 4, }, { name = "striderarty", @@ -2859,7 +2909,7 @@ local function GetPlanet(planetUtilities, planetID) z = 1500, facing = 2, spawnRadius = 50, - delay = 2*30*60, + delay = 4*30*60, orbitalDrop = true, difficultyAtLeast = 3, }, @@ -2869,7 +2919,7 @@ local function GetPlanet(planetUtilities, planetID) z = 1500, facing = 2, spawnRadius = 50, - delay = 3.5*30*60, + delay = 8*30*60, orbitalDrop = true, }, { @@ -2878,7 +2928,7 @@ local function GetPlanet(planetUtilities, planetID) z = 1500, facing = 2, spawnRadius = 50, - delay = 9*30*60, + delay = 12*30*60, orbitalDrop = true, }, }, @@ -2890,7 +2940,7 @@ local function GetPlanet(planetUtilities, planetID) "energygeo", "energypylon", "staticstorage", - "turretmissile", + --"turretmissile", "staticradar", "staticcon", "staticrearm", @@ -2917,10 +2967,13 @@ local function GetPlanet(planetUtilities, planetID) "tankheavyarty", "tankaa", "tankriot", - "striderhub", + --"striderhub", "striderdante", - "striderarty", - "striderbantha", + --"striderarty", + --"striderbantha", + }, + difficultyDependantUnlocks = { + [4] = {"striderhub",} }, commander = false, startUnits = { @@ -2959,7 +3012,7 @@ local function GetPlanet(planetUtilities, planetID) x = 8340, z = 6024, facing = 3, - buildProgress = 0.2, + buildProgress = 0.1, difficultyAtLeast = 1, difficultyAtMost = 1, }, @@ -2968,7 +3021,7 @@ local function GetPlanet(planetUtilities, planetID) x = 8340, z = 6024, facing = 3, - buildProgress = 0.4, + buildProgress = 0.2, difficultyAtLeast = 2, difficultyAtMost = 2, }, @@ -2977,7 +3030,7 @@ local function GetPlanet(planetUtilities, planetID) x = 8340, z = 6024, facing = 3, - buildProgress = 0.6, + buildProgress = 0.3, difficultyAtLeast = 3, difficultyAtMost = 3, }, @@ -2986,7 +3039,7 @@ local function GetPlanet(planetUtilities, planetID) x = 8340, z = 6024, facing = 3, - buildProgress = 0.8, + buildProgress = 0.4, difficultyAtLeast = 4, difficultyAtMost = 4, }, @@ -3901,13 +3954,13 @@ local function GetPlanet(planetUtilities, planetID) [1] = { satisfyOnce = true, comparisionType = planetUtilities.COMPARE.AT_LEAST, - targetNumber = 5, + targetNumber = 6, unitTypes = { "striderscorpion", }, image = planetUtilities.ICON_DIR .. "striderscorpion.png", imageOverlay = planetUtilities.ICON_OVERLAY.REPAIR, - description = "Have 5 Scorpions", + description = "Have 6 Scorpions", experience = planetUtilities.BONUS_EXP, }, [2] = {