mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 20:52:22 +00:00
Remove pointless trainingDone from tutorial
In `Init` it was always overwritten to false, so `IsDone` always returned false anyway.
This commit is contained in:
@@ -176,10 +176,6 @@ Trigger.prototype.tutorialSteps = [
|
||||
{
|
||||
if (msg.cmd.type == "unset-rallypoint")
|
||||
this.NextStep();
|
||||
},
|
||||
"OnTrainingFinished": function(msg)
|
||||
{
|
||||
this.trainingDone = true;
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -188,10 +184,6 @@ Trigger.prototype.tutorialSteps = [
|
||||
"text": markForTranslation("Let's train some Civilians to gather more food. Select the Civic Center, hold %(hotkey)s and click on the Civilian icon to train five Civilians."),
|
||||
"hotkeys": ["session.batchtrain"]
|
||||
},
|
||||
"Init": function()
|
||||
{
|
||||
this.trainingDone = false;
|
||||
},
|
||||
"OnTrainingQueued": function(msg)
|
||||
{
|
||||
if (msg.unitTemplate != "units/athen/support_civilian" || +msg.count == 1)
|
||||
@@ -215,10 +207,6 @@ Trigger.prototype.tutorialSteps = [
|
||||
markForTranslation("The units should be ready soon.\n") +
|
||||
markForTranslation("In the meantime, direct your attention to your population count on the top panel. It is the fifth item from the left, after the resources. It would be prudent to keep an eye on it. It indicates your current population (including those being trained) and the current population limit, which is determined by your built structures.")
|
||||
},
|
||||
"IsDone": function(msg)
|
||||
{
|
||||
return this.trainingDone;
|
||||
},
|
||||
"OnTrainingFinished": function(msg)
|
||||
{
|
||||
this.NextStep();
|
||||
|
||||
Reference in New Issue
Block a user