Increase resource stack and warehouse limits
This commit is contained in:
@@ -16,6 +16,7 @@ import engine.devcmd.AbstractDevCmd;
|
|||||||
import engine.gameManager.DbManager;
|
import engine.gameManager.DbManager;
|
||||||
import engine.objects.*;
|
import engine.objects.*;
|
||||||
import engine.powers.EffectsBase;
|
import engine.powers.EffectsBase;
|
||||||
|
import engine.server.MBServerStatics;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
@@ -100,7 +101,7 @@ public class MakeItemCmd extends AbstractDevCmd {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
numItems = (numItems < 1) ? 1 : numItems;
|
numItems = (numItems < 1) ? 1 : numItems;
|
||||||
numItems = (numItems > 5000) ? 5000 : numItems;
|
numItems = Math.min(numItems, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
int itembaseID;
|
int itembaseID;
|
||||||
|
|||||||
@@ -100,28 +100,28 @@ public class Warehouse extends AbstractWorldObject {
|
|||||||
public static ConcurrentHashMap<Integer, Integer> getMaxResources() {
|
public static ConcurrentHashMap<Integer, Integer> getMaxResources() {
|
||||||
if (maxResources.size() != 23) {
|
if (maxResources.size() != 23) {
|
||||||
maxResources.put(7, 1000000000);
|
maxResources.put(7, 1000000000);
|
||||||
maxResources.put(1580000, 10000);
|
maxResources.put(1580000, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580001, 2000);
|
maxResources.put(1580001, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580002, 2000);
|
maxResources.put(1580002, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580003, 1000);
|
maxResources.put(1580003, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580004, 10000);
|
maxResources.put(1580004, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580005, 3000);
|
maxResources.put(1580005, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580006, 3000);
|
maxResources.put(1580006, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580007, 1000);
|
maxResources.put(1580007, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580008, 3000);
|
maxResources.put(1580008, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580009, 2000);
|
maxResources.put(1580009, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580010, 2000);
|
maxResources.put(1580010, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580011, 1000);
|
maxResources.put(1580011, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580012, 2000);
|
maxResources.put(1580012, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580013, 3000);
|
maxResources.put(1580013, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580014, 1000);
|
maxResources.put(1580014, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580015, 1000);
|
maxResources.put(1580015, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580016, 1000);
|
maxResources.put(1580016, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580017, 500);
|
maxResources.put(1580017, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580018, 500);
|
maxResources.put(1580018, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580019, 500);
|
maxResources.put(1580019, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580020, 500);
|
maxResources.put(1580020, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
maxResources.put(1580021, 500);
|
maxResources.put(1580021, MBServerStatics.RESOURCE_STACK_LIMIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
return maxResources;
|
return maxResources;
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public class MBServerStatics {
|
|||||||
/*
|
/*
|
||||||
* Login cache flags
|
* Login cache flags
|
||||||
*/
|
*/
|
||||||
|
public static final int RESOURCE_STACK_LIMIT = 1000000000;
|
||||||
public static final boolean SKIP_CACHE_LOGIN = false; // skip caching // login server
|
public static final boolean SKIP_CACHE_LOGIN = false; // skip caching // login server
|
||||||
public static final boolean SKIP_CACHE_LOGIN_PLAYER = false; // skip caching // on login
|
public static final boolean SKIP_CACHE_LOGIN_PLAYER = false; // skip caching // on login
|
||||||
public static final boolean SKIP_CACHE_LOGIN_ITEM = false; // skip caching
|
public static final boolean SKIP_CACHE_LOGIN_ITEM = false; // skip caching
|
||||||
|
|||||||
Reference in New Issue
Block a user