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:
parent
e7d2072813
commit
b054a379a9
24 changed files with 1105 additions and 6 deletions
legacyworlds-server-data/db-structure/tests/user/priv/functions/050-computation
|
@ -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;
|
Reference in a new issue