recovery stuff

This commit is contained in:
ntr
2019-01-07 20:36:52 +11:00
parent 23aafe1e80
commit f704b80dfb
2 changed files with 6 additions and 28 deletions
+5 -2
View File
@@ -175,7 +175,10 @@ impl Cryp {
let stam_max = match self.lvl == 64 {
true => u64::max_value(),
false => 2_u64.pow(self.lvl.into()),
false => match self.lvl == 1 {
true => 4_u64,
false => 2_u64.pow(self.lvl.into()),
},
};
let stam_min = match self.lvl == 1 {
@@ -184,7 +187,7 @@ impl Cryp {
};
let other_max = match self.lvl == 1 {
true => 2_u64,
true => 4_u64,
false => 2_u64.pow(self.lvl.saturating_sub(1).into()),
};