Fix phasing requirements of tutorial.

Introduced in 2ef3fd7a77.
Fixed by switching the order of task of the barracks and outpost.

Patch by: @nwtour
Differential revision: D3820
This was SVN commit r25214.
This commit is contained in:
Freagarach 2021-04-09 06:02:22 +00:00
parent 294d102a6f
commit 6023a273df

View file

@ -182,15 +182,15 @@ Trigger.prototype.tutorialGoals = [
}
},
{
"instructions": markForTranslation("Order the idle Skirmishers to build an outpost to the north east at the edge of your territory. This will be the fifth Village Phase structure that you have built, allowing you to advance to the Town Phase."),
"instructions": markForTranslation("Build a Barracks nearby. Whenever your population limit is reached, build an extra House using any available builder units. This will be the fifth Village Phase structure that you have built, allowing you to advance to the Town Phase."),
"OnPlayerCommand": function(msg)
{
if (msg.cmd.type == "repair" && TriggerHelper.EntityMatchesClassList(msg.cmd.target, "Outpost"))
if (msg.cmd.type == "repair" && TriggerHelper.EntityMatchesClassList(msg.cmd.target, "Barracks"))
this.NextGoal();
}
},
{
"instructions": markForTranslation("Select the Civic Center again and advance to Town Phase by clicking on the II icon (you have to wait for the outpost to be built first). This will allow Town Phase buildings to be constructed."),
"instructions": markForTranslation("Select the Civic Center again and advance to Town Phase by clicking on the II icon (you have to wait for the barracks to be built first). This will allow Town Phase buildings to be constructed."),
"IsDone": function()
{
return TriggerHelper.HasDealtWithTech(this.playerID, "phase_town_generic");
@ -216,6 +216,14 @@ Trigger.prototype.tutorialGoals = [
this.NextGoal();
}
},
{
"instructions": markForTranslation("Order the idle Skirmishers to build an outpost to the north east at the edge of your territory."),
"OnPlayerCommand": function(msg)
{
if (msg.cmd.type == "repair" && TriggerHelper.EntityMatchesClassList(msg.cmd.target, "Outpost"))
this.NextGoal();
}
},
{
"instructions": markForTranslation("Start training a batch of Female Citizens in the Civic Center and set its rally point to the farm (right click on it)."),
"Init": function()
@ -254,14 +262,6 @@ Trigger.prototype.tutorialGoals = [
this.NextGoal();
}
},
{
"instructions": markForTranslation("Build a Barracks nearby. Whenever your population limit is reached, build an extra House using any available builder units."),
"OnPlayerCommand": function(msg)
{
if (msg.cmd.type == "repair" && TriggerHelper.EntityMatchesClassList(msg.cmd.target, "Barracks"))
this.NextGoal();
}
},
{
"instructions": markForTranslation("Prepare for an attack by an enemy player. Train more soldiers using the Barracks, and get idle soldiers to build a Tower near your Outpost."),
"OnPlayerCommand": function(msg)