diff --git a/app/actors/LobbieActor.scala b/app/actors/LobbieActor.scala
index 870a0b1..fa23148 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 = LooserPick()
+ private var lobbyType: LobbyType = Last3()
private val mapsLobby: Set[DeciderMap] = {
val configMaps = config.getStringList("maps").asScala
@@ -79,6 +79,7 @@ class LobbieActor(hostUser: LobbyUser) extends Actor with LazyLogging {
if (playerTurn== 1) playerTurn = 2 else playerTurn = 1
if(mapsLobby.count(_.isBanned == false) == 3 && lobbyType == Last3() ||
mapsLobby.count(_.isBanned == false) == 4 && lobbyType == Last4() ||
+ mapsLobby.count(_.isBanned == false) == 5 && lobbyType == Last5() ||
mapsLobby.count(_.isBanned == false) == 1 && lobbyType == LooserPick()){
status = Finish()
}
@@ -131,6 +132,8 @@ class LobbieActor(hostUser: LobbyUser) extends Actor with LazyLogging {
lobbyType = Last3()
case "last4" =>
lobbyType = Last4()
+ case "last5" =>
+ lobbyType = Last5()
case "looserpick" =>
lobbyType = LooserPick()
}
@@ -247,4 +250,5 @@ class LobbyType
sealed case class Last3() extends LobbyType
sealed case class Last4() extends LobbyType
+sealed case class Last5() extends LobbyType
sealed case class LooserPick() extends LobbyType
\ No newline at end of file
diff --git a/app/assets/images/maps/2p_terror_psyclaw.jpg b/app/assets/images/maps/2p_terror_psyclaw.jpg
new file mode 100644
index 0000000..e1d8a06
Binary files /dev/null and b/app/assets/images/maps/2p_terror_psyclaw.jpg differ
diff --git a/app/assets/images/maps/2p_tranquilitys_end_[rem].jpg b/app/assets/images/maps/2p_tranquilitys_end_[Rem].jpg
similarity index 100%
rename from app/assets/images/maps/2p_tranquilitys_end_[rem].jpg
rename to app/assets/images/maps/2p_tranquilitys_end_[Rem].jpg
diff --git a/app/assets/images/maps/allMaps.json b/app/assets/images/maps/allMaps.json
index a81042c..d0ccf71 100644
--- a/app/assets/images/maps/allMaps.json
+++ b/app/assets/images/maps/allMaps.json
@@ -13,6 +13,7 @@
"2p_blood_river": "Blood River (2)",
"2p_blood_river_remix": "Blood River Remix (2)",
"2p_antiga_bay":"Antiga Bay (2)",
+ "2p_terror_psyclaw":"Terror Psyclaw (2)",
"2p_outer_reaches": "Outer Reaches (2)",
"2p_moonbase": "Moonbase (2)",
"2p_deadly_fun_archeology": "Deadly Fun Archeology (2)",
@@ -51,6 +52,7 @@
"2p_short_below_zero": "Short Below Zero (2)",
"2p_fata_morgana": "Fata Morga (2)",
"2p_fallen_city": "Fallen City (2)",
+ "2p_fallen_city_[Rem]": "Fallen City [Rem] (2)",
"2p_velvet_duress": "Velvet Duress (2)",
"2p_fraziersdemise": "Fraziers Demise (2)",
"2p_vortex_plateau": "Vortex Plateau (2)",
diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js
index 42ca550..4422058 100644
--- a/app/assets/javascripts/index.js
+++ b/app/assets/javascripts/index.js
@@ -103,7 +103,7 @@ window.onload = function() {
if($.cookie('user')=== undefined){
var result = prompt("Enter nickname: ", );
- $.cookie('user', result, { expires: 7 });
+ $.cookie('user', result, { expires: 1337 });
userName = result;
}else{
userName = $.cookie('user');
@@ -268,6 +268,7 @@ function renderPlayersAndStats(lobby) {
var lobbyTypeText = "";
var last3Selected = "";
var last4Selected = "";
+ var last5Selected = "";
var looserPickSelected = "";
switch (lobby.selectedType) {
case "Last3()":
@@ -278,9 +279,13 @@ function renderPlayersAndStats(lobby) {
last4Selected = "selected";
lobbyTypeText = "Play on last 4 maps";
break;
+ case "Last5()":
+ last5Selected = "selected";
+ lobbyTypeText = "Play on last 5 maps";
+ break;
case "LooserPick()":
looserPickSelected = "selected";
- lobbyTypeText = "Decide first, then looserpick";
+ lobbyTypeText = "Play on last map";
break;
}
@@ -304,9 +309,8 @@ function renderPlayersAndStats(lobby) {
disabledText = "disabled";
}
resHtml += "
"
resHtml += "";
break;
diff --git a/app/assets/sound/draft.mp3 b/app/assets/sound/draft.mp3
new file mode 100644
index 0000000..50a3a12
Binary files /dev/null and b/app/assets/sound/draft.mp3 differ
diff --git a/app/views/index.scala.html b/app/views/index.scala.html
index b23b4d8..2d4c48e 100644
--- a/app/views/index.scala.html
+++ b/app/views/index.scala.html
@@ -13,7 +13,7 @@
-
+
Выбор карт в БО3 и БО5 осуществляется без лузерпиков, с тремя и пятью десайдерами соответственно. Игроки вычеркивают по очереди карты из маппула, пока их не останется 3 (для БО3) или 5 (для БО5). На этих картах и проходят все матчи встречи. Затем игроки вычеркивают выбранные карты, пока не останется только одна, на которой и играется первый матч встречи. Тот, кто первым начал вычеркивать из всего маппула, уступает оппоненту право вычеркивания первой карты из оставшихся карт-десайдеров. Во втором и последующем матчах проигравший выбирает карту из числа выбранных 3 (5) десайдеров.
+You and your opponent disclude maps one-by-one, untill you'll get 3 (or five, for finals). By doing so, you decline 10 maps and won't play on them in the round. After that, you and your opponent disclude one map, to play your first match on the last map. Two left maps you and your opponent use as looser picks in the second and the third matches.