public int GetOneSpecifiedQualityGear(GearQuality quality) { var allgears = AllQualitiesOfGears.GetSpecifiedQualityGears(quality); int index = random.Next(0, allgears.Count); return(allgears[index].Id); }
public static void InitServer() { DataTableLoader.LoadDataTables("Lobby"); (new SyncTimer(RoomServerManager.CheckServerStates, 60000, 60000)).Start(); (new SyncTimer(Cronjobs.CheckAndDo, 60000, 60000)).Start(); (new SyncTimer(UpdateServerLoadToMaster, 60000, 60000)).Start(); (new SyncTimer(PVPLogic.ExecuteMatch, 10000, 10000)).Start(); RoomServerManager.InitRoomServerList(); RoomServerManager.InitRoomList(); GameConfigs.Reload(); ArenaRankLogic.InitRankList(); AllQualitiesOfGears.LoadGears(); InitRanking(); RegisterLobbyServer(); }