Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/EntityLimits.js
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | if (category in this.template.LimitRemovers) | ||||
if (c === "RequiredClasses") | if (c === "RequiredClasses") | ||||
for (var cls of this.removers[category][c]) | for (var cls of this.removers[category][c]) | ||||
this.classCount[cls] = 0; | this.classCount[cls] = 0; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
}; | }; | ||||
EntityLimits.prototype.Update = function(newTemplate) | |||||
{ | |||||
} | |||||
EntityLimits.prototype.ChangeCount = function(category, value) | EntityLimits.prototype.ChangeCount = function(category, value) | ||||
{ | { | ||||
if (this.count[category] !== undefined) | if (this.count[category] !== undefined) | ||||
this.count[category] += value; | this.count[category] += value; | ||||
}; | }; | ||||
EntityLimits.prototype.ChangeMatchCount = function(template, value) | EntityLimits.prototype.ChangeMatchCount = function(template, value) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator