set ready and increase balance on win/loss

This commit is contained in:
ntr 2019-03-15 22:24:39 +11:00
parent 4f1bd34ca6
commit 022524f6bc
2 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,7 @@ round system for games
$$$
* Items
* Colour scheme
* number of cryps
* Highlight (dota) colour
* fx colours + styles

View File

@ -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
}