mirror of
https://github.com/exane/not-gwent-online
synced 2024-12-23 21:03:14 +00:00
small changes
This commit is contained in:
parent
862c18c408
commit
91cd34638f
@ -64,7 +64,8 @@ body {
|
||||
}
|
||||
|
||||
.btn-sub {
|
||||
font-size: 18px;
|
||||
font-size: 22px;
|
||||
color: #6a8097;
|
||||
}
|
||||
|
||||
.bbm-modal__topbar {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="bbm-modal__topbar">
|
||||
<h3 class="bbm-modal__title">Choose one card from your foes discard pile</h3>
|
||||
<span class="btn-sub bbm-close">CLOSE</span>
|
||||
<span class="btn-sub bbm-close">DONE</span>
|
||||
</div>
|
||||
<div class="bbm-modal__section">
|
||||
{{#each emreis_leader4.cards as |val key|}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="bbm-modal__topbar">
|
||||
<h3 class="bbm-modal__title">Choose one card from your discard pile</h3>
|
||||
<span class="btn-sub bbm-close">CLOSE</span>
|
||||
<span class="btn-sub bbm-close">DONE</span>
|
||||
</div>
|
||||
<div class="bbm-modal__section">
|
||||
{{#each medicDiscard.cards as |val key|}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="bbm-modal__topbar">
|
||||
<h3 class="bbm-modal__title">Choose up to 2 cards you wish to redraw!</h3>
|
||||
<span class="btn-sub bbm-close">READY</span>
|
||||
<span class="btn-sub bbm-close">DONE</span>
|
||||
</div>
|
||||
<div class="bbm-modal__section preview-b small-cards-modal">
|
||||
{{#each handCards as |val key|}}
|
||||
|
@ -142,6 +142,9 @@ var Battle = (function(){
|
||||
}
|
||||
|
||||
r.getWinner = function() {
|
||||
if(!this.p1.getRubies() && !this.p2.getRubies()){
|
||||
return null; //tie
|
||||
}
|
||||
return this.p1.getRubies() ? this.p1 : this.p2;
|
||||
}
|
||||
|
||||
@ -152,6 +155,7 @@ var Battle = (function(){
|
||||
if(this.checkIfIsOver()){
|
||||
//console.log("its over!");
|
||||
var winner = this.getWinner();
|
||||
winner = winner ? winner.getName() : "nobody";
|
||||
this.gameOver(winner);
|
||||
this.update();
|
||||
return;
|
||||
@ -182,8 +186,8 @@ var Battle = (function(){
|
||||
this.waitForScoiatael(this.p2);
|
||||
}
|
||||
else {
|
||||
this.sendNotification(loser.getName() + " begins!");
|
||||
this.switchTurn(loser);
|
||||
this.sendNotification(winner.getName() + " begins!");
|
||||
this.switchTurn(winner);
|
||||
}
|
||||
}
|
||||
|
||||
@ -204,9 +208,9 @@ var Battle = (function(){
|
||||
})
|
||||
}
|
||||
|
||||
r.gameOver = function(winner){
|
||||
r.gameOver = function(winnerName){
|
||||
this.send("gameover", {
|
||||
winner: winner.getName()
|
||||
winner: winnerName
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user