set ready and increase balance on win/loss
This commit is contained in:
@@ -59,11 +59,15 @@ impl Player {
|
||||
|
||||
pub fn add_win(&mut self) -> &mut Player {
|
||||
self.score.wins += 1;
|
||||
self.set_ready(false);
|
||||
self.vbox.balance_add(16);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn add_loss(&mut self) -> &mut Player {
|
||||
self.score.losses += 1;
|
||||
self.set_ready(false);
|
||||
self.vbox.balance_add(12);
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user