Increase resource stack and warehouse limits

This commit is contained in:
Rob
2026-07-12 03:47:44 +01:00
parent a5a7f855c6
commit 3cce29dcc8
3 changed files with 25 additions and 23 deletions
+2 -1
View File
@@ -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;
+22 -22
View File
@@ -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;
+1
View File
@@ -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