Browse Source

Method moved to manager class.

master
MagicBot 1 year ago
parent
commit
a3a2b01ec4
  1. 9
      src/engine/gameManager/LootManager.java
  2. 10
      src/engine/objects/LootTable.java
  3. 2
      src/engine/server/world/WorldServer.java

9
src/engine/gameManager/LootManager.java

@ -436,4 +436,13 @@ public enum LootManager {
} }
} }
//call this on server startup to populate the tables
public static void populateLootTables() {
DbManager.LootQueries.populateGenTables();
DbManager.LootQueries.populateItemTables();
DbManager.LootQueries.populateModTables();
DbManager.LootQueries.populateModTypeTables();
}
} }

10
src/engine/objects/LootTable.java

@ -124,16 +124,6 @@ public class LootTable {
return modTypeTable; return modTypeTable;
} }
//call this on server startup to populate the tables
public static void populateLootTables() {
DbManager.LootQueries.populateGenTables();
DbManager.LootQueries.populateItemTables();
DbManager.LootQueries.populateModTables();
DbManager.LootQueries.populateModTypeTables();
}
public static int gaussianLevel(int level) { public static int gaussianLevel(int level) {
int ret = -76; int ret = -76;

2
src/engine/server/world/WorldServer.java

@ -341,7 +341,7 @@ public class WorldServer {
LootManager.init(); LootManager.init();
//load old loot system (still needed for rolling for now) //load old loot system (still needed for rolling for now)
LootTable.populateLootTables(); LootManager.populateLootTables();
RuneBaseAttribute.LoadAllAttributes(); RuneBaseAttribute.LoadAllAttributes();
RuneBase.LoadAllRuneBases(); RuneBase.LoadAllRuneBases();
BaseClass.LoadAllBaseClasses(); BaseClass.LoadAllBaseClasses();

Loading…
Cancel
Save