Ticket #3208: TechnologyReplace.patch
File TechnologyReplace.patch, 751 bytes (added by , 9 years ago) |
---|
-
binaries/data/mods/public/simulation/components/TechnologyManager.js
337 337 } 338 338 } 339 339 340 if (template.replaces && template.replaces.length > 0) 341 { 342 for (var i of template.replaces) { 343 if (!i || i == "") 344 return; 345 346 if (this.IsTechnologyResearched(i)) 347 continue; 348 349 var template = this.GetTechnologyTemplate(i); 350 this.researchedTechs[i] = template; 351 } 352 } 353 340 354 this.UpdateAutoResearch(); 341 355 342 356 var cmpPlayer = Engine.QueryInterface(this.entity, IID_Player);