Remove pointless trainingDone from tutorial

In `Init` it was always overwritten to false, so `IsDone` always returned
false anyway.
This commit is contained in:
Vantha
2026-03-09 19:17:41 +01:00
committed by Vantha
parent 1f7d384c29
commit c2c8f5bdf2
@@ -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();