Planet mining settings interface
* Modified owned planet view to include a field which indicates whether mining settings are specific to the planet or come from the empire; modified "simple" game components accordingly * Modified stored procedures to only allow planet-specific mining settings updates when the planet actually uses planet-specific settings, and added a stored procedure which toggles the source of a planet's settings * Added corresponding parts to mining settings DAO and resources controller * Added session commands and server command handlers that toggle the source of the settings and that upload the settings * Split planet page template into multiple files for clarity and added the mining priorities form to the natural resources tab
This commit is contained in:
parent
51b529a09f
commit
e64f847ec3
25 changed files with 1009 additions and 152 deletions
legacyworlds-server-data/db-structure/tests/user/040-functions/045-empire-mining
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Test privileges on emp.mset_toggle_source( INT , INT )
|
||||
*/
|
||||
BEGIN;
|
||||
SELECT emp.mset_update_start( 1 );
|
||||
|
||||
SELECT plan( 1 );
|
||||
|
||||
SELECT diag_test_name( 'emp.mset_toggle_source() - Privileges' );
|
||||
SELECT lives_ok( $$
|
||||
SELECT emp.mset_toggle_source( 1 , 1 )
|
||||
$$ );
|
||||
|
||||
SELECT * FROM finish( );
|
||||
ROLLBACK;
|
Reference in a new issue