forked from MagicBane/Server
Method moved to manager class.
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user