Universe generator: resource providers

* The universe generator has been modified to generate resource
providers. The code attempts to keep the universe balanced according to
the natural resources definitions.
This commit is contained in:
Emmanuel BENOîT 2012-01-06 10:05:47 +01:00
parent e7d2072813
commit b054a379a9
24 changed files with 1105 additions and 6 deletions
legacyworlds-server-data/db-structure/tests/user/priv/functions/050-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;