Method moved to manager class.

This commit is contained in:
2023-08-06 08:36:16 -04:00
parent f0503aa63b
commit a3a2b01ec4
3 changed files with 10 additions and 11 deletions
+9
View File
@@ -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
View File
@@ -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;
+1 -1
View File
@@ -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();