diff --git a/app/actors/LobbieActor.scala b/app/actors/LobbieActor.scala index 004024b..870a0b1 100644 --- a/app/actors/LobbieActor.scala +++ b/app/actors/LobbieActor.scala @@ -41,7 +41,7 @@ class LobbieActor(hostUser: LobbyUser) extends Actor with LazyLogging { private var status: LobbyStatus = NotStarted() - private var lobbyType: LobbyType = Last3() + private var lobbyType: LobbyType = LooserPick() private val mapsLobby: Set[DeciderMap] = { val configMaps = config.getStringList("maps").asScala diff --git a/app/assets/images/maps/4p_imperial_area.jpg b/app/assets/images/maps/4p_imperial_area.jpg new file mode 100644 index 0000000..022a5f2 Binary files /dev/null and b/app/assets/images/maps/4p_imperial_area.jpg differ diff --git a/app/assets/images/maps/allMaps.json b/app/assets/images/maps/allMaps.json index 474a7cd..a81042c 100644 --- a/app/assets/images/maps/allMaps.json +++ b/app/assets/images/maps/allMaps.json @@ -89,6 +89,8 @@ "4p_van_de_mar_mountains": "Van de Mar Mountains (4)", "4p_sands_of_victory":"Sands of Victory (4)", "4p_antiga_bay":"Antiga Bay (4)", + "4p_testcake":"Testcake [Rem] (4)", + "4p_imperial_area":"Imperial Area [Ed] (4)", "4p_volcanic_reaction": "Volcanic Reaction (4)", "4p_broken_lands": "Broken Lands (4)", "5p_vyasastan": "Vyasastan (5)", diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 51bfdf2..42ca550 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -38,10 +38,10 @@ window.onload = function() { var lobbiesAsTableRows = _.reduce(this.lobbies, function (memo, lobby) { var joinButton = (lobby.status === "NotStarted()") ? '' : ""; var observerButton = ''; return memo + '\n' + @@ -118,12 +118,12 @@ window.onload = function() { message = JSON.parse(event.data); switch (message.type) { case "refreshLobby": - renderMaps(message.lobby.maps); + renderMaps(message.lobby.maps, message.lobby.status); renderPlayersAndStats(message.lobby); break; case "switchToLobby": console.log(message); - switchToLobby(message.lobby.maps); + switchToLobby(message.lobby.maps, message.lobby.status); renderPlayersAndStats(message.lobby); break; case "sendMessage": @@ -180,9 +180,9 @@ function changeNick() { // -----ф-ии прихода с сервера -function switchToLobby(maps) { +function switchToLobby(maps, status) { console.log(maps); - renderMaps(maps); + renderMaps(maps, status); $("#lobbies").hide(); $(".navbar").hide(); $("#decider").show(); @@ -199,7 +199,7 @@ function disconnectLobby(error) { alert(error); } -function renderMaps(maps) { +function renderMaps(maps, lobbyStatus) { var resHtml = ""; _.each(maps, function (map) { @@ -210,8 +210,9 @@ function renderMaps(maps) { banHtml = "
"; banClass = "bannedMap"; } - - + if(lobbyStatus === "NotStarted()"){ + banClass = "bannedMap"; + } resHtml = resHtml + '

+
+
@@ -32,13 +34,14 @@
+ +
+
TournamentPatch Cup:
+ Первая карта - десайдер, выбирается методом вычеркивания, далее лузерпики, повтор карт категорически запрещен. + В суперфинале команда из сетки победителей начинает с +1 очком, но команда из сетки проигравших имеет лузерпик со старта встречи(десайдер в суперфинале не используется).

+
+
+ + + diff --git a/conf/application.conf b/conf/application.conf index 9ee6c66..c04872a 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -2,8 +2,10 @@ # https://www.playframework.com/documentation/latest/AllowedHostsFilter # Allow requests to localhost:9000. play.filters.hosts { - allowed = ["localhost:9000", "localhost", "139.59.210.74"] + allowed = ["localhost:9000", "localhost", "139.59.210.74", "*"] } +play.http.secret.key="QCY?tAnfk?aZ?iwrNwnxIlR6CTf:123123Latabg@5241AB`R5W:1uDFN];Ik@n" +play.server.http.port = 80 -maps = ["2p_battle_marshes", "2p_fallen_city", "2p_fata_morgana_[Rem]", "2p_meeting_of_minds", "2p_deadly_fun_archeology", "2p_quests_triumph", "2p_shrine_of_excellion_[Rem]", "2p_titan_fall_[Rem]", "2p_tranquilitys_end_[rem]", "2p_blood_river_[Rem]", "2p_sugaroasis", "2p_emerald_river", "2p_fraziersdemise", "2p_vortex_plateau", "2p_chaos_gate"] +maps = ["2p_battle_marshes", "2p_fallen_city", "2p_fata_morgana_[Rem]", "2p_meeting_of_minds", "2p_faceoff", "2p_quests_triumph", "2p_shrine_of_excellion_[Rem]", "2p_titan_fall_[Rem]", "2p_tranquilitys_end_[rem]", "2p_blood_river_[Rem]", "2p_sugaroasis", "2p_outer_reaches","2p_fraziersdemise"] diff --git a/conf/routes b/conf/routes index b8c5df2..6a8e6e0 100644 --- a/conf/routes +++ b/conf/routes @@ -2,9 +2,11 @@ # This file defines all application routes (Higher priority routes first) # ~~~~ -GET / controllers.HomeController.index +GET /tpmodcup controllers.HomeController.index GET /ws controllers.HomeController.ws +GET /reloadconfig controllers.AdminController.reloadConfig + GET /lobbyadmin controllers.AdminController.viewAllLobbies # Map static resources from the /public folder to the /assets URL path