Mining computation update
* Added various views and helper functions used by the mining computation but which may be re-used in other parts. * Added mining computation update type and associated update function * New constants: game.resources.weightBase (the value used to compute weights from mining settings) and game.resources.extraction (the quantity extracted in a day from a full provider at difficulty 0)
This commit is contained in:
parent
038bba896a
commit
74b6f2ab09
20 changed files with 1139 additions and 2 deletions
legacyworlds-server-beans-system/src/main/java/com/deepclone/lw/beans/sys
|
@ -61,6 +61,13 @@ public class ConstantsRegistrarBean
|
|||
cDesc = "Resource recovery dampener. Lower means less dampening";
|
||||
defs.add( new ConstantDefinition( "game.resources.recoveryDampening" , "Natural resources" , cDesc , 1.5 , 1.0 ,
|
||||
true ) );
|
||||
cDesc = "Resource weight base value. This value is taken to the Xth power to compute the actual "
|
||||
+ "weight when determining how mining work is distributed amongst a planet's resource providers.";
|
||||
defs.add( new ConstantDefinition( "game.resources.weightBase" , "Natural resources" , cDesc , 10.0 , 1.1 ,
|
||||
100.0 ) );
|
||||
cDesc = "Resources extracted per work unit, per (real) day, from a full provider with minimal difficulty.";
|
||||
defs.add( new ConstantDefinition( "game.resources.extraction" , "Natural resources" , cDesc , 1.0 , 1.0 ,
|
||||
true ) );
|
||||
|
||||
// Happiness
|
||||
String[] hcNames = {
|
||||
|
|
Reference in a new issue