Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/ResourceGatherer.js
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | ResourceGatherer.prototype.PerformGather = function(target) | ||||
// Update stats of how much the player collected. | // Update stats of how much the player collected. | ||||
// (We have to do it here rather than at the dropsite, because we | // (We have to do it here rather than at the dropsite, because we | ||||
// need to know what subtype it was) | // need to know what subtype it was) | ||||
let cmpStatisticsTracker = QueryOwnerInterface(this.entity, IID_StatisticsTracker); | let cmpStatisticsTracker = QueryOwnerInterface(this.entity, IID_StatisticsTracker); | ||||
if (cmpStatisticsTracker) | if (cmpStatisticsTracker) | ||||
cmpStatisticsTracker.IncreaseResourceGatheredCounter(type.generic, status.amount, type.specific); | cmpStatisticsTracker.IncreaseResourceGatheredCounter(type.generic, status.amount, type.specific); | ||||
Engine.PostMessage(this.entity, MT_ResourceCarryingChanged, { "to": this.GetCarryingStatus() }); | //Engine.PostMessage(this.entity, MT_ResourceCarryingChanged, { "to": this.GetCarryingStatus() }); | ||||
Lint: spaced-comment: Expected space or tab after '//' in comment. | |||||
Lint: spaced-comment Expected space or tab after '//' in comment. Lint: spaced-comment: Expected space or tab after '//' in comment. | |||||
return { | return { | ||||
"amount": status.amount, | "amount": status.amount, | ||||
"exhausted": status.exhausted, | "exhausted": status.exhausted, | ||||
"filled": this.carrying[type.generic] >= this.GetCapacity(type.generic) | "filled": this.carrying[type.generic] >= this.GetCapacity(type.generic) | ||||
}; | }; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Expected space or tab after '//' in comment.