Skip to content

Commit

Permalink
Merge pull request #418 from ZeroK-RTS/kodachi-rally
Browse files Browse the repository at this point in the history
Add Kodachi Rally mission
  • Loading branch information
GoogleFrog authored Nov 26, 2017
2 parents 79baa54 + c6eff0c commit 39822c6
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,13 @@
"VersionNumber":7,
"SourcePath":"LuaMenu/configs/gameConfig/zk/defaultSettings/games/quicktutorial.sdz",
"TargetPath":"games/quicktutorial.sdz"
},

{
"Platform":null,
"VersionNumber":1,
"SourcePath":"LuaMenu/configs/gameConfig/zk/defaultSettings/games/seeker.sdz",
"TargetPath":"games/seeker.sdz"
}
]
}
Binary file not shown.
3 changes: 2 additions & 1 deletion campaign/sample/planetDefs.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local shortname = "sample"

local N_PLANETS = 70
local N_PLANETS = 71

planetEdgeList = {
{01, 02},
Expand Down Expand Up @@ -78,6 +78,7 @@ planetEdgeList = {
{40, 41},
{41, 29},
{41, 42},
{41, 71},
{42, 46},
{42, 54},
{44, 45},
Expand Down
1 change: 1 addition & 0 deletions campaign/sample/planetUtilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ planetUtilities.planetPositions = {
[68] = {929, 104},
[69] = {55, 890},
[70] = {666, 678},
[71] = {480, 230},
}

for i = 1, #planetUtilities.planetPositions do
Expand Down
119 changes: 119 additions & 0 deletions campaign/sample/planets/planet71.lua
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

0 comments on commit 39822c6

Please sign in to comment.