Resource provider regeneration
Implemented resource regeneration computation in the verse.compute_provider_regeneration() function. Created the PLANET_RES_REGEN update type, and added the corresponding implementation. Added resource regeneration constants registration.
This commit is contained in:
parent
d768766214
commit
66c72ef718
8 changed files with 443 additions and 1 deletions
legacyworlds-server-beans-system/src/main/java/com/deepclone/lw/beans/sys
|
@ -53,6 +53,14 @@ public class ConstantsRegistrarBean
|
|||
true ) );
|
||||
cDesc = "Initial universe size (offset relative to the centre).";
|
||||
defs.add( new ConstantDefinition( "game.universe.initialSize" , "Universe" , cDesc , 1.0 , 1.0 , true ) );
|
||||
|
||||
// Natural resources
|
||||
cDesc = "Global recovery rate multiplier for natural resources. This should be kept close to 0.";
|
||||
defs.add( new ConstantDefinition( "game.resources.recovery" , "Natural resources" , cDesc , 0.01 , 0.00001 ,
|
||||
1.0 ) );
|
||||
cDesc = "Resource recovery dampener. Lower means less dampening";
|
||||
defs.add( new ConstantDefinition( "game.resources.recoveryDampening" , "Natural resources" , cDesc , 1.5 , 1.0 ,
|
||||
true ) );
|
||||
|
||||
// Happiness
|
||||
String[] hcNames = {
|
||||
|
|
Reference in a new issue