Ticket #4255: upgrade.diff
File upgrade.diff, 4.5 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/simulation/components/Upgrade.js
Upgrade.prototype.Schema = 53 53 "</oneOrMore>"; 54 54 55 55 Upgrade.prototype.Init = function() 56 56 { 57 57 this.upgrading = false; 58 this.completed = false; 58 59 this.elapsedTime = 0; 59 60 this.timer = undefined; 60 61 61 62 this.upgradeTemplates = {}; 62 63 … … Upgrade.prototype.Init = function() 73 74 }; 74 75 75 76 // This will also deal with the "OnDestroy" case. 76 77 Upgrade.prototype.OnOwnershipChanged = function(msg) 77 78 { 78 this.CancelUpgrade(msg.from); 79 if (!this.completed) 80 this.CancelUpgrade(msg.from); 79 81 if (msg.to !== -1) 80 82 this.owner = msg.to; 81 83 }; 82 84 83 85 Upgrade.prototype.ChangeUpgradedEntityCount = function(amount) 84 86 { 85 87 if (!this.IsUpgrading()) 86 88 return; 87 89 88 90 let cmpTempMan = Engine.QueryInterface(SYSTEM_ENTITY, IID_TemplateManager); 89 91 let template = cmpTempMan.GetTemplate(this.upgrading); 90 92 91 93 let category; 92 94 if (template.TrainingRestrictions) … … Upgrade.prototype.UpgradeProgress = func 295 297 return; 296 298 } 297 299 298 300 this.CancelTimer(); 299 301 302 this.completed = true; 303 300 304 let newEntity = ChangeEntityTemplate(this.entity, this.upgrading); 301 305 302 306 if (newEntity) 303 307 PlaySound("upgraded", newEntity); 304 308 }; -
libraries/source/spidermonkey/lib/mozjs31-ps-debug.lib
Impossible d'afficher : fichier considéré comme binaire. svn:mime-type = application/octet-stream
-
libraries/source/spidermonkey/lib/mozjs31-ps-release.lib
Modification de propriétés sur libraries/source/spidermonkey/lib/mozjs31-ps-debug.lib ___________________________________________________________________ Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Impossible d'afficher : fichier considéré comme binaire. svn:mime-type = application/octet-stream
-
libraries/source/spidermonkey/lib/mozjs38-ps-debug.lib
Modification de propriétés sur libraries/source/spidermonkey/lib/mozjs31-ps-release.lib ___________________________________________________________________ Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Impossible d'afficher : fichier considéré comme binaire. svn:mime-type = application/octet-stream
-
libraries/source/spidermonkey/lib/mozjs38-ps-release.lib
Modification de propriétés sur libraries/source/spidermonkey/lib/mozjs38-ps-debug.lib ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Impossible d'afficher : fichier considéré comme binaire. svn:mime-type = application/octet-stream