added build and module options to flake #4

Merged
adriangl merged 2 commits from packaging into main 2024-03-30 22:40:36 +01:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 7ea62870d0 - Show all commits

View File

@ -219,7 +219,7 @@ impl GameState {
} }
} }
let negative = match player.floor.len() { let negative = match player.floor.len() {
0 => 0, 0 => 0,
1 => 1, 1 => 1,
2 => 2, 2 => 2,
@ -229,7 +229,8 @@ impl GameState {
6 => 11, 6 => 11,
_ => 14, _ => 14,
}; };
player.points -= negative; // check if the absolute value of negative is less than the points
player.points = player.points.saturating_sub(negative);
if player.floor.start == 1 { if player.floor.start == 1 {
self.starting_player = player_name.clone(); self.starting_player = player_name.clone();