Ticket #3265: 3265.2.diff
File 3265.2.diff, 791 bytes (added by , 8 years ago) |
---|
-
binaries/data/mods/public/simulation/components/Player.js
Player.prototype.OnGlobalOwnershipChange 642 642 643 643 Player.prototype.OnPlayerDefeated = function(msg) 644 644 { 645 645 this.state = "defeated"; 646 646 647 // TODO: Tribute all resources to this player's active allies (if any)648 649 647 // Reassign all player's entities to Gaia 650 648 var cmpRangeManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager); 651 649 var entities = cmpRangeManager.GetEntitiesByPlayer(this.playerID); 652 650 653 651 // The ownership change is done in two steps so that entities don't hit idle