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/user/040-functions/043-computation

View file

@ -0,0 +1,14 @@
/*
* Test privileges on verse.get_random_part()
*/
BEGIN;
SELECT plan( 1 );
SELECT diag_test_name( 'verse.get_random_part( ) - Privileges' );
PREPARE _test_this AS
SELECT verse.get_random_part( 0.5 , 1 , 0.5 , 0.25 );
SELECT throws_ok( '_test_this' , 42501 );
SELECT * FROM finish( );
ROLLBACK;

View file

@ -0,0 +1,12 @@
/*
* Test privileges on verse.adjust_production()
*/
BEGIN;
SELECT plan( 1 );
SELECT diag_test_name( 'verse.adjust_production( ) - EXECUTE privilege' );
SELECT lives_ok( $$ SELECT verse.adjust_production( 1 , 1 ) $$ );
SELECT * FROM finish( );
ROLLBACK;