Technology implementation
* A stored procedure which implements technologies has been added. It will mark a pending technology as implemented and remove the corresponding quantity of money from the empire, then add any newly available research items to the empire's research.
This commit is contained in:
parent
8c0b4abd1e
commit
f4e38e4943
3 changed files with 210 additions and 1 deletions
legacyworlds-server-data/db-structure/tests/user/040-functions/040-empire
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Test privileges on emp.technology_implement()
|
||||
*/
|
||||
BEGIN;
|
||||
SELECT plan( 1 );
|
||||
|
||||
SELECT diag_test_name( 'emp.technology_implement() - EXECUTE privilege' );
|
||||
SELECT lives_ok( $$
|
||||
SELECT emp.technology_implement( 1 , '' );
|
||||
$$ );
|
||||
|
||||
SELECT * FROM finish( );
|
||||
ROLLBACK;
|
Reference in a new issue