Replaced "Dummy" missions with manual complete flag.
This commit is contained in:
parent
a251459413
commit
e31f39d3a9
|
@ -5,6 +5,7 @@
|
|||
"background" : "gfx/backgrounds/background04.jpg",
|
||||
"planet" : "gfx/planets/bluePlanet.png",
|
||||
"music" : "music/heroism.ogg",
|
||||
"manualComplete" : 1,
|
||||
"objectives" : [
|
||||
{
|
||||
"description" : "Destroy INF Dirk",
|
||||
|
@ -24,13 +25,6 @@
|
|||
"targetValue" : 4,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active": 0
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"player" : {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"background" : "gfx/backgrounds/background04.jpg",
|
||||
"planet" : "gfx/planets/bluePlanet.png",
|
||||
"music" : "music/heroism.ogg",
|
||||
"manualComplete" : 1,
|
||||
"objectives" : [
|
||||
{
|
||||
"description" : "Destroy INF Khopesh",
|
||||
|
@ -36,13 +37,6 @@
|
|||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"isCondition": 1
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"player" : {
|
||||
|
|
|
@ -5,19 +5,13 @@
|
|||
"background" : "gfx/backgrounds/background03.jpg",
|
||||
"planet" : "gfx/planets/mythos.png",
|
||||
"music" : "music/heroism.ogg",
|
||||
"manualComplete" : 1,
|
||||
"objectives" : [
|
||||
{
|
||||
"description" : "Destroy all enemy targets",
|
||||
"targetName" : "Pandoran",
|
||||
"targetValue" : 100,
|
||||
"targetType" : "TT_DESTROY"
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"player" : {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"requires" : 4,
|
||||
"planet" : "gfx/planets/bluePlanet.png",
|
||||
"music" : "music/determination.mp3",
|
||||
"manualComplete" : 1,
|
||||
"objectives" : [
|
||||
{
|
||||
"description" : "Check all wayponts",
|
||||
|
@ -40,13 +41,6 @@
|
|||
"targetValue" : 7,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"player" : {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"background" : "gfx/backgrounds/background03.jpg",
|
||||
"planet" : "gfx/planets/bluePlanet.png",
|
||||
"music" : "music/determination.mp3",
|
||||
"manualComplete" : 1,
|
||||
"player" : {
|
||||
"pilot" : "Lt. Cdr. Daniel Carr",
|
||||
"squadron" : "Iron Patriots",
|
||||
|
@ -54,13 +55,6 @@
|
|||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0,
|
||||
"isCondition" : 1
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"fighters" : [
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"background" : "gfx/backgrounds/background03.jpg",
|
||||
"planet" : "gfx/planets/bluePlanet.png",
|
||||
"music" : "music/track-4.mp3",
|
||||
"manualComplete" : 1,
|
||||
"player" : {
|
||||
"pilot" : "Lt. Cdr. Daniel Carr",
|
||||
"squadron" : "Iron Patriots",
|
||||
|
@ -31,13 +32,6 @@
|
|||
"targetName" : "Dart",
|
||||
"targetValue" : 48,
|
||||
"targetType" : "TT_DESTROY"
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"fighters" : [
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"background" : "gfx/backgrounds/background01.jpg",
|
||||
"planet" : "gfx/planets/bluePlanet.png",
|
||||
"music" : "music/heroism.ogg",
|
||||
"manualComplete" : 1,
|
||||
"objectives" : [
|
||||
{
|
||||
"description" : "Protect UNF Lady Jane Grey",
|
||||
|
@ -47,13 +48,6 @@
|
|||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"isEliminateAll" : 1
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"player" : {
|
||||
|
|
|
@ -5,19 +5,13 @@
|
|||
"background" : "gfx/backgrounds/background03.jpg",
|
||||
"planet" : "gfx/planets/spirit.png",
|
||||
"music" : "music/battleThemeA.mp3",
|
||||
"manualComplete" : 1,
|
||||
"objectives" : [
|
||||
{
|
||||
"description" : "Destroy all pirate forces",
|
||||
"targetName" : "Dart",
|
||||
"targetValue" : 88,
|
||||
"targetType" : "TT_DESTROY"
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"player" : {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"background" : "gfx/backgrounds/background03.jpg",
|
||||
"planet" : "gfx/planets/oracleIX.png",
|
||||
"music" : "music/determination.mp3",
|
||||
"manualComplete" : 1,
|
||||
"objectives" : [
|
||||
{
|
||||
"description" : "Rescue first civilian group",
|
||||
|
@ -40,13 +41,6 @@
|
|||
"targetValue" : 3,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"isCondition" : 1
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"player" : {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"background" : "gfx/backgrounds/background03.jpg",
|
||||
"planet" : "gfx/planets/oracleIX.png",
|
||||
"music" : "music/track-4.mp3",
|
||||
"manualComplete" : 1,
|
||||
"objectives" : [
|
||||
{
|
||||
"description" : "Destroy INF Thunderbolt",
|
||||
|
@ -47,13 +48,6 @@
|
|||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0,
|
||||
"isEliminateAll" : 1
|
||||
},
|
||||
{
|
||||
"description" : "DUMMY",
|
||||
"targetName" : "DUMMY",
|
||||
"targetValue" : 1,
|
||||
"targetType" : "TT_DESTROY",
|
||||
"active" : 0
|
||||
}
|
||||
],
|
||||
"player" : {
|
||||
|
|
|
@ -61,7 +61,7 @@ void doObjectives(void)
|
|||
|
||||
if (battle.status == MS_IN_PROGRESS)
|
||||
{
|
||||
if (numHiddenObjectives == 0 && battle.numObjectivesTotal > 0 && battle.numObjectivesComplete == battle.numObjectivesTotal)
|
||||
if (!battle.manualComplete && numHiddenObjectives == 0 && battle.numObjectivesTotal > 0 && battle.numObjectivesComplete == battle.numObjectivesTotal)
|
||||
{
|
||||
completeMission();
|
||||
|
||||
|
|
|
@ -72,6 +72,11 @@ void loadMission(char *filename)
|
|||
loadEpicData(cJSON_GetObjectItem(root, "epic"));
|
||||
}
|
||||
|
||||
if (cJSON_GetObjectItem(root, "manualComplete"))
|
||||
{
|
||||
battle.manualComplete = cJSON_GetObjectItem(root, "manualComplete")->valueint;
|
||||
}
|
||||
|
||||
if (cJSON_GetObjectItem(root, "unwinnable"))
|
||||
{
|
||||
battle.unwinnable = cJSON_GetObjectItem(root, "unwinnable")->valueint;
|
||||
|
|
|
@ -278,6 +278,7 @@ typedef struct {
|
|||
int epic;
|
||||
int epicFighterLimit;
|
||||
int playerSelect;
|
||||
int manualComplete;
|
||||
int unwinnable;
|
||||
int missionFinishedTimer;
|
||||
int boostTimer;
|
||||
|
|
Loading…
Reference in New Issue