mirror of
https://github.com/exane/not-gwent-online
synced 2025-11-08 09:08:40 +00:00
performance tweaks
This commit is contained in:
@@ -53,6 +53,25 @@ var Battle = (function(){
|
||||
this.p2.foe = this.p1;
|
||||
this.p1.setUpWeatherFieldWith(this.p2);
|
||||
|
||||
this.p1.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p2.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p1.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p2.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p1.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p2.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p1.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p2.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p1.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p2.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p1.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p2.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p1.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p2.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p1.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p2.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p1.hand.add(Card("poor_fucking_infantry"));
|
||||
this.p2.hand.add(Card("poor_fucking_infantry"));
|
||||
|
||||
|
||||
this.start();
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ Battleside = (function(){
|
||||
})
|
||||
this.receive("set:passing", function(){
|
||||
self.setPassing(true);
|
||||
//self.update();
|
||||
self.update();
|
||||
self.runEvent("NextTurn", null, [self.foe]);
|
||||
})
|
||||
this.receive("medic:chooseCardFromDiscard", function(data){
|
||||
@@ -226,6 +226,7 @@ Battleside = (function(){
|
||||
lives: this._rubies,
|
||||
score: this.calcScore(),
|
||||
hand: this.hand.length(),
|
||||
deck: this.deck.length(),
|
||||
discard: this.getDiscard(true),
|
||||
passing: this._passing
|
||||
}
|
||||
@@ -452,6 +453,7 @@ Battleside = (function(){
|
||||
self.hand.add(replaceCard);
|
||||
self.hand.remove(card);
|
||||
|
||||
self.update();
|
||||
self.runEvent("NextTurn", null, [self.foe]);
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user