Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: BuildRestrictions.js
- ===================================================================
- --- BuildRestrictions.js (revisione 19348)
- +++ BuildRestrictions.js (copia locale)
- @@ -270,7 +270,8 @@
- if (this.template.Distance.MinDistance)
- {
- - var dist = +this.template.Distance.MinDistance;
- +
- + var dist = ApplyValueModificationsToEntity("BuildRestrictions/Distance/MinDistance", +this.template.Distance.MinDistance, this.entity);
- var nearEnts = cmpRangeManager.ExecuteQuery(this.entity, 0, dist, [cmpPlayer.GetPlayerID()], IID_BuildRestrictions).filter(filter);
- if (nearEnts.length)
- {
- @@ -284,7 +285,7 @@
- result.parameters = {
- "name": name,
- "category": cat,
- - "distance": this.template.Distance.MinDistance
- + "distance": dist
- };
- result.translateParameters = ["name", "category"];
- return result; // Fail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement