Research update

* Implemented new research update. Old research system no longer
updates.

* Fixed a major bug in the constants registrar

* Added game.research.vacation constant (determines the rate of
research when players are in vacation mode)
This commit is contained in:
Emmanuel BENOîT 2012-04-02 13:29:43 +02:00
parent a14601df37
commit c7949e41cc
11 changed files with 414 additions and 85 deletions
legacyworlds-server-data/db-structure/tests/admin/050-updates/020-empire-research

View file

@ -0,0 +1,24 @@
/*
* Test the sys.gu_research_get_empires() function
*/
BEGIN;
\i utils/common-setup/setup-gu-research-get-empires-test.sql
SELECT plan( 2 );
SELECT diag_test_name( 'gu_research_get_empires() - Selected empires and vacation state' );
SELECT set_eq( $$
SELECT * FROM sys.gu_research_get_empires( 0::BIGINT );
$$ , $$ VALUES (
_get_emp_name( 'emp4') , FALSE
) , (
_get_emp_name( 'emp5') , TRUE
) $$ );
SELECT diag_test_name( 'gu_research_get_empires() - No results with "bad" update identifier' );
SELECT is_empty( $$
SELECT * FROM sys.gu_research_get_empires( 12::BIGINT );
$$ );
SELECT * FROM finish( );
ROLLBACK;