Mining computation update

* Added various views and helper functions used by the mining
computation but which may be re-used in other parts.

* Added mining computation update type and associated update function

* New constants: game.resources.weightBase (the value used to compute
weights from mining settings) and game.resources.extraction (the
quantity extracted in a day from a full provider at difficulty 0)
This commit is contained in:
Emmanuel BENOîT 2012-01-16 12:35:20 +01:00
parent 038bba896a
commit 74b6f2ab09
20 changed files with 1139 additions and 2 deletions
legacyworlds-server-data/db-structure/parts/030-data

View file

@ -83,7 +83,10 @@ CREATE TYPE update_type AS ENUM (
'PLANET_RES_REGEN' ,
/* Compute income and upkeep of planets */
'PLANET_MONEY'
'PLANET_MONEY' ,
/* Compute mining results for planets owned by empires */
'PLANET_MINING'
);
-- Types of recapitulative e-mail messages