cleanup and check for enemy team in pvp
This commit is contained in:
+2
-2
@@ -156,12 +156,12 @@ impl Cryp {
|
||||
let mut rng = thread_rng();
|
||||
let max = match self.lvl == 64 {
|
||||
true => u64::max_value(),
|
||||
false => 2_u64.pow(self.lvl.into()),
|
||||
false => 2_u64.pow(self.lvl.saturating_sub(1).into()),
|
||||
};
|
||||
|
||||
let min = match self.lvl == 1 {
|
||||
true => 2_u64,
|
||||
false => 2_u64.pow(self.lvl.saturating_sub(1).into()),
|
||||
false => 2_u64.pow(self.lvl.saturating_sub(2).into()),
|
||||
};
|
||||
|
||||
self.xp = max;
|
||||
|
||||
Reference in New Issue
Block a user