Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/Identity.js
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | Identity.prototype.Init = function() | ||||
this.classesList = GetIdentityClasses(this.template); | this.classesList = GetIdentityClasses(this.template); | ||||
this.visibleClassesList = GetVisibleIdentityClasses(this.template); | this.visibleClassesList = GetVisibleIdentityClasses(this.template); | ||||
if (this.template.Phenotype) | if (this.template.Phenotype) | ||||
this.phenotype = pickRandom(this.GetPossiblePhenotypes()); | this.phenotype = pickRandom(this.GetPossiblePhenotypes()); | ||||
else | else | ||||
this.phenotype = "default"; | this.phenotype = "default"; | ||||
}; | }; | ||||
Identity.prototype.HasSomeFormation = function() | |||||
{ | |||||
return this.GetFormationsList().length > 0; | |||||
}; | |||||
Identity.prototype.GetCiv = function() | Identity.prototype.GetCiv = function() | ||||
{ | { | ||||
return this.template.Civ; | return this.template.Civ; | ||||
}; | }; | ||||
Identity.prototype.GetLang = function() | Identity.prototype.GetLang = function() | ||||
{ | { | ||||
return this.template.Lang || "greek"; // ugly default | return this.template.Lang || "greek"; // ugly default | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator