Skip to content

Commit

Permalink
Replaced old calls to GainMissionAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
gitMarky committed Apr 5, 2018
1 parent 4212310 commit 5dc4282
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion planet/Missions.ocf/Crash.ocs/Script.c
Expand Up @@ -116,7 +116,7 @@ func OnGoalsFulfilled()
{
SetNextScenario("Missions.ocf/DeepSeaMining.ocs");
GainScenarioAchievement("Done");
GainMissionAccess("S2Crash");
GainScenarioAccess("S2Crash");
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion planet/Missions.ocf/DarkCastle.ocs/Script.c
Expand Up @@ -122,6 +122,6 @@ public func ShroomCaveCheck()
public func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
GainMissionAccess("S2Castle");
GainScenarioAccess("S2Castle");
return false;
}
2 changes: 1 addition & 1 deletion planet/Missions.ocf/DeepSeaMining.ocs/Script.c
Expand Up @@ -297,7 +297,7 @@ public func OnGoalsFulfilled()
{
SetNextScenario("Missions.ocf/TreasureHunt.ocs");
GainScenarioAchievement("Done");
GainMissionAccess("S2Sea");
GainScenarioAccess("S2Sea");
StartSequence("Outro", 0);
// Return true to force goal rule to not call GameOver() yet
return true;
Expand Down
2 changes: 1 addition & 1 deletion planet/Missions.ocf/Raid.ocs/Script.c
Expand Up @@ -129,7 +129,7 @@ func OnPlaneLoaded(object plane, object oil)
func OnGoalsFulfilled()
{
SetNextScenario("Missions.ocf/Crash.ocs");
GainMissionAccess("S2Raid");
GainScenarioAccess("S2Raid");
GainScenarioAchievement("Done");
return true; // GameOver done by outro
}
2 changes: 1 addition & 1 deletion planet/Missions.ocf/TreasureHunt.ocs/Script.c
Expand Up @@ -151,7 +151,7 @@ public func OnGoalsFulfilled()
{
SetNextScenario("Missions.ocf/DarkCastle.ocs");
GainScenarioAchievement("Done");
GainMissionAccess("S2Treasure");
GainScenarioAccess("S2Treasure");
UpdateLeagueScores();
// Return true to force goal rule to not call GameOver() yet, as it will be done by outro sequence
return true;
Expand Down
2 changes: 1 addition & 1 deletion planet/Objects.ocd/Libraries.ocd/Goal.ocd/Script.c
Expand Up @@ -87,7 +87,7 @@ protected func AllGoalsFulfilled()
// Goals fulfilled: Set mission password(s)
for (var goal in FindObjects(Find_Category(C4D_Goal)))
if (goal.mission_password)
GainMissionAccess(goal.mission_password);
GainScenarioAccess(goal.mission_password);
// Custom scenario goal evaluation?
if (GameCall("OnGoalsFulfilled")) return true;
// We're done. Play some sound and schedule game over call
Expand Down

0 comments on commit 5dc4282

Please sign in to comment.