From c2c8f5bdf26b36a675b5f4e057a594bc4ba71993 Mon Sep 17 00:00:00 2001 From: Vantha Date: Mon, 9 Mar 2026 19:17:41 +0100 Subject: [PATCH] Remove pointless trainingDone from tutorial In `Init` it was always overwritten to false, so `IsDone` always returned false anyway. --- .../maps/tutorials/starting_economy_walkthrough.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/binaries/data/mods/public/maps/tutorials/starting_economy_walkthrough.js b/binaries/data/mods/public/maps/tutorials/starting_economy_walkthrough.js index 0f1dfa984d..fea025572e 100644 --- a/binaries/data/mods/public/maps/tutorials/starting_economy_walkthrough.js +++ b/binaries/data/mods/public/maps/tutorials/starting_economy_walkthrough.js @@ -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();