-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #418 from ZeroK-RTS/kodachi-rally
Add Kodachi Rally mission
- Loading branch information
Showing
5 changed files
with
129 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
-------------------------------------------------------------------------------- | ||
-------------------------------------------------------------------------------- | ||
-- Planet config | ||
|
||
local function GetPlanet(planetUtilities, planetID) | ||
|
||
--local image = planetUtilities.planetImages[math.floor(math.random()*#planetUtilities.planetImages) + 1] | ||
local image = LUA_DIRNAME .. "images/planets/barren01.png" | ||
|
||
local planetData = { | ||
name = "Musashi", | ||
startingPlanet = false, | ||
mapDisplay = { | ||
x = (planetUtilities.planetPositions and planetUtilities.planetPositions[planetID][1]) or 0.45, | ||
y = (planetUtilities.planetPositions and planetUtilities.planetPositions[planetID][2]) or 0.23, | ||
image = image, | ||
size = planetUtilities.PLANET_SIZE_MAP, | ||
}, | ||
infoDisplay = { | ||
image = image, | ||
size = planetUtilities.PLANET_SIZE_INFO, | ||
backgroundImage = planetUtilities.backgroundImages[math.floor(math.random()*#planetUtilities.backgroundImages) + 1], | ||
terrainType = "Asteroid", | ||
radius = "670 km", | ||
primary = "Edo", | ||
primaryType = "K1", | ||
milRating = 1, | ||
text = [[This asteroid was used for widely broadcast rally races in a bygone age. A classic challenge now awaits all comers.]] | ||
}, | ||
tips = { | ||
|
||
}, | ||
gameConfig = { | ||
gameName = "Super Extreme Kodachi Rally", | ||
mapName = "Comet Catcher Redux v3.1", | ||
playerConfig = { | ||
startX = 300, | ||
startZ = 3800, | ||
allyTeam = 0, | ||
commanderParameters = {}, | ||
extraUnlocks = {}, | ||
}, | ||
modoptions = { | ||
integral_disable_defence = 1, | ||
integral_disable_special = 1, | ||
}, | ||
aiConfig = { | ||
{ | ||
startX = 4000, | ||
startZ = 75, | ||
aiLib = "NullAI", | ||
humanName = "Enemies", | ||
allyTeam = 1, | ||
unlocks = { | ||
"cloakraid", | ||
"shieldraid", | ||
"vehscout", | ||
"vehraid", | ||
"hoverraid", | ||
"jumpscout", | ||
"tankheavyraid", | ||
"cloakriot", | ||
"shieldriot", | ||
"vehsupport", | ||
"hoverriot", | ||
"jumpraid", | ||
"jumpskirm", | ||
}, | ||
commander = false, | ||
}, | ||
}, | ||
defeatConditionConfig = { | ||
-- Indexed by allyTeam. | ||
[0] = { | ||
ignoreUnitLossDefeat = true, | ||
}, | ||
[1] = { | ||
ignoreUnitLossDefeat = true, | ||
}, | ||
}, | ||
objectiveConfig = { | ||
[1] = { | ||
description = "Complete all rounds", | ||
}, | ||
}, | ||
bonusObjectiveConfig = { | ||
[1] = { -- Lose no more than 40 Kodachis | ||
onlyCountRemovedUnits = true, | ||
satisfyForever = true, | ||
comparisionType = planetUtilities.COMPARE.AT_MOST, | ||
targetNumber = 40, | ||
unitTypes = { | ||
"tankraid", | ||
}, | ||
image = planetUtilities.ICON_DIR .. "tankraid.png", | ||
imageOverlay = planetUtilities.ICON_OVERLAY.GUARD, | ||
description = "Do not lose more than 40 Kodachis", | ||
experience = planetUtilities.BONUS_EXP, | ||
}, | ||
[2] = { -- Win by 30:00 | ||
victoryByTime = 1800, | ||
image = planetUtilities.ICON_OVERLAY.CLOCK, | ||
description = "Win by 30:00", | ||
experience = planetUtilities.BONUS_EXP, | ||
}, | ||
} | ||
}, | ||
completionReward = { | ||
experience = planetUtilities.MAIN_EXP, | ||
modules = {}, | ||
abilities = {}, | ||
codexEntries = {} | ||
}, | ||
} | ||
|
||
return planetData | ||
end | ||
|
||
return GetPlanet |