Euflorium: The Eufloria Community

Eufloria => Eufloria Classic => Eufloria Classic Support => Topic started by: Mihhaelo on November 09, 2011, 07:26:05 PM

Title: ChangeOwner and/or Empire bugs
Post by: Mihhaelo on November 09, 2011, 07:26:05 PM
As far as I can see, when GetAsteroid():ChangeOwner() is used in script, it doesn't update the information GetEmpire():GetNumOwnedAsteroids() returns.

Likewise, GetEmpire():GetRandomAsteroid() also fails.
Title: Re: ChangeOwner and/or Empire bugs
Post by: Aino on November 10, 2011, 01:51:03 AM
I don't use ChangeOwner()... I use .Owner = x :P

But the GetRandomAsteroid() fail is strange...
Title: Re: ChangeOwner and/or Empire bugs
Post by: Alex on November 14, 2011, 11:35:42 PM
You may need the game to run an update before that number is corrected... you may in fact be able to call the empire's update from the script so that the number gets updated.