Empire resources update

* Added a new update that computes the amount of resources possessed and
owed by empires. At the moment this computation ignores fleets, as their
upkeep does not use the resource system.
This commit is contained in:
Emmanuel BENOîT 2012-01-10 13:29:56 +01:00
parent b49bc1a44f
commit 04e550709a
4 changed files with 186 additions and 2 deletions
legacyworlds-server-data/db-structure/parts/030-data

View file

@ -29,9 +29,18 @@ CREATE TYPE log_type
-- Update types
CREATE TYPE update_type AS ENUM (
/* Empires' money is being updated using the previous update's results */
/* Empires' money is being updated using the previous update's results
*
* FIXME: this update type should disappear, as everything it does will
* be replaced by the resources update.
*/
'EMPIRE_MONEY' ,
/* Empires' resources are being updated using the previous update's
* results.
*/
'EMPIRE_RESOURCES' ,
/* Empire research points are being attributed to technologies */
'EMPIRE_RESEARCH' ,