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 { @@ -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 { @@ -124,16 +124,6 @@ public class LootTable {
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) {
int ret = -76;

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

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

Loading…
Cancel
Save