Add "Done"-achievement to all missions.

issue1247
Sven Eberhardt 2014-09-25 15:25:33 +02:00
parent 58588fbc58
commit cde41733f8
48 changed files with 171 additions and 7 deletions

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -76,3 +76,9 @@ private func InitBase(int owner)
CreateObject(Sawmill, 1845, y, owner);
return true;
}
func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
return false;
}

View File

@ -1,2 +1,3 @@
NamePlrTeam=Spieler
NameCrysTeam=Kristalle
Completed=Abgeschlossen

View File

@ -1,2 +1,3 @@
NamePlrTeam=Players
NameCrysTeam=Crystals
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -92,11 +92,11 @@ func InitializePlayer(int plr)
return true;
}
func OnGameOver()
func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
GainMissionAccess("S2Crash");
return true;
return false;
}
func GiveExtraPlans(int plr)

View File

@ -1 +1,2 @@
NameMerchant=Händler
Completed=Abgeschlossen

View File

@ -1 +1,2 @@
NameMerchant=Merchant
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -97,8 +97,9 @@ func ShroomCaveCheck()
return true;
}
func OnGameOver()
func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
GainMissionAccess("S2Castle");
return true;
return false;
}

View File

@ -3,3 +3,4 @@ MsgEncounterCave=Ein Eindringling klaut unser Gold! Schnappt ihn!
MsgEncounterOutpost=Halt, im Namen des Koenigs!
MsgEncounterKing=Ah, %s. Ich habe Euch bereits erwartet.
MsgEncounterShrooms=Was ist denn das fuer ein Gestank? Von diesen Pflanzen sollten wir uns besser fern halten...
Completed=Abgeschlossen

View File

@ -2,4 +2,5 @@ MsgIntro1=Help! Tyrant Horax has destroyed our village, drank all our beer and t
MsgEncounterCave=An intruder tries to steal out gold. Catch him!
MsgEncounterOutpost=Stop, in the name of the king!
MsgEncounterKing=Ah, %s. I have been awaiting you.
MsgEncounterShrooms=What is this smell? We better stay away from those plants...
MsgEncounterShrooms=What is this smell? We better stay away from those plants...
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -87,3 +87,9 @@ private func PlaceBatches(array item_ids, int n_per_batch, int batch_radius, int
}
return n_created;
}
func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
return false;
}

View File

@ -0,0 +1 @@
Completed=Abgeschlossen

View File

@ -0,0 +1 @@
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -276,6 +276,7 @@ private func FindMainIslandPosition(int xpos, int sep, bool no_struct)
// Goal fulfilled
public func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
GainMissionAccess("S2Sea");
StartSequence("Outro", 0);
// Return true to force goal rule to not call GameOver() yet

View File

@ -1 +1,2 @@
Tuesday=Dienstag
Completed=Abgeschlossen

View File

@ -1 +1,2 @@
Tuesday=Tuesday
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -71,3 +71,9 @@ func JoinPlayer(int plr)
}
return true;
}
func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
return false;
}

View File

@ -0,0 +1 @@
Completed=Abgeschlossen

View File

@ -0,0 +1 @@
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -69,3 +69,9 @@ private func InitBase(int owner)
}
return true;
}
func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
return false;
}

View File

@ -0,0 +1 @@
Completed=Abgeschlossen

View File

@ -0,0 +1 @@
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -51,3 +51,9 @@ func InitializePlayer(int plr)
if (!g_is_initialized) g_is_initialized = DoInit(plr);
return true;
}
func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
return false;
}

View File

@ -0,0 +1 @@
Completed=Abgeschlossen

View File

@ -0,0 +1 @@
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -53,3 +53,8 @@ func InitializePlayer(int plr)
}
}
func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
return false;
}

View File

@ -0,0 +1 @@
Completed=Abgeschlossen

View File

@ -0,0 +1 @@
Completed=Completed

View File

@ -42,6 +42,7 @@ public func SetFulfilled()
{
is_fulfilled = true;
GainMissionAccess("S2Raid");
GainScenarioAchievement("Done");
NotifyHUD();
return true;
}

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -0,0 +1 @@
Completed=Abgeschlossen

View File

@ -0,0 +1 @@
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -72,3 +72,9 @@ func OnPlaneFinished(object plane)
plane->CreateObject(Plane, 0,0, NO_OWNER);
plane->RemoveObject();
}
func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
return false;
}

View File

@ -0,0 +1 @@
Completed=Abgeschlossen

View File

@ -0,0 +1 @@
Completed=Completed

View File

@ -0,0 +1,8 @@
[ParameterDef]
ID=Done
Achievement=Done
[Options]
[Option]
Description=$Completed$
Value=1

View File

@ -7,7 +7,6 @@
static g_is_initialized; // set after first player join
static g_max_player_num; // max number of players that were ever joined
static g_plr_inventory; // array indexed by players: Array containing inventory of Clonk just before it died
static npc_pyrit, npc_dagobert, npc_tarzan, g_golden_shovel, g_flagpole;
static g_got_gem_task, g_got_oil, g_goal, g_treasure_collected;
@ -117,6 +116,7 @@ func OnGoldBarCollected(object collector)
public func OnGoalsFulfilled()
{
GainScenarioAchievement("Done");
GainMissionAccess("S2Treasure");
UpdateLeagueScores();
// Return true to force goal rule to not call GameOver() yet, as it will be done by outro sequence

View File

@ -3,3 +3,4 @@ MsgEncounterFinal=Nein nein, der Schatz geh
MsgTreasureCollected=Sehr gut! Nun muss der Schatz nur noch zurück zu Dagobert.
MsgGoldBarCollected=Ich habe einen Goldbarren gefunden! (%d/%d)
MsgStoneDoorNoDamage=Diese Steintür ist zu stabil. Ich sollte einen Schalter suchen.
Completed=Abgeschlossen

View File

@ -3,3 +3,4 @@ MsgEncounterFinal=The treasure is MINE ALONE!
MsgTreasureCollected=Excellent! Now we need to bring the treasure back to Dagobert.
MsgGoldBarCollected=I've found a gold bar! (%d/%d)
MsgStoneDoorNoDamage=This stone door is too resilient. I should search for a switch.
Completed=Completed