Production adjustment fix

* The production adjustment function was completely off (and always has
been). It has been fixed.

* The problem with the adjustment function not being reported means that
no-one ever encountered it. As a consequence, happiness strike threshold
has been increased to 50%

/!\ Full database reset required (or at least much easier than other
options).
This commit is contained in:
Emmanuel BENOîT 2012-02-08 15:38:12 +01:00
parent c94958a058
commit afa1224391
4 changed files with 95 additions and 8 deletions
legacyworlds-server-data/db-structure/tests/user/040-functions/050-computation

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;