Differential D1760 Diff 7798 ps/trunk/binaries/data/mods/public/maps/tutorials/Introductory_Tutorial.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/tutorials/Introductory_Tutorial.js
Show First 20 Lines • Show All 339 Lines • ▼ Show 20 Lines | "Init": function() | ||||
this.ramCount = 0; | this.ramCount = 0; | ||||
}, | }, | ||||
"IsDone": function() | "IsDone": function() | ||||
{ | { | ||||
return this.ramCount > 1; | return this.ramCount > 1; | ||||
}, | }, | ||||
"OnTrainingQueued": function(msg) | "OnTrainingQueued": function(msg) | ||||
{ | { | ||||
if (msg.unitTemplate == "units/spart_mechanical_siege_ram") | if (msg.unitTemplate == "units/spart_siege_ram") | ||||
++this.ramCount; | ++this.ramCount; | ||||
if (this.IsDone()) | if (this.IsDone()) | ||||
{ | { | ||||
this.RemoveChampions(); | this.RemoveChampions(); | ||||
this.NextGoal(); | this.NextGoal(); | ||||
} | } | ||||
} | } | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator